Opening in new window..

liunx

Guest
Does anyone know how I can make these links open in a new window from a drop down menu? ive tried "target="_blank" with no luck!<br />
<br />
Any help is muchasly appreciated<br />
<br />
<SELECT NAME="choice" SIZE="1"<br />
ONCHANGE="jump(this.form)" STYLE="font-family: verdana; font-size: 9px; background-color: #cccccc; color:<br />
#333333"><OPTION VALUE="http://www.nuozek.com/v1/home.html">..:: Linkage ::..</OPTION><OPTION VALUE="http://www.arialsize8.net" TARGET="_blank" >as8</OPTION><OPTION VALUE="http://www.meyor.com" TARGET="_blank"<br />
>Meyor</OPTION><OPTION VALUE="http://www.Elementinsites.com" TARGET="_blank" >E2</OPTION><OPTION VALUE="http://www.urbaninfluence.com" TARGET="_blank" >Urban <br />
Influence</OPTION><OPTION VALUE="http://www.sub-logic.com" TARGET="_blank" >Sub <br />
Logic</OPTION><OPTION VALUE="http://www.pixelphish.net" TARGET="_blank" >PixelPhish</OPTION><OPTION VALUE="http://antixt.chugz.com" TARGET="_blank" >Antixt</OPTION><OPTION VALUE="http://www.Timultus.com" TARGET="_blank" >Timultus</OPTION></SELECT><!--content-->we'll need to see your javascript for the jump() function...<!--content-->hi nuozek,<br />
<br />
i'm pretty hopeless with javascript but from what i can see it is actually the jump() function activated by the onchange event that determines the target of your links, so adding target attributes within your menu code has no effect.<br />
<br />
i had a quick look at your jump function and if you change the target line to target="_blank", your linkage links started to open in new windows for me:<br />
<br />
function jump(menu)<br />
{<br />
ref=menu.choice.options[menu.choice.selectedIndex].value;<br />
splitc=ref.lastIndexOf("*");<br />
target="";<br />
if (splitc!=-1)<br />
{<br />
loc=ref.substring(0,splitc);<br />
target=ref.substring(splitc+1,1000);<br />
}<br />
else <br />
{<br />
loc=ref; <br />
target="_blank"; // ***CHANGE THIS LINE***<br />
}<br />
if (ref != "") <br />
{<br />
land(loc,target);<br />
}<br />
}<br />
<br />
Hope this helps!<!--content-->Well its kinda awkward.. because the drop down I want the links to appear in a new window for use a different code to the other two which open my content in the middle frame..<br />
<br />
So if I cahnge the initial top code Ill mess that up! <br />
<br />
Maybe im just being really stupid? Jolouda do you have AIM, MSN, or ICQ?<br />
<br />
Alternatively it would be nice if I could make JUST the last link of the third drop down menu appear in the frame.. but the rest open as they do currently<br />
<br />
thanks for ure help :)<br />
<br />
- Nuozek<!--content-->function jump(menu)<br />
{<br />
ref=menu.choice.options[menu.choice.selectedIndex].value;<br />
newWin = window.open("",ref);<br />
}<br />
<br />
Remove "target='...'" from your options tags (they do not belong there)<!--content-->Hey kdjoergensen <br />
<br />
Thanks for your reply.. where do I insert that to ONLY make the third drop down menus links open in a new window? and non of the others...<br />
<br />
my page is <!-- m --><a class="postlink" href="http://www.nuozek.com/v1/home.html">http://www.nuozek.com/v1/home.html</a><!-- m --> if ya wanna check it out!<!--content-->
 
Back
Top