Feedback on: irt.org FAQ Knowledge Base Q223
Worth:
Very worth reading
Length:
Too short
Technical:
Just right
Comments:
This is exactly what I needed! (after FrontPage screwed me... I just set up a page with all these swap-outs -- only to discover it didn't work in Netscape Navigator! :-P)
The REMAINING question I need to answer is:
WHAT IS THE SYNTAX TO DO MULTIPLE IMAGE SWAPS ON THE SAME PAGE? (The way it's set right now -- if I click one image, they ALL flip over. :-O)
Please answer asap!
Vicky Jo, grateful for finding this great resource she's bookmarked but good :-D
Comments:
do not use <a href="javascript:somefunction()"
instead use
<a href="#" onClick="somefunction(); return false">
since netscape will follow th ink and partially unload the page
Michel
Comments:
Here is a toggle
<script>
toggle=false;
</script>
<a href="#"
onClick="if (document.images)
document.images['myImage'].src = (toggle)?'image1.gif':'image2.gif';
toggle=!toggle;
return false"><img name="myImage" src="image1.gif" border=0"></a>