HTML - Getelementbyid Ugh
http://johnathany.com/contact.html
What I'm trying to do is get the googlemaps iframe to change if i hit to corresponding 3 links at the bottom. So I tried to use getElementById(leftcolumn).innerhtml = "blah blah" to change the entire content of the div but it isnt working. Please advise. Or would there be a simpler solution like creating 3 hidden divs and just do display:block; to display them? Am I making sense? Similar Tutorials<script type="text/javascript"> function changeSrc() { document.getElementById("myImage").src="help_button.gif"; } </script> </head> <body> <img id="myImage" src="audio_button.gif" width="107" height="98" /> <br /><br /> <input type="button" onclick="changeSrc()" value="Change image" /> This is my html code, while go through the output, get only one rectangle and button, i can't see this image,??????... which i include in the code.i already put the image in same folder. Hi, My webpage has several elements of the same name. How do I access all of them one by one? |