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: [email protected] Link to comment https://forums.phpfreaks.com/topic/64170-solved-plz-help-me/ 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> Link to comment https://forums.phpfreaks.com/topic/64170-solved-plz-help-me/#findComment-319832 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!! Link to comment https://forums.phpfreaks.com/topic/64170-solved-plz-help-me/#findComment-319878 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.