N-son tabbed/JsScrollbar, trying to force gif play from click of link using jquery

Posted by user314286 on Stack Overflow See other posts from Stack Overflow or by user314286
Published on 2010-04-12T07:18:43Z Indexed on 2010/04/12 7:23 UTC
Read the original article Hit count: 288

Hello everyone,

Let me start off by stating the obvious; I am new here. That said I hope I am not violating some standard I missed by posting this. xD

For several days now I've been trying to update a rather old site of mine, to which I wont link to given that the update is so drastic that the current product on which I seek your help for doesn't resemble the old site in any other way then appearance.

Anywho! I am using the tabbed div and JsScrollbar created by N-son (http://www.downloadjavascripts.com/list/javasitek60/Details.aspx) and so far have only used jquery to dynamically center content on the page.

My problem however is this...I have a gif on the page that acts as a background (it's not tiled) and I'd like to be able to have it so that when you click on one of the links used in n-sons tabs (EX: news) it also causes the gif to load and play through itself once.

So far all my attempts at accomplishing this myself have failed and break wither the scrollbar or prevent the content from switching when you click the tabs. (Except for one failed attempt where it all worked fine except the handle for the scrollbar would vanish upon switching tabs)

I hope I've been clear in this and that someone is able to help. I know it may seem like a silly question but we're all new at some point. :P

If need be I'll upload what coding I have but it is not pretty.

Thank you in advance.

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about JavaScript