ll87 Posted August 26, 2010 Report Share Posted August 26, 2010 I have implemented an image fader using jQuery but on first load, you briefly see the 4 images load on top of each other. i have tried to hide the images with regular javascript rather than wait until document ready but i can't track down how to solve this. can i actually get rid of this? if u need the url to see, i completely understand and i can send it to u but not on a forum post. i know i might have been vague but i think it's almost certainly a common problem Thanks! Quote Link to comment Share on other sites More sharing options...
newseed Posted August 26, 2010 Report Share Posted August 26, 2010 It's not much to go on. What jquery script are you using or did you create your own? Quote Link to comment Share on other sites More sharing options...
BeeDev Posted August 26, 2010 Report Share Posted August 26, 2010 Hide them using CSS: display:none Then show the first one when ur ready to show it using javascript Quote Link to comment Share on other sites More sharing options...
administrator Posted August 26, 2010 Report Share Posted August 26, 2010 Hide them using CSS: display:none Then show the first one when ur ready to show it using javascript That is probably the best idea. It seems that your images are being loaded before the Javascript is processed .... remember that the web still loads and processes from the top of the page down. So a sequence/placement change might solve your problem. Again though, I would do as suggested above; just load the images into a hidden div and then just reset the div's display property as the first action in the script. Stefan Quote Link to comment Share on other sites More sharing options...
ll87 Posted August 26, 2010 Author Report Share Posted August 26, 2010 the only thing against setting them to display:none is that people with javascript turned off (i dont know anyone who does this) won't see them at all. Quote Link to comment Share on other sites More sharing options...
BeeDev Posted August 31, 2010 Report Share Posted August 31, 2010 Yeah, so then it's either display:none or cater for people without javascript Tough .. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.