NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page load certain images first

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search
5 members in live chat ~  


Closed Thread
 
LinkBack Thread Tools
Old 03-17-2004, 03:14 AM THREAD STARTER               #1 (permalink)
New Member
Join Date: Mar 2004
Posts: 3
spirelli is an unknown quantity at this point
 



load certain images first


How can I make sure that certain images are loaded before the rest?
I'd like to know this in general.


Then I have also an example is here http://www.plessner.co.uk/homepage.html

An external document is loaded into a layer as a popup that can be closed. I'd like to have the two images in the popup load first so that it's complete. At the moment they seem to load last. Is this possible?

The layer with the document shows up in IE straight away. That's the way it should be. In Mozilla however the layer only shows up after the rest od the page has loaded. Bad. Can I change this with some script?
????: NamePros.com http://www.namepros.com/programming/23832-load-certain-images-first.html

Thanks a lot for your help!

By the way, the original code comes from http://www.dynamicdrive.com/dynamici...htmlwindow.htm

Markus
spirelli is offline  
Old 03-17-2004, 09:20 PM   #2 (permalink)
NamePros Expert
 
Anthony's Avatar
Join Date: Dec 2003
Location: NYC
Posts: 9,132
Anthony has a brilliant futureAnthony has a brilliant futureAnthony has a brilliant futureAnthony has a brilliant futureAnthony has a brilliant futureAnthony has a brilliant futureAnthony has a brilliant futureAnthony has a brilliant futureAnthony has a brilliant futureAnthony has a brilliant futureAnthony has a brilliant future
 

Member of the Month
October 2004

You need to use a preloading image script like this one and you will be ready to go:
http://javascriptkit.com/script/scri...oadimage.shtml
Anthony is offline  
Old 03-17-2004, 10:06 PM THREAD STARTER               #3 (permalink)
New Member
Join Date: Mar 2004
Posts: 3
spirelli is an unknown quantity at this point
 



will this work for me, because the images are on a differen page from the main page.

Or do I put the code just on the main page and that's it?

I tried it and there is no difference at all in the order the images load
Last edited by spirelli; 03-17-2004 at 10:19 PM.
spirelli is offline  
Old 03-19-2004, 11:13 PM   #4 (permalink)
NamePros Expert
 
Anthony's Avatar
Join Date: Dec 2003
Location: NYC
Posts: 9,132
Anthony has a brilliant futureAnthony has a brilliant futureAnthony has a brilliant futureAnthony has a brilliant futureAnthony has a brilliant futureAnthony has a brilliant futureAnthony has a brilliant futureAnthony has a brilliant futureAnthony has a brilliant futureAnthony has a brilliant futureAnthony has a brilliant future
 

Member of the Month
October 2004

What's the problem? You need to enter the URLs of the graphics to preload in the code and then it should work.
Anthony is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


 
All times are GMT -7. The time now is 02:16 PM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger