Hi All!
I used the following code to move a <div> in IE browser to the position of the mouse when I click on a link
+div tag is:
[HTML]<div id=fm style="position :absolute; width:100px; height:100px; background:red" >moving</div>
[/HTML]
and javascript code is:
...
[CODE=javascript]if (navigator.appN ame=="Microsoft Internet Explorer")
{
eval("fm.style. pixelTop=" +event.clientY) ;
eval("fm.style. pixelLeft=" + event.clientX);
}
else // for firefox
{
}
[/CODE]...
for firefox, eval is invalid!!!! :(
How to move div tag in firefox! Please help!
I used the following code to move a <div> in IE browser to the position of the mouse when I click on a link
+div tag is:
[HTML]<div id=fm style="position :absolute; width:100px; height:100px; background:red" >moving</div>
[/HTML]
and javascript code is:
...
[CODE=javascript]if (navigator.appN ame=="Microsoft Internet Explorer")
{
eval("fm.style. pixelTop=" +event.clientY) ;
eval("fm.style. pixelLeft=" + event.clientX);
}
else // for firefox
{
}
[/CODE]...
for firefox, eval is invalid!!!! :(
How to move div tag in firefox! Please help!
Comment