Submit Your Article Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register
 

Go Back   WebForumz.com > The Code > JavaScript

Reply
 
LinkBack Thread Tools
Old March 14th, 2009, 04:25 AM   #1
New Member
 

Join Date: May 2008
Location: Colorado
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 silvertine is on a distinguished road
preloading then showing pictures

I just spent 3 hours analyzing tons of lightboxes, image galleries, jQuery plugins. Now I'm a bit frustrated.
I don't want a snazzy animation effect.
I don't want a pre-made layout.


This is what I want:

On page load, 12-15 bigger images are preloaded into browser cache.
Div#container contains a default image.
When user clicks a thumbnail link, the corresponding (bigger) preloaded image shows inside #container.


A jQuery solution would be good. Any assistance is mmmmmuch appreciated.
silvertine is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old March 15th, 2009, 05:48 AM   #2
Reputable Member
 

Join Date: Jul 2007
Location: UK
Posts: 135
Thanks: 2
Thanked 2 Times in 2 Posts
Rep Altering Power: 0 jonnymorris is on a distinguished road
Re: preloading then showing pictures

I'm sure I've seen very simple thumbnail galleries that do exactly what you want, with no animation or such - just a large image that floats over the rest of the page when the thumbnail is clicked (presumably where ever you want it to - e.g. inside a pre-made area). I can't think of a URL for one off the top of my head but if you search javascript repositories for image or photo galleries then you're sure to come across it.

One thing I would be wary of though is pre-loading 15 large images, as this could delay page loading and leave the user waiting at a blank page.

You could check out my nature gallery here: http://www.jonathanmortimer.co.uk/nature/beasties.html
It does not use pre-loading but uses basic javascript to convert a thumbnail click into a larger image display. If you go to the About This Website page you'll find a link to download the stylesheet. My main difficulty with this site was getting the image description to change with the image, which was sorted out with help from the nice peeps on this forum.
__________________
My other iMac is an iMac.

Last edited by jonnymorris; March 15th, 2009 at 05:56 AM..
jonnymorris is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks


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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Preloading images, anything i should know? Zonglars JavaScript 8 July 23rd, 2007 08:03 AM
preloading using a swf? nikising Flash and ActionScript 7 May 23rd, 2007 04:42 AM
podcast preloading matthewpage Flash and ActionScript 3 October 25th, 2006 10:28 AM
background image not showing up in Firefox but showing in other browsers! eskymo HTML, XHTML and CSS 21 January 19th, 2006 07:10 PM
preloading CSS in a webpage shahid HTML, XHTML and CSS 1 September 30th, 2005 10:19 PM


Search Engine Optimization by vBSEO 3.2.0 RC8