S
sara
Hi at all,
please take a look here.
I have:
<body onload="STT();">
<div id="panorama" style="width:100%; height:150px; border:1px solid
red;overflow:hidden">
<img src="images/veylargeimage.jpg" alt="" /></div>
This js code move automatically image up or down, left or right.
It work fine wirh MSIE, Opera, Safara and Chrome but not
with FireFox
Why please?
var rollo;
var b=1;
var c=1;
function STT()
{
setInterval(function(){rollo=document.getElementById('PANORAMA');rollo.scrollTop+=b;rollo.scrollLeft+=c;if
(rollo.scrollTop==450){b=-1;}if (rollo.scrollTop==300){b=1;}if
(rollo.scrollTop==355){c=-1;}if (rollo.scrollTop==450){c=1;}}, 40);}
please take a look here.
I have:
<body onload="STT();">
<div id="panorama" style="width:100%; height:150px; border:1px solid
red;overflow:hidden">
<img src="images/veylargeimage.jpg" alt="" /></div>
This js code move automatically image up or down, left or right.
It work fine wirh MSIE, Opera, Safara and Chrome but not
with FireFox
Why please?
var rollo;
var b=1;
var c=1;
function STT()
{
setInterval(function(){rollo=document.getElementById('PANORAMA');rollo.scrollTop+=b;rollo.scrollLeft+=c;if
(rollo.scrollTop==450){b=-1;}if (rollo.scrollTop==300){b=1;}if
(rollo.scrollTop==355){c=-1;}if (rollo.scrollTop==450){c=1;}}, 40);}