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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T18:57:38+00:00 2026-05-31T18:57:38+00:00

Im trying to get this working but for some reason it’s just not right.

  • 0

Im trying to get this working but for some reason it’s just not right. I want an image to fade to another image and just keep looping. It works in the fiddle but not on my wordpress site. I think it has to do with this piece. Any help would be greatly appreciated.

Here is the example: http://jsfiddle.net/8ks9K/

jQ:

function cycleImages() {
    $('#portfolio_cycler').each(function() {
        var $active = $(this).find('.active');
        var $next = ($(this).find('.active').next().length > 0) ? $(this).find('.active').next() : $(this).find('img:first');
        $next.css('z-index', 2); //move the next image up the pile
        $active.fadeOut(1500, function() { //fade out the top image
            $active.css('z-index', 1).show().removeClass('active'); //reset the z-index and unhide the image
            $next.css('z-index', 3).addClass('active'); //make the next image the top one
        });
    });
}

$(document).ready(function() {
    // run every 5s
    setInterval('cycleImages()', 5000);
});

HTML:

<div id="feat_header">
    <div id="portfolio_cycler">
        <img class="active" src="http://baylor-personal-edge.com/wp-content/themes/striking/images/text_slide1.jpg" alt="You're used to a certain type of comfort" />
        <img src="http://baylor-personal-edge.com/wp-content/themes/striking/images/text_slide2.jpg" alt="You're physical should be no different" />        
    </div>
</div>

CSS:

#portfolio_cycler{position:relative;}
#portfolio_cycler img{position:absolute;z-index:1}
#portfolio_cycler img.active{z-index:3}
#feat_header {
    background:#000;
    position:absolute;
    top:20px;
    left:1px;
    height:23px;
    width:310px;
    z-index:9999;
    padding:10px;
    font-size:15px;
    color:#FFF;
    font-style:italic;
    font-weight:bold;
}
  • 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-31T18:57:39+00:00Added an answer on May 31, 2026 at 6:57 pm

    Something to keep in mind when developing in any framework that may be using jQuery or has plugins that may be using jQuery is to define a noConflict.

    var $j = jQuery.noConflict();
    

    just remember that you now need to change any instance of jQuery or $ to your newly defined $j

    $j(document).ready(function() {
        $j('.example').fadeIn();
    });
    

    This may explain why its not working in WordPress.

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

Sidebar

Related Questions

I am trying to get django cms working with pinax but for some reason
I'm trying to get this working and the query executes but nothing comes back.
I'm trying to get this simple PowerShell script working, but I think something is
I am trying to get the information out of this array, but for some
I'm trying to get started with Hibernate, but can't insert data, for some reason.
I've been trying to get this little project I'm doing finished, but for some
I'm trying to get css3pie to work with asp.net mvc, but for some reason
I can't wrap my head around this for some reason. I'm trying to get
I see examples for this all over, but for some reason, mine isn't working.
I have a trouble trying to get this working. I have an Item model,

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.