Jump to content

Recommended Posts

Hey guys im having a problem with displaying images on top of each other using java script.

 

I tested it out and disabling the java script the images stack on top of each other with no problem.

 

 

im using java script to hide the images then show one by one. like a slide show. it works fine in IE.

 

The problem is the images that java script is controling isnt going between the letters of the words.

 

 

This is with the java script disabled. it all works fine 5 images being displayed on top of each other

inside.jpg

 

Then when I use java script to hide then show the images one by one it looks like this. The first image isnt controled by java script so it remains in place

firefox.jpg

 

 

 

 


.stargate {

display:inline;

position:absolute;

margin-top:20px;

margin-left:-5px;

}


 

 


$(function(){

  var things = $('.stargate');

  var index = 0;

  things.hide(0);

  

var stargate = function() {  

things.eq(index).fadeIn(0,function(){

  

});  

  index++;

  

if (index < 9) {

setTimeout(stargate,250);

}


}; 

 

Link to comment
https://forums.phpfreaks.com/topic/261349-this-only-works-in-ie-for-some-reason/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.