Jquery Fullbrowser Background Images
I seem to be spending more and more time using jQuery than I do Flash, but I think that is just the nature of my current job. I’m actually really enjoying jQuery, it’s a breeze to use and in most instances you can do what you can do in Flash with javascript, only quicker.
To cut a long story short, I had a project come up that needed a javascript full browser background image class, and being the nerd I am, I thought I’d roll my own rather than use any existing jQuery plugins.
I approached it from a Flash standpoint, and tried to replicate the way I use my Flash full browser classes. So rather than operating on a container of image urls as most jQuery full browser plugins do I set this one up to respond to a method call, and load and display each image as requested. The reason for this approach was that I wanted the plugin to only load what images were requested, by me when I wanted them. I’m thinking however of adding in the ‘operate on a container of image urls’ approach to a future iteration.
As this is my first attempt at writing a jQuery plugin I’ve probably made a ton of noob mistakes. Let me know how it works and any bugs you encounter.
Plugin Features
- Set Fade in time
- Center image within browser window on x axis
- Callback methods
An example of loading a single image;.
http://www.noponies.com/dev/jquery-npfullbrowser/static.htm
An example of setting up a slideshow;
http://www.noponies.com/dev/jquery-npfullbrowser/slideshow.htm
Source Files
Here is the relevant source file; jQuery Full Browser Background Images (757)
By downloading, you agree to the terms of use, outlined here: http://www.blog.noponies.com/terms-and-conditions
Dependencies
Zero

October 5th, 2009 at 2:41 am
This is awesome, thank you!
October 7th, 2009 at 3:56 pm
hey, sorry, i think your blog is pretty awesome, i may have asked you before, are you on twitter? i just want to give you credit when i post links back to your post
my twitter is: @joseeight
excellent post by the way, jQuery is the way to go there days!
Cheers
October 8th, 2009 at 9:39 pm
Is that left in the second slide raglan? Looks amazing.
October 8th, 2009 at 9:47 pm
Resize in Sarafi sometimes causes a blank screen.
It’s great that you’re working on JQuery.
October 8th, 2009 at 10:06 pm
@Scott,
Yeah its Raglan, indicators to be exact. Got some nice tubes that day.
October 8th, 2009 at 10:07 pm
Hmm, I’ll look into that.
October 8th, 2009 at 10:07 pm
@Jose, yes I am. The link is in my about page.
October 10th, 2009 at 2:53 am
I want to go to NZ bad. Looks like an incredible place. Found any surf in the UK yet?
October 27th, 2009 at 8:41 pm
Hey, im testing your jquery and is great! but i have a question… when i tryed to insert a flash movie (swf) and upload the html the swf is not visible, do you know if its posible to put divs and content over the background ?
thnxs !
November 3rd, 2009 at 5:36 pm
Sorry, i get nothing happening on either demos with FF 3.5.4
November 12th, 2009 at 7:48 pm
This is exactly was I was looking for! thank you for this! – just a small question though – can you optimize the fps settings?
Seb
November 14th, 2009 at 10:20 am
There are no FPS settings for browsers, unless you try some trickery with timers..
November 17th, 2009 at 4:34 am
Hello Dale! Great blog, just found it @ QBN.
I’m a completely flash newbie and just wanted to ask – is it possible to have an FLV instead of an image and how?
November 17th, 2009 at 9:59 am
@demetrius
No, not using this approach. You can use one of the other classes on my blog for creating proportionally scaled flvs.