Jump to content

php & javascript


harkly

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.