I’m a complete beginner with javascript, so I was hoping to get some help. Does anyone have a code where you click on text the image below that switches?
<i> </i><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Untitled Document</title> <script type="text/javascript"> function showEl(id) { var el = document.getElementById(id); el.style.display = ""; } </script> </head> <body> <a onclick="showEl('[COLOR="Red"]myImage[/COLOR]')" style="cursor:pointer;"> Click me </a> <br /> <img id="[COLOR="Red"]myImage[/COLOR]" src="http://www.webdeveloper.com/forum/images/webdev-logo2.gif" style="display:none" /> </body> </html>
Help @766 spread the word by sharing this article on Twitter...