Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New to the CF scene
    Join Date
    Dec 2007
    Posts
    8
    Thanks
    1
    Thanked 0 Times in 0 Posts

    onclick event / Image not rendereing...at first

    I thought my problems were with CSS / HTML but having exhausted my resources, i believe the problem is in the javascript.

    Heres the breakdown...

    I recently made some changes to my homepage
    http://www.sunmantechnology.com/

    I have placed the old version of the index page
    http://www.sunmantechnology.com/indexOLD.html

    notice that small red button on the old index, right below the search bar that says Flash Demo? This does not show up on the new index page.. why is this?

    the stranger thing is that using firebug, if i hover the mouse over where the button should be, and right click and "inspect element" the button shows up!

    I know its probably a simple fix but its got me stumped.

    heres the code...
    Code:
        <div id="blkFlashBtn"><a href="javascript:;" onclick="MM_openBrWindow('Media/flash.html','FlashDemo','width=950,height=375')"><img src="images/flashDemo_btn.gif" alt="Product Development" width="65" height="17" border="0" /></a></div>
      </div>
    every other page is fine...

    Thanks

    Jaime
    Last edited by jaime-eduardo; 08-06-2008 at 07:14 PM. Reason: code

  • #2
    Regular Coder ninnypants's Avatar
    Join Date
    Apr 2008
    Location
    Utah
    Posts
    504
    Thanks
    10
    Thanked 47 Times in 47 Posts
    I searched you code for this but even using a search function I could not find this section of code
    Code:
    <a onclick="MM_openBrWindow('Media/flash.html','FlashDemo','width=950,height=375')" href="javascript:;">
    <img width="65" height="17" border="0" alt="Product Development" src="images/flashDemo_btn.gif"/>
    That may be your problem. You might also try changing you 'href' attribute to '#'

  • #3
    New to the CF scene
    Join Date
    Dec 2007
    Posts
    8
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Try this

    Code:
        <div id="blkFlashBtn"><a href="javascript:;" onclick="MM_openBrWindow('Media/flash.html','FlashDemo','width=950,height=375')"><img src="images/flashDemo_btn.gif" alt="Product Development" width="65" height="17" border="0" /></a></div>
      </div>

  • #4
    Regular Coder ninnypants's Avatar
    Join Date
    Apr 2008
    Location
    Utah
    Posts
    504
    Thanks
    10
    Thanked 47 Times in 47 Posts
    I changed your 'href' form 'javascript:;' to '#' and your button appeared

  • #5
    Senior Coder
    Join Date
    Feb 2003
    Posts
    1,665
    Thanks
    0
    Thanked 27 Times in 25 Posts
    *ahem*

    Code:
    <a href="Media/flash.html" onclick="MM_openBrWindow(this.href,'FlashDemo','width=950,height=375'); return false;"><img src="images/flashDemo_btn.gif" alt="Product Development" width="65" height="17" /></a>

    Re: the image link border, CSS…

    Code:
    a img {
    	border: 0 none;
    }

  • #6
    Regular Coder ninnypants's Avatar
    Join Date
    Apr 2008
    Location
    Utah
    Posts
    504
    Thanks
    10
    Thanked 47 Times in 47 Posts
    @Bill Posters much better


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •