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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T03:11:29+00:00 2026-05-24T03:11:29+00:00

I have this: $(#nav-reflection li).append(<span></span>); // Animate buttons, move reflection and fade $(#nav-reflection a).hover(function()

  • 0

I have this:

    $("#nav-reflection li").append("<span></span>");    

    // Animate buttons, move reflection and fade

    $("#nav-reflection a").hover(function() {
        $(this).stop().animate({ marginTop: "-10px" }, 200);
        $(this).parent().find("span").stop().animate({ marginTop: "18px", opacity: 0.25 }, 200);
    },function(){
        $(this).stop().animate({ marginTop: "0px" }, 300);
        $(this).parent().find("span").stop().animate({ marginTop: "1px", opacity: 1 }, 300);
    });

/* =Shadow Nav
-------------------------------------------------------------------------- */

    // Append shadow image to each LI

    $("#nav-shadow li").append('<img class="shadow" src="http://admin.focuswebmedia.com/wp-content/themes/fwm/images/icons-shadow.jpg" width="79" height="19" alt="" />');
    //$("#slider_right").append('<div id="porfolio_contact_text">Our Porfolio&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Contact Us</div>');
    // Animate buttons, shrink and fade shadow

    $("#nav-shadow li").hover(function() {
        var e = this;
        $(e).find("a").stop().animate({ marginTop: "-14px" }, 250, function() {
            $(e).find("a").animate({ marginTop: "-10px" }, 250);
        });
        $(e).find("img.shadow").stop().animate({ width: "80%", height: "20px", marginLeft: "8px", opacity: 0.25 }, 250);
    },function(){
        var e = this;
        $(e).find("a").stop().animate({ marginTop: "4px" }, 250, function() {
            $(e).find("a").animate({ marginTop: "0px" }, 250);
        });
        $(e).find("img.shadow").stop().animate({ width: "100%", height: "27px", marginLeft: "0", opacity: 1 }, 250);
    });

works great on hover. But how do I get this to play automatically every 5 or so seconds? I tried this:

window.setInterval(play_ani, 5000);

function play_ani() {
 $j("#nav-reflection a").mouseover();
}

But nothing happens…
Any ideas?

  • 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-24T03:11:30+00:00Added an answer on May 24, 2026 at 3:11 am

    You could just trigger the hover event:

    window.setInterval(play_ani, 5000);
    
    function play_ani() {
     $("#nav-reflection a").trigger('mouseover');
    }
    

    I think your code does nothing because you are not triggering the effect.

    UPDATE – you must trigger mouseover and use $ not $j – example fiddle: http://jsfiddle.net/nicolapeluchetti/qdwZN/3/

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

Sidebar

Related Questions

I have this: <script type=text/javascript> $(function() { $('#slideshow').after('<div id=slideshow-nav>').cycle({ fx: 'fade', timeout: 0, prev:
I have this jQuery click event $('#sidebar .nav a span').click(function () { var sidebar_nav
I have this jquery: $('.tbl-link').click(function(){ $('.tbl-content').animate({ opacity: 'show', //height: '+=300px', marginTop: '330px' }, 1200).css({
I have this nav that uses addClass('hover') when the mouse is rolled over an
say you have this code: $(#sub_nav_home1).hover(function () { $(#homepage).removeClass(); $(#homepage).addClass(homepage1); }); $(#sub_nav_home2).hover(function () {
say you have this html <ul class=nav sub_nav_home> <li id=sub_nav_home1><a href=#><span>LINK1</span></a></li> <li id=sub_nav_home2><a href=#><span>LINK2</span></a></li>
I have this list: <ul class=pagination> <li class=dl-nav-1 current><a href=#>Spring Training 2001</a><span class=visible><img src=img/indicator.png
I have this code: #left-nav #left{ width:100px; height: 99px; float:left; border-bottom: 1px solid #344a53;
I have this code on my print.css: #header, #tae, #nav, .noprint {display: none;} width:
I have this code currently in one of my websites, $(a.navlink).click(function (ev) { ev.preventDefault();

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.