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 8898089
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T00:31:12+00:00 2026-06-15T00:31:12+00:00

Arrow_onmouseover is attached with the ‘onmouseover’ event of an object. I get a ‘timeline

  • 0

Arrow_onmouseover is attached with the ‘onmouseover’ event of an object. I get a ‘timeline is not defined’ JS error when the onmouseover event occurs. I know this relates to the variable scope. How can I correct this.

function startloop()
{
    var changer = setInterval("changecontents();", 2000);
    var timeline = setInterval("change();", 2000);  
}

window.onload = startloop();

function arrow_onmouseover()
{ 
window.clearInterval(timeline);
window.clearInterval(changer);
}

Also what is the difference between a function called as Function(); and Function; . I believe this may also be relevant here since it greatly affects the scope of a variable.

ie what is the difference between

onclick="js();" and onclick="js;" or onclick="js"

where JS is a defined Java Script function.

  • 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-06-15T00:31:13+00:00Added an answer on June 15, 2026 at 12:31 am

    Change your code like this.

    var timeline,changer;
    function startloop()
    {
        changer = setInterval("changecontents();", 2000);
        timeline = setInterval("change();", 2000);  
    }
    
    window.onload = startloop();
    
    function arrow_onmouseover()
    { 
    window.clearInterval(timeline);
    window.clearInterval(changer);
    }
    

    The difference between

    onclick=”js();” and onclick=”js;” or onclick=”js”

    if your js function doesn’t have any parameters to receive you can simple avoid () like if you want to get the date you can call new Date(); but instead you can simply call new Date;

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

Sidebar

Related Questions

<div> <span onmouseover=tip(event,this);>程序错误<div class=content>good</div></span><br> <span onmouseover=tip(event,this);>程序错误<div class=content>good</div></span><br> <span onmouseover=tip(event,this);>程序错误<div class=content>good</div></span><br> <span onmouseover=tip(event,this);>程序错误<div class=content>good</div></span><br> <span
Following is a code for rotate the arrow(uiimage) on touch event. in this i
I have this code for previous arrow from HTML coder <img src=<?=$this->webroot?>img/arrow_button_prev.png alt=Previous Event
I have this string #<Fletcher::Model::Amazon alt=You Are Not a Gadget: A Manifesto (Vintage) border=0
CTRL+down arrow does this, but only 1 line at a time. Is there a
Trying to get my arrow image to stick to the right of the anchor
I am using this plugin in Wordpress http://www.iwebix.de/front-slider-wordpress-plugin-demo/ As you can see in the
I've tried to implement this CSS3 slideshow on my site ( http://www.designmadeingermany.de/slideshow/ ) But
Sometimes appears this arrow so I cannot see if breakpoint is installed. Does it
How to handle arrow key event in Cocoa app?

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.