Hi I'm hoping someone may be able to help. I'm building a site for a kayaking pal. I had set out to make it accessible, but now have added a couple of javascript functions (both shareware). I am not very familiar with javascript, but it seems the functions are clashing with one another. I have one which controls the speed of the page movement and another which controls the calendar. All working fine, unless you click on a month to change the calendar date first, which then takes you back to the menu instead of changing the date. If you select the 'show current date' first and then change the month it works fine. Unfortunately I have no idea why. Could anyone be kind enough to have a look see for me?
Would be ever so grateful.
http://www.ukrenewables.com/squirt/the_only_page.htm
Sarah
Your problem is that you have two onload statements, and the second over-writes the first.
<script type="text/javascript" src=http://codingforums.com/archive/index.php/"js/thw.js" onload="HtinyScrolling.init();"></script>
<body onload="changedate('return'); HtinyScrolling.init(); scrollTips.init();">
<div id="page">
For the solution to this see:-
http://www.javascriptkit.com/javatutors/multiplejava.shtml
But you may have another problem. You may not have two or more functions or variables with the same names ( one clashes with the other).
check this out (espcially variables named 'x', 'c' and so forth).
Many thanks Philip I'll give that a whirl.
Sarah