harkly Posted December 17, 2009 Share Posted December 17, 2009 I have this code that won't work without the double quotes "" and I can't figure out how to get it to work in php. All is does is change an image to the one selected. Can anyone help? <div id='smImg'> <div class=smImg-shadow> <a href='javascript:setIMG('img/1.jpg');'><img src='img/1.jpg' border='0px' width='55' height='55'></a><br> <a href='javascript:setIMG('img/2.jpg');'><img src='img/2.jpg' border='0px' width='55' height='55'></a><br> <a href='javascript:setIMG('img/3.jpg');'><img src='img/3.jpg' border='0px' width='55' height='55'></a><br> <a href='javascript:setIMG('img/4.jpg');'><img src='img/4.jpg' border='0px' width='55' height='55'></a><br> <a href='javascript:setIMG('img/5.jpg');'><img src='img/5.jpg' border='0px' width='55' height='55'></a><br> </div> </div> Link to comment https://forums.phpfreaks.com/topic/185422-php-javascript/ Share on other sites More sharing options...
harkly Posted December 17, 2009 Author Share Posted December 17, 2009 Never mind find the solution!! \" Always happens as soon as I post the question Link to comment https://forums.phpfreaks.com/topic/185422-php-javascript/#findComment-978864 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.