Archive

Archive for March, 2009

JQuery carousel plugin

March 26th, 2009 fbis No comments

This is the start of a jQuery carousel. I’ve used a few carousels but they require a lot of css editing to get them to change widths etc. I wanted one that could easily adapt to displaying different numbers of items. It accepts a noOfItems config that defines how many items it displays and it adjusts it’s width accordingly. Early days but not bad for a few hours work :)

Read more…

Categories: JQuery Tags: ,

JQuery selectors reminder

March 25th, 2009 fbis No comments

Selectors in JQuery are extremely powerful. This is a simple page to test them and as a quick reminder as to what’s available.

Categories: JQuery Tags: ,

JQuery Mini-tips

March 6th, 2009 fbis No comments

Get a DOM object from a JQuery obj

$('#' + id).get(0); //get the dom object from the jquery wrapper

Only include object if JQuery is available

//only include if jquery is available
if (typeof jQuery != 'undefined') {
   //class goes here
}

Read more…

Categories: JQuery, Javascript Tags: