javascript to php
Posted: Mon Oct 05, 2009 7:54 am
Hi all,
i ve got a javascript code. but i want to use a php function instead of this javascript code. You know, some people block javascripts, due to this reason i would like to use server side coding. However, i could not write a php function yet. Any help would be great for me.
here is my java script code:
<html>
<body>
<table>
<tr>
<td>
<img id="bigImage" src="images/spacer.gif">
<--!
my other contents.
!-->
</td>
</tr>
</table>
<script type="text/javascript">
function LoadImage()
{
if (document.getElementById("bigImage")) {
document.getElementById("bigImage").src="images/big.gif";
}
}
LoadImage();
</script>
</body>
</html>
------------------------
Acutually, im using this javascript code in php file. i wrote codes in html to show you basicly.
Thank you to all friends
With best regards
i ve got a javascript code. but i want to use a php function instead of this javascript code. You know, some people block javascripts, due to this reason i would like to use server side coding. However, i could not write a php function yet. Any help would be great for me.
here is my java script code:
<html>
<body>
<table>
<tr>
<td>
<img id="bigImage" src="images/spacer.gif">
<--!
my other contents.
!-->
</td>
</tr>
</table>
<script type="text/javascript">
function LoadImage()
{
if (document.getElementById("bigImage")) {
document.getElementById("bigImage").src="images/big.gif";
}
}
LoadImage();
</script>
</body>
</html>
------------------------
Acutually, im using this javascript code in php file. i wrote codes in html to show you basicly.
Thank you to all friends
With best regards