Note that there are some explanatory texts on larger screens.

plurals
  1. POText scrolling javascript problem in firefox
    text
    copied!<p>Text Scrolling doesn't work in firefox (In IE it does).</p> <p><strong>Markup + javascript:</strong></p> <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt; &lt;html lang="en"&gt; &lt;head&gt; &lt;script type="text/javascript" language="javascript"&gt; var scrollspeed = "1"; var speedjump = "30"; var interval = ""; var current; current = (scrollspeed); function ScrollDiv() { dataobj.style.top = parseInt(dataobj.style.top) - (scrollspeed); if (parseInt(dataobj.style.top) &lt; AreaHeight * (-1)) { //restart dataobj.style.top = "200px"; } else { } } function ScrollStart() { dataobj = document.getElementById("NewsDiv"); dataobj.style.top = "2px"; AreaHeight = dataobj.offsetHeight; interval = setInterval("ScrollDiv()", speedjump); } &lt;/script&gt; &lt;/head&gt; &lt;body onmouseover="scrollspeed=0" onmouseout="scrollspeed=current" onload="ScrollStart();"&gt; &lt;div id="NewsDiv"&gt; &lt;table cellpadding="5" cellspacing="0" border="0" width="100%"&gt; &lt;tr&gt; &lt;td&gt; &lt;span class="title"&gt;Website News1&lt;br /&gt;&lt;/span&gt; BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA &lt;br /&gt;&lt;br /&gt; &lt;span class="title"&gt;Website News2&lt;br /&gt;&lt;/span&gt; BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA &lt;br /&gt;&lt;br /&gt; &lt;span class="title"&gt;Website News3&lt;br&gt;&lt;/span&gt; BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA &lt;br /&gt;&lt;br /&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/div&gt; &lt;/body&gt; </code></pre> <p></p> <p><strong>CSS:</strong></p> <pre><code>body { margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; } #NewsDiv { position: absolute; left: 0px; top: 0px; width: 100%; } </code></pre> <p>Online (if still avaiable): <a href="http://www.webdevout.net/test?015&amp;raw" rel="nofollow noreferrer">http://www.webdevout.net/test?015&amp;raw</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload