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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T15:20:57+00:00 2026-05-22T15:20:57+00:00

Edit: Somehow I knew, after two days messing with this, that I’d figure it

  • 0

Edit: Somehow I knew, after two days messing with this, that I’d figure it out just after I posted it here. For future reference, the auto doesn’t seem to work for some reason for height and width. Manually define it in the cycle plugin, use a finder function to find the max if you are using different sized images. This seems to work, but if anyone has a solution to get ‘auto’ back working, I’d love it. Sorry for wasting space on this!

Working cycle code:

$('.fadeit').cycle({ 
    fx:     'fade',
   *width:   240,
   *height:  320,
    speed:   300, 
    timeout: 3000, 
    next:   '.fadeit', 
    pause:   1 ,
    slideExpr: 'img.andy'
});

This is a problem I’ve seen other people have, and I had once before and resolved. Unfortunately, it has popped back up, even after using the ‘fix’ that seemed to work before (position absolute and float left or right.) When my page starts loading, the text appears beside the image, as it’s supposed to. As soon as cycle-lite starts up, the text moves under (as in it looks like its z-index is lower) the slideshow, so it is hidden. It doesn’t seem to matter what css config I use, but I’m assuming it must be the issue. I heard the full cycle plugin works, but I can only edit part of the body and cycle-lite is what’s pre-included in the head. I also can’t really make the change to the ‘This is some text’ since I’m not always the one that writes it. This is going into a library, but I can’t really put it there without getting it working small-scale first.

My code:

<div height="320" width="240" style="position:relative; float:left; padding:5px;" id="thisisit" class="fadeit">
<img height="320" width="240" alt="" src="http://news.phdcon.com/UserFiles/217/image/2750/2750-1.jpg" style="position:relative; display:none; float:left; padding:5px;" class="andy" /> 
<img height="320" width="240" alt="" src="http://news.phdcon.com/UserFiles/217/image/2750/2750-2.jpg" style="position:relative; display:none; float:left; padding:5px;" class="andy" />  
<img alt="" src="http://news.phdcon.com/UserFiles/217/image/2750/2750-3.jpg"  style="position:relative; visibility:visible; float:left; padding:5px;" class="andy"/> 
<script language="javascript" type="text/javascript"> 

window.onload=function() { 
var aclass = '.' + 'andy';
$(aclass).css('display','inline');

$('.fadeit').cycle({ 
    fx:     'fade', 
    speed:   300, 
    timeout: 3000, 
    next:   '.fadeit', 
    pause:   1 ,
    slideExpr: 'img.andy'
}); };

</script>
</div>
This is some text.
  • 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-22T15:20:58+00:00Added an answer on May 22, 2026 at 3:20 pm

    width: 'auto' doesn’t work here because cycle-lite takes each child element of .fadeit and puts it in absolute positioning, thus removing them from flow and giving .fadeit an effective auto width of 0. (I don’t know why your previous ‘fix’ would have seemed to work; floats and absolute positioning don’t mix.)

    I’ve noticed that <div class="fadeit"> has height and width attributes, which are not legal for <div>. However, if you replace them with those dimensions in the style attribute instead (style="width: 240px; height: 320px; ..."), your original JS (without hard-coded width and height) works. I don’t know whether in your case hard-coding them in the HTML/CSS is any better than in the JS, but based on the sample code you provided, I’m guessing that might be the case?

    I also noticed a lot of extraneous CSS in your sample code (e.g. position: relative on .fadeit when cycle-lite will do this for you, redundant floats on the children images, etc.). Here’s my suggested code:

    <div style="float: left; padding: 5px; height: 320px; width: 240px;" id="thisisit" class="fadeit">
    <img height="320" width="240" alt="" src="http://news.phdcon.com/UserFiles/217/image/2750/2750-1.jpg" style="display: none;" class="andy" /> 
    <img height="320" width="240" alt="" src="http://news.phdcon.com/UserFiles/217/image/2750/2750-2.jpg" style="display: none;" class="andy" />  
    <img alt="" src="http://news.phdcon.com/UserFiles/217/image/2750/2750-3.jpg" class="andy"/> 
    <script language="javascript" type="text/javascript"> 
    
    window.onload=function() { 
    var aclass = '.' + 'andy';
    $(aclass).css('padding':'5px');
    
    $('.fadeit').cycle({ 
        fx:     'fade', 
        speed:   300, 
        timeout: 3000, 
        next:   '.fadeit', 
        pause:   1 ,
        slideExpr: 'img.andy'
    }); };
    
    </script>
    </div>
    This is some text.
    

    Sorry this is probably not the answer you were hoping for!

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

Sidebar

Related Questions

I have just discovered this feature. Declaring an interface using the @interface syntax allows
I just had this thought, I don't know if I am slow though. Usually,
EDIT 1 I do not exclude at all this might be caused by something
Edit : This is a mostly Rails question I'm trying to implement instant payment
Here is my current code: RewriteCond %{HTTP_HOST} !^example\.com [NC] #RewriteCond %{REQUEST_URI}!^something RewriteCond %{HTTP_HOST} ^([^.]+)\.example\.com
Ignoring the IE case, are there any other browsers that can't understand the application/xhtml+xml
Using Python I want to create a symbolic link pointing to a path that
I have recently designed a web application that I would like to write in
Recently stumbled upon this neat little bug or 'feature' in PHP: function myCmpFunc($a,$b) {
I'm trying to create a __set for an object in PHP that works with

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.