Notice that many site front pages contain a main focus point, an area of content that switches through 4-5 different images or html content, like a preview teaser? Here is an example:
http://www.pricegrabber.co.uk/
A Featured Products 'Showcase' with several tabs
* Laptops
* Cameras
* TVs
* Fragrance
* Blu-ray Players
When you mouseover / hover over the tab link, the current content fades out, before fading in the new content. I would like to recreate this functionality, using jquery library or a simple javascript function if possible.
There are other variations of this content slideshow online, but most of these are dependent upon fixed width DIVs and slide in and out of view, thus making them unsuitable for fluid layouts. However, this method with fade transitions rather than slide in is more preferable as it allows fluid layouts and variable width DIVs to fit in nicely without major problems.
I would appreciate if someone could put together the javascript / jquery necessary to achieve that effect, perhaps using about 5 tabs or links (related to 5 DIVs) as in the example above. It would also be a nice touch to show a random tab content on page load rather than showing the first tab content by default.
Thanks.
http://stilbuero.de/jquery/tabs/#fragment-28
Just read about this library :)