Click to See Complete Forum and Search --> : Runtime Error


QLink
11-01-2003, 07:00 AM
hello,
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..

Drop-down menu code for menu1..

<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">
<option selected>&gt;&gt;</option>
<option value="http://www.one.com">1</option>
<option value="http://www.two.com">2</option>
<option value="http://www.three.com">3</option>
<option value="http://www.four.com">4</option>
</select></font></p>
-----------------------------------------------------
For this code i get an error msg of
A Runtime Error has occured
Do you wish to Debug?

Line: 96
Error: Object expected


Drop-down menu code for menu2....

<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">
<option selected>&gt;&gt;</option>
<option value="http://www.google.com">Google</option>
<option value="http://www.yahoo.com">Yahoo</option>
<option value="http://www.microsoft.com">Microsoft</option>
<option value="http://www.nokia.com">Nokia</option>
<option value="http://www.support.com">Support</option>
</select></font></p>
---------------------------------------------------------
For this code i get an error msg of
A Runtime Error has occured
Do you wish to Debug?

Line: 108
Error: Object expected


Thank you for taking the time to help me with this..

PeOfEo
11-01-2003, 10:39 AM
debug it :). there is most likely a problem with your function MM_jumpMenu. Could you post a link though? Ok I looked on
http://qatarsoul.com/ . 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.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
that is probably why you should use since you have an iframe.

QLink
11-01-2003, 01:48 PM
Well i am not an expert in HTML (Maybe a beginner), so if you please can explain more :D

I tried copying the

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

In the HTML code for my site, but i had a problem.. The iframe page won't show..!!
How can i modify the loop for the sound?

Thanks for your time and effort..

PeOfEo
11-01-2003, 02:20 PM
try just putting loop="false", post ur iframe code plz.

QLink
11-01-2003, 02:46 PM
I will change the loop to false, thanks


here is the iframe code:

<td width="67%" height="1" valign="top">
<p>&nbsp;<iframe src="news.htm" name="I1" width="98%" height="389"
marginwidth="0" frameborder="0" marginheight="0"></iframe></td>


:D :D

<script type="text/javascript" language="javascript">
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'" );
if (restore) selObj.selectedIndex=0;
}
</script>

This was missing, it is working now.. hahaha i feel so ****...
But my hitcounter is not working now :confused:

<h5 align="center">
<!--webbot bot="HitCounter" u-custom i-image="4" i-resetvalue="0" PREVIEW="&lt;strong&gt;[Hit Counter]&lt;/strong&gt;" i-digits="0" startspan --><img src="../_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>

Every time i fix something another thing pops up.. :(

PeOfEo
11-01-2003, 03:00 PM
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 www.extreme-dm.com they are who I use for my tracking, they are also free.

QLink
11-01-2003, 03:09 PM
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..

One more quetion please :D

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? :)

Thanks

PeOfEo
11-01-2003, 07:03 PM
well its java script so just use that to open a new window. Search the forums for that one, java script window etc.

QLink
11-02-2003, 02:18 AM
Thanks a lot PeOfEo :)

PeOfEo
11-02-2003, 07:28 AM
no prob