Link to home
Start Free TrialLog in
Avatar of kimsurtd
kimsurtd

asked on

nivo slider - jquery slider - start off then turn on again

I have modified my wordpress home page to add a banner for new visitors.  

If the nivo slider is turned on, it is too distracting to read.  So I start with the nivo slider off by changing the javascript to:  manualAdvance:true,

So that works great.

But once someone closes the banner by clicking on it, I want to kick the animation back on.  How would I do that?  The live version of my code is found here:

http://market.rockthedeadline.com

Static version here:

<div id=tbl name=tbl style="overflow:hidden;display:block">
<table id="fullnb" border=0>
<tr><td><a href="javascript:sizeTbl('none')"><img src="http://www.rockthedeadline.com/images/Home-Page-Banner-white.jpg"></a></td></tr>
</table>
</div>
<script language="JavaScript" type="text/javascript">
<!--
function sizeTbl(h) {
  var tbl = document.getElementById('tbl');
  tbl.style.display = h;
}
// -->

I know I should be sticking something into the sizeTbl function to turn it back on, because that is the code that closes the banner, but I'm not sure what exactly.  

Thanks!
ASKER CERTIFIED SOLUTION
Avatar of Michel Plungjan
Michel Plungjan
Flag of Denmark image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of kimsurtd
kimsurtd

ASKER

Thank you.  I appreciate it.

I had just found that earlier, and was stuck on how to stop the slider after the load event. In wordpress, it is difficult to find what gets triggered when.  

So where to insert the stop function call is what I am experimenting with now.
You  old die the document ready event