britishrallying
03-17-2004, 06:51 PM
Hi,
Got a problem, i needed to use a script to randomly select images in a table, which worked fine, until i put my drop down menu on the page as well!!
<head>
<script type="text/javascript" language="javascript" src="/java/bg1.js"></script>
<script type="text/javascript" language="javascript" src="/menu/sniffer.js"></script>
<script type="text/javascript" language="javascript1.2" src="/menu/custom.js"></script>
<script type="text/javascript" language="javascript" src="/menu/style.js"></script>
<title>British Rallying.com</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="/styles/master.css" rel="stylesheet" type="text/css">
</head>
Top line is the random background, the three lines below are the drop down menu. The menu always works, but the background doesnt, remove the menu lines and then the random script works!
Example Page with Menu (http://www.britishrallying.com/main.html)
Example Page without Menu (http://www.britishrallying.com/main2.html)
The menu also requires a line at the very end of the page to call it into the webpage just before the </body> tag:
<script type="text/javascript" language="javascript1.2" src="/menu/menu.js"></script>
Ive also tried just putting the script for the random image, straight into the page, but still with no luck! :(
Im a bit new at javascript, so hopefully there is an easy answer for this!
Regards,
Gareth Burrows
Got a problem, i needed to use a script to randomly select images in a table, which worked fine, until i put my drop down menu on the page as well!!
<head>
<script type="text/javascript" language="javascript" src="/java/bg1.js"></script>
<script type="text/javascript" language="javascript" src="/menu/sniffer.js"></script>
<script type="text/javascript" language="javascript1.2" src="/menu/custom.js"></script>
<script type="text/javascript" language="javascript" src="/menu/style.js"></script>
<title>British Rallying.com</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="/styles/master.css" rel="stylesheet" type="text/css">
</head>
Top line is the random background, the three lines below are the drop down menu. The menu always works, but the background doesnt, remove the menu lines and then the random script works!
Example Page with Menu (http://www.britishrallying.com/main.html)
Example Page without Menu (http://www.britishrallying.com/main2.html)
The menu also requires a line at the very end of the page to call it into the webpage just before the </body> tag:
<script type="text/javascript" language="javascript1.2" src="/menu/menu.js"></script>
Ive also tried just putting the script for the random image, straight into the page, but still with no luck! :(
Im a bit new at javascript, so hopefully there is an easy answer for this!
Regards,
Gareth Burrows