Go Back  HTML Forums - Free Webmaster Forums and Help Forums > WEBSITE DEVELOPMENT > Client Side Scripting
User Name:
Password:
 

Reply
Thread Tools   Display Modes
  View First Unread
 
Old 09-26-2005, 04:08 PM
  #1
mike444
Aspirant (Level 2)
 
Join Date: Feb 2003
Location: N.J.
Posts: 19
iTrader: (0)
mike444 is on a distinguished road
Drop down menus not working...

I had a problem earlier with my menus not appearing in Mozilla. I switched to different menus that now show up in both IE and Mozilla but they are not working. When I select a website from any menu and click "Go", nothing happens. Very weird. Here is the page if anyone can suggest anything:

http://warlike.ms11.net/mglinks.html

Someone at another site told me it was:

"Error: document.form.site has no properties
Source File: http://warlike.ms11.net/mglinks.html
Line: 19"

Which is around here:

"<!-- Begin
function formHandler(form){
var URL = document.form.site.options[document.form.site.selectedIndex].value;
window.location.href = URL;
// End -->"


Also, the menu script actually works! before I make changes to font size and colors and ad my own links. Go figure. But in regards to the line the person pointed out, what kind properties are missing? I've never seen that particuliar line of code before and am not sure what to put there to make the menus work. Is it looking for a url? I just want to put in the standard data to get the menus functional. Thanks.
mike444 is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 09-26-2005, 05:47 PM
  #2
birdbrain
Paladin (Level 15)
 
Join Date: Sep 2005
Location: I have a bijou perch
Posts: 314
iTrader: (0)
birdbrain is an unknown quantity at this point
Hi mike444,

try this...
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 transitional//EN" 
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Welcome to warlikeway.com -  the best of the military video game scene!</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link rel="stylesheet" type="text/css" href="images124.css">
<link rel="stylesheet" type="text/css" href="sddm.css">
<script type="text/javascript">
<!-- Original: Alex Tu <boudha1@hotmail.com> -->
<!-- Web Site:  http://www.geocities.com/MadisonAvenue/4368 -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin
function formHandler(num){
var URL = document.forms[num].site.options[document.forms[num].site.selectedIndex].value;
window.location.href = URL;
// End -->
}
</script>
<!--[if IE]>
<style type="text/css">
html {
scrollbar-arrow-color:#808000;
scrollbar-track-color:#000000;
scrollbar-face-color:#000000;
scrollbar-highlight-color:#000000;
scrollbar-3dlight-color:#808000;
scrollbar-darkshadow-color:#808000;
scrollbar-shadow-color:#000000;
}
</style>
<![endif]-->
</head>
<body>
<center>
<div class="wrapper">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/
shockwave/cabs/flash/swflash.cab#version=4,0,2,0" width="726" height="42">
<param name="movie" value="Doors6.swf">
<param name="quality" value="high">
<param name="menu" value="true">
<embed src="Doors6.swf" quality="high" menu="true" pluginspage="http://www.macromedia.com/shockwave/
download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="726" height="42">
</embed>
</object>
<img src="http://img398.imageshack.us/img398/9849/2logo7fy.jpg" alt="">
<div class="left" style="font-weight: bold; margin: 5px; height: 100%; width: 150px;" align="center"><br>
<a href="http://com5.runboard.com/bwarlikewayforums"><img src="http://img319.imageshack.us/img319/352/warway7vx.jpg" alt=""></a><!-- BEGIN BALLOT BOX CODE -->
<script type="text/javascript">
<!-- start hide content from old browsers
function Start(page)
{OpenWin = this.open(page,"popup","scrollbars=1,top=50,left=100,width=560,height=450");}
// end hide content from old browsers -->
</script>
<form action="http://www.ballot-box.net/service/poll.vote.php" method="post" target="popup">
<input type="hidden" name="poll" value="81312">
<input type="hidden" name="popup" value="1">
<table bgcolor="black" border="0" cellspacing="0" cellpadding="0" width="147">
<tr><td><table border="1" cellspacing="0" cellpadding="2" width="100%">
<tr bgcolor="black"><td align="center">
<font face="arial" color="olive" size="2">
<b>Poll</b></font></td></tr>
<tr><td bgcolor="olive">
<font face="verdana" color="black" size="1">
<b>What is the best military game to play online?</B><br><br>
<input type="checkbox" name="answer[1][]" value="1"> Socom II<br>
<input type="checkbox" name="answer[1][]" value="2"> Black Hawk Down<br>
<input type="checkbox" name="answer[1][]" value="3"> Rainbow Six<br>
<input type="checkbox" name="answer[1][]" value="4"> Battlefield 2<br>
<input type="checkbox" name="answer[1][]" value="5"> Call Of Duty<br>
<input type="checkbox" name="answer[1][]" value="6"> Battlefronts<br>
<input type="checkbox" name="answer[1][]" value="7"> Killzone<br></font>
<br><center><input type="submit" value="Submit Vote" onclick="Start('');">
<br><a href="http://www.ballot-box.net/service/poll.results.php?poll=81312&amp;popup=1" onclick="Start(this.href);return false;" target="_blank"><font color="#000000" size="1">View Results</font></A>
</center></td></tr>
</table></td></tr></table></form>
<!-- END BALLOT BOX CODE -->
</div>
<div class="border content padleft" style="padding-left: 20px;" align="left"><br><font color="#808000"><b>Official & related website links:</b></font><br><br>
<table><tr><td><form name="form" action="#">
<select name="site" size=1 style="background-color: #000000; color: #808000; font-weight: bold; font-size: 7pt;">
<option value="">Official Sites</option>
<option value="">--------</option>
<option value="http://www.ensemblestudios.com">Age of Empires</option>
<option value="http://gifs123.tripod.com/">America's Army</option>
<option value="http://www.draac.com">Battlefield 2</option>
<option value="http://www.draac.com">Brothers In Arms</option>
<option value="http://www.draac.com/java.html">Call of Duty</option>
<option value="http://www.draac.com">Conflict</option>
<option value="http://www.draac.com">Counter Strike</option>
<option value="http://www.draac.com/tools.html">Delta Force</option>
<option value="http://www.draac.com">Empire Earth</option>
<option value="http://www.draac.com">Ghost Recon</option>
<option value="http://www.draac.com">kill.switch</option>
<option value="http://www.draac.com">Killzone</option>
<option value="http://www.draac.com">MOH: Allied Assault</option>
<option value="http://www.draac.com">MOH: Frontline</option>
<option value="http://www.draac.com">MOH: Rising Sun</option>
<option value="http://www.draac.com">Rainbow 6</option>
<option value="http://www.draac.com">Sniper Elite</option>
<option value="http://www.draac.com">Socom</option>
<option value="http://www.draac.com">Socom II</option>
<option value="http://www.draac.com">Socom III</option>
<option value="http://www.draac.com">Splinter Cell</option>
</select>
<input type=button value="Go!" onclick="javascript:formHandler(1)" style="background-color: #000000; color: #808000; font-weight: bold; font-size: 7pt;">
</form></td><td><form name="form"  action="#">
<select name="site" size=1 style="background-color: #000000; color: #808000; font-weight: bold; font-size: 7pt;">
<option value="">Unofficial Sites</option>
<option value="">--------</option>
<option value="http://www.draac.com">Draac.Com</option>
<option value="http://gifs123.tripod.com/">Draac's Gifs 123</option>
<option value="http://www.draac.com/tools.html">Web Tools</option>
<option value="http://www.draac.com/java.html">Javascripts</option>
</select>
<input type=button value="Go!" onclick="javascript:formHandler(2)" style="background-color: #000000; color: #808000; font-weight: bold; font-size: 7pt;">
</form></td><td><form name="form"  action="#">
<select name="site" size=1 style="background-color: #000000; color: #808000; font-weight: bold; font-size: 7pt;">
<option value="">Related Sites</option>
<option value="">--------</option>
<option value="http://www.draac.com">Draac.Com</option>
<option value="http://gifs123.tripod.com/">Draac's Gifs 123</option>
<option value="http://www.draac.com/tools.html">Web Tools</option>
<option value="http://www.draac.com/java.html">Javascripts</option>
</select>
<input type=button value="Go!" onclick="javascript:formHandler(3)" style="background-color: #000000; color: #808000; font-weight: bold; font-size: 7pt;">
</form></td><td>
<form name="form"  action="#">
<select name="site" size=1 style="background-color: #000000; color: #808000; font-weight: bold; font-size: 7pt;">
<option value="">Search</option>
<option value="">--------</option>
<option value="http://www.draac.com">Draac.Com</option>
<option value="http://gifs123.tripod.com/">Draac's Gifs 123</option>
<option value="http://www.draac.com/tools.html">Web Tools</option>
<option value="http://www.draac.com/java.html">Javascripts</option>
</select>
<input type=button value="Go!" onclick="javascript:formHandler(4)" style="background-color: #000000; color: #808000; font-weight: bold; font-size: 7pt;">
</form></td></table><table><tr><td>
<form name="form"  action="#">
<select name="site" size=1 style="background-color: #000000; color: #808000; font-weight: bold; font-size: 7pt;">
<option value="">Clan Sites</option>
<option value="">--------</option>
<option value="http://www.draac.com">Draac.Com</option>
<option value="http://gifs123.tripod.com/">Draac's Gifs 123</option>
<option value="http://www.draac.com/tools.html">Web Tools</option>
<option value="http://www.draac.com/java.html">Javascripts</option>
</select>
<input type=button value="Go!" onclick="javascript:formHandler(5)" style="background-color: #000000; color: #808000; font-weight: bold; font-size: 7pt;">
</form></td></tr></table>
<br><br><br><br><br>
<font color="#cc0000">Search for all the best & latest in military video games @:</font>	
 <p><a href="http://www.eyeammo.com"><img src="http://img185.imageshack.us/img185/9959/eye0ky.jpg" width="80%"height="150" border="0" alt=""></a></p>
<br />
</div>
<br style="clear: both;" />
<div class="border footer">Copyright 2005 - warlikeway.com</div>
</div>
</center>
</body>
</html>
The page now validates, except, of course, for the embed element.
If you want complete validation you would need to consider using the Satay Method for flash.
birdbrain is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 09-26-2005, 06:18 PM
  #3
mike444
Aspirant (Level 2)
 
Join Date: Feb 2003
Location: N.J.
Posts: 19
iTrader: (0)
mike444 is on a distinguished road
You went ahead and validated my page? Was that the problem? A million thanks, man!
mike444 is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 09-26-2005, 06:26 PM
  #4
birdbrain
Paladin (Level 15)
 
Join Date: Sep 2005
Location: I have a bijou perch
Posts: 314
iTrader: (0)
birdbrain is an unknown quantity at this point
Hi mike444
Quote:
You went ahead and validated my page? Was that the problem? A million thanks, man!
No that was not the problem. The problem was with the script, as you were told at another site.
I just corrected a few other unrelated coding errors on the way.
birdbrain is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote

Reply
KEEP TABS
SPONSORS
 
Boxedart
 
 


 
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
  
 
 
 



 
  POSTING RULES
 
 
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Thread Tools
Display Modes

Forum Jump

 

All times are GMT -5. The time now is 11:42 AM.

   

Mascot team created by Drawshop.com

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

Server Monitoring by ENIACmonitor 0.01
HTMLforums.com © Big Resources, Inc. Web Design by BoxedArt.com
vRewrite 1.5 beta SEOed URLs completed by Tech Help Forum and Chalo Na.