I'm working on a website which will use the Slider control from YUI. It runs when onDOMReady is executed.
But my website has a global header that must be put on all pages, which has a site navigation menu which uses onContentReady. It caused the Slider control to stop working. And since I'm just an intern, I do not have the permission to change it. I need a way to make onContentReady and onDOMReady co-exist. Can anyone help?
http://developer.yahoo .com/yui/examples/slider/slider-simple_clean.ht ml
The slider is created and its value is set to 20 after the page's DOM has finished loading.
Copy their source code, and add these right after the <body> tag:
Then the slider is never created.
But my website has a global header that must be put on all pages, which has a site navigation menu which uses onContentReady. It caused the Slider control to stop working. And since I'm just an intern, I do not have the permission to change it. I need a way to make onContentReady and onDOMReady co-exist. Can anyone help?
http://developer.yahoo .com/yui/examples/slider/slider-simple_clean.ht ml
The slider is created and its value is set to 20 after the page's DOM has finished loading.
Copy their source code, and add these right after the <body> tag:
Code:
<div id="topmenu"></div>
<script type="text/javascript">
YAHOO.util.Event.onContentReady("topmenu",alert("contentready"));
Comment