addtrain Posted August 9, 2007 Share Posted August 9, 2007 i am making this thing for my website. i want to have one pic, and then after you click the picture, it changes to a diferent picture. HOW DO I DO THIS??? PLEASE HELP ME I REALLY NEED IT i really need help please please please help! :'( oh, and if u want to email me, my email is: myspaceuser217@hotmail.com Quote Link to comment Share on other sites More sharing options...
php_tom Posted August 10, 2007 Share Posted August 10, 2007 <html> <head> <script type="text/javascript"> function changeSrc() { document.getElementById("myImage").src="image2.jpg"; } </script> </head> <body> <img id="myImage" src="image1.jpg" onclick="changeSrc()" /> </body> </html> Quote Link to comment Share on other sites More sharing options...
addtrain Posted August 10, 2007 Author Share Posted August 10, 2007 WOW! thanks a lot this topic is SOVLED!! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.