Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 497871
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T05:49:23+00:00 2026-05-13T05:49:23+00:00

Text Scrolling doesn’t work in firefox (In IE it does). Markup + javascript: <!DOCTYPE

  • 0

Text Scrolling doesn’t work in firefox (In IE it does).

Markup + javascript:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
  <head>
     <script type="text/javascript" language="javascript">

        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) < 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);

        }
   </script>
  </head>
  <body  onmouseover="scrollspeed=0" onmouseout="scrollspeed=current" onload="ScrollStart();">
  <div id="NewsDiv">
   <table cellpadding="5" cellspacing="0" border="0" width="100%">
      <tr>
        <td>
            <span class="title">Website News1<br /></span>
            BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA 
            <br /><br />

            <span class="title">Website News2<br /></span>
            BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA 
            <br /><br />

            <span class="title">Website News3<br></span>
            BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA BLA 
            <br /><br />
        </td>
      </tr>
   </table>
</div>

</body>

CSS:

body
{
     margin-top: 0px;
     margin-right: 0px;
     margin-bottom: 0px;
     margin-left: 0px;
}        
#NewsDiv
{ 
     position: absolute;
     left: 0px;
     top: 0px; 
     width: 100%;
 }

Online (if still avaiable):
http://www.webdevout.net/test?015&raw

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T05:49:24+00:00Added an answer on May 13, 2026 at 5:49 am

    You need to add “px” to the new value for dataobj.style.top.

    function ScrollDiv() {
        dataobj.style.top = (parseInt(dataobj.style.top) - (scrollspeed)) + "px";
    

    IE “incorrectly” assumes it is a pixel value. Firefox does not and gives you an error.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm attempting to do some scrolling with an iframe, but my Javascript doesn't seem
I am looking for a way to do Horizontal text scrolling that only scrolls
Ok in my ListBox scrolling images w/ text, etc. the saga continues. When I
When scrolling the div the table cells move, but the cell text stays in
Does anyone have any examples or resources where i might find information on scrolling
I have a scrolling text line, and I need to achieve effect that immediately
Does anyone know how I can prevent the text in a table cell from
text = urllib.urlopen('www.text.com').read() frase = re.search(your text here(.*), text).group() With these code, I get
text = I fixed bug #1234 and #7895 regex = /#(\d*)/ m = regex.match(text)
Text gets accumulates piecemeal before being sent to client. Now we use own class

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.