Get ready for BLACK FRIDAY shopping starting in

Forums

This topic is locked

Jump menu items won't open in new page

Posted 28 Apr 2002 05:07:37
1
has voted
28 Apr 2002 05:07:37 Robert Kidd posted:
Does anyone know why won't this work? I want the menu items in my jump menu to open in a new "_blank" page.


Can't I just do it this way:
<option value="www.editfast.com/editsub.htm" target="_blank">Submissions</option>

or do I have to change something in the <head> script:

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

OR do I have to change something here:

<form name="form1">
<select name="menu1" onChange="MM_jumpMenu('parent',this,0)">


Bob

www.editfast.com professional editing ===> FAST

Replies

Replied 28 Apr 2002 17:09:16
28 Apr 2002 17:09:16 Mark Reynolds replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Does anyone know why won't this work? I want the menu items in my jump menu to open in a new "_blank" page.


Can't I just do it this way:
&lt;option value="www.editfast.com/editsub.htm" target="_blank"&gt;Submissions&lt;/option&gt;

or do I have to change something in the &lt;head&gt; script:

&lt;script language="JavaScript"&gt;
&lt;!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'";
if (restore) selObj.selectedIndex=0;
}
//--&gt;
&lt;/script&gt;

OR do I have to change something here:

&lt;form name="form1"&gt;
&lt;select name="menu1" onChange="MM_jumpMenu('parent',this,0)"&gt; &lt;&lt;&lt; what about changing the parent coe to read "_blank" ??

Mark
manager DWZone.net


Bob

www.editfast.com professional editing ===&gt; FAST
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote><font color=red></font id=red>

Replied 28 Apr 2002 17:41:06
28 Apr 2002 17:41:06 Robert Kidd replied:
Mark, sorry for my email that was a mistake and should have been posted to another forum where the BB was having problems. Please ignore that email. Sorry.

I think you are right but I have since changed my approach and used a differnet javascript and some CSS. you can take a look at www.editfast.com/editpops/reports.htm

This is the CSS I used:
<pre id=code><font face=courier size=2 id=code> select {
background : #000099;
border-bottom : none;
border-left : none;
border-right : none;
border-top : none;
font : "Times New Roman", Times, serif;
font-size : 10px;
font : bold
text-align : center;
text-transform : capitalize;
vertical-align : middle;
color : #ffcc33;
}</font id=code></pre id=code>

This is the Javascript I used:
<pre id=code><font face=courier size=2 id=code>&lt;form name="form1"&gt;
&lt;select id="site_menu" name="site_menu" onChange="window.open(''+ this.options[this.selectedIndex].value,this.options[this.selectedIndex].innerHTML, '');"&gt;
&lt;option&gt;Choose &amp; Go!&lt;/option&gt;
&lt;option value="www.editfast.com/editsub.htm"&gt;Submissions&lt;/option&gt;

Thanks for your help and time.

Bob
</font id=code></pre id=code>

www.editfast.com professional editing ===> FAST

Reply to this topic