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.html
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:
Expand|Select|Wrap|Line Numbers
- <div id="topmenu"></div>
- <script type="text/javascript">
- YAHOO.util.Event.onContentReady("topmenu",alert("contentready"));