Hi!
I am using the following function:
<SCRIPT LANGUAGE="JavaScript">
function mouseover()
{
document.getElementById("mytd").innerHTML="<img src=http://www.webdeveloper.com/forum/archive/index.php/\"image.jpg\">";
}
</SCRIPT>
If I want to use a Data Base with several images instead of one image ('image.jpg') is it correct to use?
function mouseover()
{
document.getElementById("mytd").innerHTML="<img src=http://www.webdeveloper.com/forum/archive/index.php/". $row["picture"] .">";
}
where $row["picture"] reference a query on a DB.
I am using the above function but it does not seems to work.
Any help?
Regards,
I am using the following function:
<SCRIPT LANGUAGE="JavaScript">
function mouseover()
{
document.getElementById("mytd").innerHTML="<img src=http://www.webdeveloper.com/forum/archive/index.php/\"image.jpg\">";
}
</SCRIPT>
If I want to use a Data Base with several images instead of one image ('image.jpg') is it correct to use?
function mouseover()
{
document.getElementById("mytd").innerHTML="<img src=http://www.webdeveloper.com/forum/archive/index.php/". $row["picture"] .">";
}
where $row["picture"] reference a query on a DB.
I am using the above function but it does not seems to work.
Any help?
Regards,