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

14 Neighs about “Jquery Fullbrowser Background Images”



G Snake Neighed:

This is awesome, thank you!

Jose Antonio Marquez Russo Neighed:

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

scott from kauai Neighed:

Is that left in the second slide raglan? Looks amazing.

Gaston Neighed:

Resize in Sarafi sometimes causes a blank screen.

It’s great that you’re working on JQuery.

Dale Neighed:

@Scott,

Yeah its Raglan, indicators to be exact. Got some nice tubes that day.

Dale Neighed:

Hmm, I’ll look into that.

Dale Neighed:

@Jose, yes I am. The link is in my about page.

scott from kauai Neighed:

I want to go to NZ bad. Looks like an incredible place. Found any surf in the UK yet?

mariela Neighed:

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 !

Ben Neighed:

Sorry, i get nothing happening on either demos with FF 3.5.4 :(

Sebastian Neighed:

This is exactly was I was looking for! thank you for this! – just a small question though – can you optimize the fps settings?

Seb

Dale Neighed:

There are no FPS settings for browsers, unless you try some trickery with timers..

demetrius Neighed:

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?

Dale Neighed:

@demetrius

No, not using this approach. You can use one of the other classes on my blog for creating proportionally scaled flvs.

Leave a neigh?