esapo
02-25-2003, 08:06 PM
Hi!
I am using the following function:
<SCRIPT LANGUAGE="JavaScript">
function mouseover()
{
document.getElementById("mytd").innerHTML="<img src=\"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=". $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=\"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=". $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,