SirPwnsalot Posted November 25, 2007 Share Posted November 25, 2007 Okay, so I have it set up on this page (sorry about the ads): an imagemap with a javascript image flip applied to it. And, even though the alt7 commands are pretty much the same as the rest, the BTS image flip doesn't work. Any ideas?And here's the code for the page, so you can bypass the ad codes in the page source: <head><script LANGUAGE="JavaScript">{//These are the large imagesalt0 = new Image();alt0.src = "images/pagemenu/menu.jpg";alt1 = new Image();alt1.src = "images/pagemenu/blog.jpg";alt2 = new Image();alt2.src = "images/pagemenu/cast.jpg";alt3 = new Image();alt3.src = "images/pagemenu/contact.jpg";alt4 = new Image();alt4.src = "images/pagemenu/links.jpg";alt5 = new Image();alt5.src = "images/pagemenu/hp1.jpg";alt6 = new Image();alt6.src = "images/pagemenu/hp2.jpg";alt7 = new Image();alt7.src = "images/pagemenu/bts.jpg";}function imageChange(imageID,imageName,imageID2,imageName2) {{document.images[imageID].src = eval(imageName + ".src");document.images[imageID2].src = eval(imageName2 + ".src");}}</SCRIPT> </head><body bgcolor="000000"><img src="images/pagemenu/menu.jpg" NAME="global" usemap="#mainmenu" alt="" style="border-style:none" /><map id="mainmenu" name="mainmenu"><area shape="rect" alt="blog" coords="51,101,168,158" href="blog.html" title="blog" target="_top" onMouseOver="imageChange('global','alt1','one')" onMouseOut="imageChange('global','alt0','one','graphic1')" /><area shape="rect" alt="cast" coords="50,163,162,199" href="cast.html" title="cast" target="_top" onMouseOver="imageChange('global','alt2','two')" onMouseOut="imageChange('global','alt0','two','graphic2')" /><area shape="rect" alt="contact us" coords="25,208,238,239" href="contact.html" title="contact us" target="_top" onMouseOver="imageChange('global','alt3','three','graphic3on')" onMouseOut="imageChange('global','alt0','three')" /><area shape="rect" alt="Links" coords="57,256,190,297" href="links.html" title="Links" target="_top" onMouseOver="imageChange('global','alt4','four')" onMouseOut="imageChange('global','alt0','four','graphic4')" /><area shape="rect" alt="" coords="8,310,92,349" href="hp1.html" title="" onMouseOver="imageChange('global','alt5','five')" onMouseOut="imageChange('global','alt0','five','graphic5')" /><area shape="rect" alt="" coords="126,310,240,349" href="hp2.html" title="" onMouseOver="imageChange('global','alt6','six')" onMouseOut="imageChange('global','alt0','six','graphic6')" /><area shape="rect" alt="" coords="62,366,157,411" href="bts.html" title="" onMouseOver="imageChange('global','alt7,'seven')" onMouseOut="imageChange('global','alt0','seven,'graphic7')" /><area shape="default" nohref="nohref" alt="" /></map></body> Thanks!-Timmy Link to comment Share on other sites More sharing options...
Synook Posted November 25, 2007 Share Posted November 25, 2007 You forgot a closing inverted comma for the onMouseover event of the imagemap link to bts.html. It should be onMouseOver="imageChange('global','alt7','seven')" Link to comment Share on other sites More sharing options...
SirPwnsalot Posted November 25, 2007 Author Share Posted November 25, 2007 Oh.. so it was just something stupid on my part.heh. Thanks for your help!-Timmy Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.