...

View Full Version : onclick event / Image not rendereing...at first



jaime-eduardo
08-06-2008, 05:50 PM
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...

<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

ninnypants
08-06-2008, 06:05 PM
I searched you code for this but even using a search function I could not find this section of 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 '#'

jaime-eduardo
08-06-2008, 06:14 PM
Try this


<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>

ninnypants
08-06-2008, 06:33 PM
I changed your 'href' form 'javascript:;' to '#' and your button appeared

Bill Posters
08-06-2008, 06:55 PM
*ahem*


<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…


a img {
border: 0 none;
}

ninnypants
08-06-2008, 07:01 PM
@Bill Posters much better



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum