Runtime Error

hello,<br />
I have created two drop-down menus' in my site (Using Frontpage 2002) but each time i try to select one of the links an error window (Runtime Error) comes up..<br />
<br />
Drop-down menu code for menu1..<br />
<br />
<font face="Arial" size="7" color="#ffffff"><select name="menu1" style="background-color: #000000 ; color:#ffffff; font-style:normal; font-variant:normal; font-weight:normal; font-size:10" size="1" onChange="MM_jumpMenu('parent',this,0)" dir="rtl"><br />
<option selected>>></option><br />
<option value="http://www.one.com">1</option><br />
<option value="http://www.two.com">2</option><br />
<option value="http://www.three.com">3</option><br />
<option value="http://www.four.com">4</option><br />
</select></font></p><br />
-----------------------------------------------------<br />
For this code i get an error msg of<br />
A Runtime Error has occured<br />
Do you wish to Debug?<br />
<br />
Line: 96<br />
Error: Object expected<br />
<br />
<br />
Drop-down menu code for menu2....<br />
<br />
<font face="Arial" size="7" color="#ffffff"><select name="menu2" style="background-color: #000000 ; color:#ffffff; font-style:normal; font-variant:normal; font-weight:normal; font-size:10" size="1" onChange="MM_jumpMenu('parent',this,0)" dir="rtl"><br />
<option selected>>></option><br />
<option value="http://www.google.com">Google</option><br />
<option value="http://www.yahoo.com">Yahoo</option><br />
<option value="http://www.microsoft.com">Microsoft</option><br />
<option value="http://www.nokia.com">Nokia</option><br />
<option value="http://www.support.com">Support</option><br />
</select></font></p><br />
---------------------------------------------------------<br />
For this code i get an error msg of<br />
A Runtime Error has occured<br />
Do you wish to Debug?<br />
<br />
Line: 108<br />
Error: Object expected<br />
<br />
<br />
Thank you for taking the time to help me with this..<!--content-->debug it :). there is most likely a problem with your function MM_jumpMenu. Could you post a link though? Ok I looked on<br />
<!-- m --><a class="postlink" href="http://qatarsoul.com/">http://qatarsoul.com/</a><!-- m --> . I did not even see a java script function or an import, make sure that exists. Also your background music only works in ie, modify the loop. Also you did noy use a doc type and you have <!-- comments around your css for your scroll bars. The comments around your css are not neccessary, if a browser cannot read css it just ignores it, those comments are not doing anything :). But specify a doc type because when you do not do that it throws your browser into quirks mode.<br />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"<br />
"http://www.w3.org/TR/html4/loose.dtd"><br />
that is probably why you should use since you have an iframe.<!--content-->Well i am not an expert in HTML (Maybe a beginner), so if you please can explain more :D <br />
<br />
I tried copying the <br />
<br />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" <br />
"http://www.w3.org/TR/html4/loose.dtd"><br />
<br />
In the HTML code for my site, but i had a problem.. The iframe page won't show..!!<br />
How can i modify the loop for the sound?<br />
<br />
Thanks for your time and effort..<!--content-->try just putting loop="false", post ur iframe code plz.<!--content-->I will change the loop to false, thanks <br />
<br />
<br />
here is the iframe code:<br />
<br />
<td width="67%" height="1" valign="top"><br />
<p>&nbsp;<iframe src=http://www.webdeveloper.com/forum/archive/index.php/"news.htm" name="I1" width="98%" height="389"<br />
marginwidth="0" frameborder="0" marginheight="0"></iframe></td><br />
<br />
<br />
:D :D <br />
<br />
<script type="text/javascript" language="javascript"><br />
function MM_jumpMenu(targ,selObj,restore){ //v3.0 <br />
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'" ); <br />
if (restore) selObj.selectedIndex=0; <br />
} <br />
</script><br />
<br />
This was missing, it is working now.. hahaha i feel so ****...<br />
But my hitcounter is not working now :confused: <br />
<br />
<h5 align="center"><br />
<!--webbot bot="HitCounter" u-custom i-image="4" i-resetvalue="0" PREVIEW="<strong>[Hit Counter]</strong>" i-digits="0" startspan --><img src=http://www.webdeveloper.com/forum/archive/index.php/"../_vti_bin/fpcount.exe/C:/Documents%20and%20Settings/user/My%20Documents/My%20Webs/?Page=روح%20قطــر/index.htm|Image=4" alt="Hit Counter"><!--webbot bot="HitCounter" i-checksum="61153" endspan --></h5><br />
<br />
Every time i fix something another thing pops up.. :(<!--content-->What kind of counter is that? Are you hosting this site off of your own server and use iis to track it or something? If the hit counter is a tracking service just get the code again. Actually a really good service is <!-- w --><a class="postlink" href="http://www.extreme-dm.com">www.extreme-dm.com</a><!-- w --> they are who I use for my tracking, they are also free.<!--content-->I use FrontPage 2002 for creating my site.. There is an option of adding a hitcounter, and i did add it but it is not working properly.. I will go check out the site you provided to try and add a counter from there (Hope i can get it).. Thanks for your help..<br />
<br />
One more quetion please :D <br />
<br />
Now the drop-down menu is working but opening the link in the same page, where can i add the "_blank" page so it opens on a new page? :) <br />
<br />
Thanks<!--content-->well its java script so just use that to open a new window. Search the forums for that one, java script window etc.<!--content-->Thanks a lot PeOfEo :)<!--content-->no prob<!--content-->
 
Back
Top