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

  • SEARCH
  • Home
  • 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 8107225
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T00:41:52+00:00 2026-06-06T00:41:52+00:00

got a problem, can’t get my head around this jquery and would appreciate your

  • 0

got a problem, can’t get my head around this jquery and would appreciate your help/guidance.

Function I need:

Each menu list contains images that should scroll through when clicked & scroll though when mouse over. If mouse hover it will scroll through the images in set interval time limit.

Once I make it scroll then i’ll seek for further functionality but would appreciate if it could at least work at this moment

Ultimate function: to also stop animation when mouseout maybe include more efficient coding using .wrap and perhaps pausing the image when mouseover image div.

Here is the Jquery I wrote which doesn’t work btw.

    $(function() {
    $('.main-img ul').cycle({
        fx: 'fadeout',
        height:      458,
        speed:       300,
        timeout:     0,
        pager:'.menu ul li',
        pagerEvent: 'click',
        pagerAnchorBuilder: function(idx, slide) { 
            return '.menu ul li:eq(' + idx + ') a'; 
        },
        after: function(){
            // start new sub animaion
        },
        before: function(){
            // stop the current animation
        }

    });
});/*

and here is the html

        <div class="main-cont">
        <div class="menu">
            <div class="portfolio"><span>Portfolio</span></div>
            <ul>
                <li><a href="#" class="camp-txt"><span>One</span></a></li>
                <li><a href="#" class="edit-txt"><span>Two</span></a></li>
                <li><a href="#" class="ad-txt"><span>Three</span></a></li>
                <li><a href="#" class="bio-txt"><span>Four</span></a></li>
                <li><a href="#" class="vid-txt"><span>Five</span></a></li>
            </ul>
            <div class="footer"><span>Footer</span></div>
        </div>
        <div class="main-img">
            <ul>
                <li><ul>
                    <li><img src="images/port/1.jpg" width="597" height="453" alt="img"  /></li>
                    <li><img src="images/port/2.jpg" width="597" height="453" alt="img"  /></li>
                    <li><img src="images/port/3.jpg" width="597" height="453" alt="img"  /></li>
                </ul></li>
                <li><ul>
                    <li><img src="images/port/4.jpg" width="597" height="453" alt="img"  /></li>
                    <li><img src="images/port/5.jpg" width="597" height="453" alt="img"  /></li>
                    <li><img src="images/port/6.jpg" width="597" height="453" alt="img"  /></li>
                </ul></li>
                <li><ul>
                    <li><img src="images/port/7.jpg" width="597" height="453" alt="img"  /></li>
                    <li><img src="images/port/8.jpg" width="597" height="453" alt="img"  /></li>
                </ul></li>
                <li><ul>
                    <li><img src="images/port/9.jpg" width="597" height="453" alt="img"  /></li>
                    <li><img src="images/port/10.jpg" width="597" height="453" alt="img"  /></li>
                </ul></li>
               <li><ul>
                    <li><img src="images/port/11.jpg" width="597" height="453" alt="img"  /></li>
                    <li><img src="images/port/12.jpg" width="597" height="453" alt="img"  /></li>
                </ul></li>
            </ul>
        </div>
  • 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-06T00:41:53+00:00Added an answer on June 6, 2026 at 12:41 am

    If you are wanting all of the sub UL’s displayed, and menu hover to trigger pause/resume of applicable slideshow try this:

    DEMO : http://jsfiddle.net/Gq8uu/2/

    /* set options for all slideshows */
    var cycleOpts={
       timeout: 2000,
        manualTrump:true    
    }
    
    $(function() {
        var $menu_items = $('.menu li');
        var $shows = $('.main-img li ul')
    
        $shows.each(function(idx) {
            var $sho = $(this);
            /* create slidshow and set to pause*/
            $sho.cycle(cycleOpts).cycle('pause');
            /* menu hover pause/resume show*/
            $menu_items.eq(idx).on('mouseenter mouseleave', function(evt) {
                var action = evt.type == 'mouseenter' ? 'resume' : 'pause';
                $sho.toggleClass('active').cycle(action);
            /* menu click for next slide*/  
            }).click(function(){
                $sho.cycle('next');
                return false;
            });
        });
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I think my apache webserver has got problem. I can't reference jquery.js I get
I've got a problem which I just can't seem to get around involving a
I got some problem with texture transparency, I hope ya can help. Details: XNA
I've got one head scratcher of a problem that I can't seem to find
Can anyone help with a small problem. I've got a nice simple CSS dropdown
I've got this problem and I can't for the life of me find a
Got this really stupid problem: Can find the proper name for the android folder
So I got a problem that I can't wrap my mind around. I'm creating
I've got this problem that I can't solve. Partly because I can't explain it
I've come this far without asking for help, but I've got a problem that

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.