The reason to your problem is the different implimentations of javascript (certain methods) in different browsers. Your code will need to be slightly modified to suit various browser conditions. In order to help you through please post your code below.
this is my code
scrolling the partcular text.this is scrolling in mozilla firefox browser.But not scrolling in Internet explorer.but display the text.
plz suggest.
code is:
[HTML]<div id="datacontainer1" style="position:absolute;left:0px;top:1px;width:10 0px" onMouseover="scrollspeed=0" onMouseout="scrollspeed=cache">
</div>
<script type="text/javascript" src="ajaxJsScroll.js">
</script>
<script language="javascript" type="text/javascript">
//Specify speed of scroll. Larger=faster (ie: 5)
var scrollspeed=cache=2;
//Specify intial delay before scroller starts scrolling (in miliseconds):
var initialdelay=500;
function initializeScroller()
{
dataobj=document.all? document.all.datacontainer : document.getElementById("datacontainer1");
dataobj.style.top="5px";
setTimeout("getdataheight()", initialdelay);
}
function getdataheight()
{
thelength=dataobj.offsetHeight;
if (thelength==0)
{
setTimeout("getdataheight()",10);
}
else
{
scrollDiv();
}
}
function scrollDiv()
{
dataobj.style.top=parseInt(dataobj.style.top)-scrollspeed+"px";
if (parseInt(dataobj.style.top)<thelength*(-1))
{
dataobj.style.top="5px";
}
setTimeout("scrollDiv()",100);
}
if (window.addEventListener)
{
window.addEventListener("load", initializeScroller, false);
}
else if (window.attachEvent)
{
window.attachEvent("onload", initializeScroller);
}
else
{
window.onload=initializeScroller;
}
showHint('dummy');
</script>[/HTML]