[jQuery] Re: random tab and simple content switching

2008-05-02 Thread Tim Marshall
Hi Can anyone else help with this? I tried adding a third item in var ids = [ 'latestArticle', 'inTheMag' ]; but have had no joy in getting it to randomnly appear. Any ideas? Cheers On Apr 5, 3:49 pm, Tim Marshall <[EMAIL PROTECTED]> wrote: > Hi Sperks > > I'm a bit new at JQuery and have been

[jQuery] Re: random tab and simple content switching

2008-04-05 Thread Tim Marshall
Hi Sperks I'm a bit new at JQuery and have been following what you have done here. I'm trying though to add a third id in and can't figure out how to get it to work with an additional set of div's or more for that matter. Can you help? On Feb 22, 2:33 pm, sperks <[EMAIL PROTECTED]> wrote: > I wo

[jQuery] Re: random tab and simple content switching

2008-02-22 Thread sperks
I worked a little longer and in case anyone has been watching trying to work out what I was on about... Here's my final code. I don't thinks it's very clean, and I'm sure there are easier ways of doing this, ways that don't require me to name the ids, etc., but I'm not familiar with the intricate

[jQuery] Re: random tab and simple content switching

2008-02-21 Thread sperks
update: I'm still looking for the random side of things, but I've got "a" solution for the switching. However, I'm a little concerned that I'm targeting h1 rather than the span (how do I go back two parents?) $(document).ready(function() { $('#mainArticle #latestArticle .teaser').hide();