how do i replace this html code with php?
Posted: Tue Nov 23, 2010 1:21 pm
Hi,
I am trying to convert my html code to a php script. For example my html: <img src="images/tryitfree.jpg" name="Image68" width="290" height="66" border="0">
becomes <?php print getOffer(1, '<img src="images/tryitfree.jpg" alt="my image" />'); ?>
This works well enough except that my html code is more complex as the image changes when it is moused over. So the html actually looks like this:
<a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image68','','images/index-html-final_28.jpg',1)"><img src="images/tryitfree.jpg" name="Image68" width="290" height="66" border="0"></a>
My question is how to code this in php? How do I include this mouseover image while still coding it in PHP as above.
Any help or suggestions is greatly appreciated.
Thanks
Dsanche
I am trying to convert my html code to a php script. For example my html: <img src="images/tryitfree.jpg" name="Image68" width="290" height="66" border="0">
becomes <?php print getOffer(1, '<img src="images/tryitfree.jpg" alt="my image" />'); ?>
This works well enough except that my html code is more complex as the image changes when it is moused over. So the html actually looks like this:
<a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image68','','images/index-html-final_28.jpg',1)"><img src="images/tryitfree.jpg" name="Image68" width="290" height="66" border="0"></a>
My question is how to code this in php? How do I include this mouseover image while still coding it in PHP as above.
Any help or suggestions is greatly appreciated.
Thanks
Dsanche