F
fmcgulliver
I'm using innerHTML to insert a hyperlink inside a div element with
onmouseover. however, the link doesn't work in safari or in firefox.
Is there something I'm doing wrong?
Thanks!
function changetext(text,textlet,id)
{
document.getElementById(textlet+id).innerHTML = text;
}
....
<td width=350 colspan=2 height=60 onmouseover="changetext(' <a href=
\'nytimes.com\'>nytimes</a>,'bulk',$todo2.leftid)" padding=0 colspan=2
spacing=0 border=3 id="${todo2.leftid}flash" align=left >
<div id=bulk$todo2.leftid>
<font style="font-size: ${todo2.leftsizefont}pt">$todo2.leftwhy
</font>
<img height="60" src=/static/$todo2.leftidjpg>
</div>
</td>
....
onmouseover. however, the link doesn't work in safari or in firefox.
Is there something I'm doing wrong?
Thanks!
function changetext(text,textlet,id)
{
document.getElementById(textlet+id).innerHTML = text;
}
....
<td width=350 colspan=2 height=60 onmouseover="changetext(' <a href=
\'nytimes.com\'>nytimes</a>,'bulk',$todo2.leftid)" padding=0 colspan=2
spacing=0 border=3 id="${todo2.leftid}flash" align=left >
<div id=bulk$todo2.leftid>
<font style="font-size: ${todo2.leftsizefont}pt">$todo2.leftwhy
</font>
<img height="60" src=/static/$todo2.leftidjpg>
</div>
</td>
....