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;dis play:block ">
<table id="fullnb" border=0>
<tr><td><a href="javascript:sizeTbl(' none')"><i mg 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('t bl');
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!
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;dis
<table id="fullnb" border=0>
<tr><td><a href="javascript:sizeTbl('
</table>
</div>
<script language="JavaScript" type="text/javascript">
<!--
function sizeTbl(h) {
var tbl = document.getElementById('t
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You old die the document ready event
ASKER
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.