Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Computer Forums > Programmers Lounge > Programming Discussions » Preloading Images in webpage
Closed Thread
Old 08-08-2005, 01:16 PM   #1 (permalink)
 
Junior Techie

Join Date: Dec 2004

Posts: 88

developer

Default Preloading Images in webpage

I want to preload the images i want to use for my menu bar (on mouse over and on mouse out effect).

The biggest problem is that is that the images that are to be shown are picked dynamically.
Its an ASP.net page. I have embedded some JavaScript in it. The menu bar is a user control. I set its property and accordingly it picks the menus contents and relevant images from an XML. Now some images are displayed when the onMouseOver event is fired. This is a general preload case except in this case i dont know until request time what images will be needed.
__________________
Somewhere I Belong...
developer is offline  
Old 08-08-2005, 01:26 PM   #2 (permalink)
 
Super Techie

Join Date: Feb 2005

Posts: 262

jinexile

Default

http://javascript.internet.com/gener...ad-images.html
__________________
AMD Athlon 64 3000+ (Overclocked to 3300+)
ASUS K8V-Deluxe
1GB PC3200 DDR
2x200GB Seagate SATA RAID 0
BFG 6800GT OC w\\128MB Ram
2x 19\" Samsung 930B LCDs
jinexile is offline  
Old 08-08-2005, 02:04 PM   #3 (permalink)
 
Junior Techie

Join Date: Dec 2004

Posts: 88

developer

Default

i searched TF for the preloading at found this link.

But the problem is that the user control generates the menu for the whole site so it loads everything from images to link url to even tooltip dynamically.

So i cant write a static script or i resort to generating the javascript dynamically too (wont it slow down to generate it dynamically too?)??? The menu bar is very fast thanks to caching of the menu etc, but cant do the same for images of the javascript!
__________________
Somewhere I Belong...
developer is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On