Open dropdown link in NEW WINDOW

J

Jim

Hey all, I'm having a bit of a problem that I need help with. I have
this nice code that I've mined off this site that will open a .pdf or
..doc for me when I make a choice from a dropdown menu, but it opens it
in the same window. I really need it to open in a NEW window. Any
suggestions?


<script language=JavaScript>
<!--
<!--
var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")
// -->

function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
function popMeUp() {
var newWindow = window.open("", "", "height=400,width=400");
}
}

//-->
</script>




<h1>Employee Self-Service Forms</h1>

<table border="1" cellpadding="0" cellspacing="0"
style="border-collapse: collapse; border-left-width: 0;
border-right-width: 0" bordercolor="#111111" width="69%"
id="AutoNumber1">
<tr>
<td width="100%" style="border-style: solid; border-width: 1"
bgcolor="#EFEFDE" height="50">
<b>&nbsp;&nbsp;&nbsp;&nbsp; Benefits Forms<br>
&nbsp;&nbsp;&nbsp;&nbsp;
</b>
<select name="menu1" onChange="MM_jumpMenu('parent',this,0)">
<option selected>Scroll to Select</option>
<option value= "http://help.myco.com//ADAMedicalCertification.pdf">ADA
Form</option>
<option value="http://help.myco.com//Adopt1.pdf">Adoption
Assistance</option>
<option value="http://help.myco.com//Adopt2.pdf">Adoption
Assistance Reimbursement</option>
<option value="http://help.myco.com//AssistClaim.pdf">Assistance
in Claims Administration</option>
<option value="http://help.myco.com//BenefitsChg.pdf">Benefits
Change/Calculation Form</option>
 
M

MD WebsUnlimited.com

Jim,

First, the script that you "mined" is copyrighted by the writer of the
script. Do you have permission to use it?

Change this line

MM_jumpMenu('parent',this,0)">

To

MM_jumpMenu('_blank',this,0)">
 
B

Bob Lehmann

The script, besides being auto-generated by DreamWeaver or (one of its
spastic spin-offs), is so generic, that I doubt there would be any copyright
issues.

Who do you suppose owns the copyright to the following......
Do While Not rs.EOF
bla blah blah
rs.MoveNext
Loop

Bob Lehmann


MD WebsUnlimited.com said:
Jim,

First, the script that you "mined" is copyrighted by the writer of the
script. Do you have permission to use it?

Change this line

MM_jumpMenu('parent',this,0)">

To

MM_jumpMenu('_blank',this,0)">
--
Mike -- FrontPage MVP '97-'02
http://www.websunlimited.com
FrontPage Add-ins Since '97 2003 / 2002 / 2000 Compatible
-------------------------------------------------------------------------- --
--------------------
If you think I'm doing a good job, let MS know at (e-mail address removed)

Jim said:
Hey all, I'm having a bit of a problem that I need help with. I have
this nice code that I've mined off this site that will open a .pdf or
.doc for me when I make a choice from a dropdown menu, but it opens it
in the same window. I really need it to open in a NEW window. Any
suggestions?


<script language=JavaScript>
<!--
<!--
var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")
// -->

function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
function popMeUp() {
var newWindow = window.open("", "", "height=400,width=400");
}
}

//-->
</script>




<h1>Employee Self-Service Forms</h1>

<table border="1" cellpadding="0" cellspacing="0"
style="border-collapse: collapse; border-left-width: 0;
border-right-width: 0" bordercolor="#111111" width="69%"
id="AutoNumber1">
<tr>
<td width="100%" style="border-style: solid; border-width: 1"
bgcolor="#EFEFDE" height="50">
<b>&nbsp;&nbsp;&nbsp;&nbsp; Benefits Forms<br>
&nbsp;&nbsp;&nbsp;&nbsp;
</b>
<select name="menu1" onChange="MM_jumpMenu('parent',this,0)">
<option selected>Scroll to Select</option>
<option value= "http://help.myco.com//ADAMedicalCertification.pdf">ADA
Form</option>
<option value="http://help.myco.com//Adopt1.pdf">Adoption
Assistance</option>
<option value="http://help.myco.com//Adopt2.pdf">Adoption
Assistance Reimbursement</option>
<option value="http://help.myco.com//AssistClaim.pdf">Assistance
in Claims Administration</option>
<option value="http://help.myco.com//BenefitsChg.pdf">Benefits
Change/Calculation Form</option>
 
J

Jim

To answer your questions... Yes, I do have his permission. Thanks for
the help guys, I'll try it in the morning!

Bob Lehmann said:
The script, besides being auto-generated by DreamWeaver or (one of its
spastic spin-offs), is so generic, that I doubt there would be any copyright
issues.

Who do you suppose owns the copyright to the following......
Do While Not rs.EOF
bla blah blah
rs.MoveNext
Loop

Bob Lehmann


MD WebsUnlimited.com said:
Jim,

First, the script that you "mined" is copyrighted by the writer of the
script. Do you have permission to use it?

Change this line

MM_jumpMenu('parent',this,0)">

To

MM_jumpMenu('_blank',this,0)">
--
Mike -- FrontPage MVP '97-'02
http://www.websunlimited.com
FrontPage Add-ins Since '97 2003 / 2002 / 2000 Compatible
-------------------------------------------------------------------------- --
--------------------
If you think I'm doing a good job, let MS know at (e-mail address removed)

Jim said:
Hey all, I'm having a bit of a problem that I need help with. I have
this nice code that I've mined off this site that will open a .pdf or
.doc for me when I make a choice from a dropdown menu, but it opens it
in the same window. I really need it to open in a NEW window. Any
suggestions?


<script language=JavaScript>
<!--
<!--
var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")
// -->

function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
function popMeUp() {
var newWindow = window.open("", "", "height=400,width=400");
}
}

//-->
</script>




<h1>Employee Self-Service Forms</h1>

<table border="1" cellpadding="0" cellspacing="0"
style="border-collapse: collapse; border-left-width: 0;
border-right-width: 0" bordercolor="#111111" width="69%"
id="AutoNumber1">
<tr>
<td width="100%" style="border-style: solid; border-width: 1"
bgcolor="#EFEFDE" height="50">
<b>&nbsp;&nbsp;&nbsp;&nbsp; Benefits Forms<br>
&nbsp;&nbsp;&nbsp;&nbsp;
</b>
<select name="menu1" onChange="MM_jumpMenu('parent',this,0)">
<option selected>Scroll to Select</option>
<option value= "http://help.myco.com//ADAMedicalCertification.pdf">ADA
Form</option>
<option value="http://help.myco.com//Adopt1.pdf">Adoption
Assistance</option>
<option value="http://help.myco.com//Adopt2.pdf">Adoption
Assistance Reimbursement</option>
<option value="http://help.myco.com//AssistClaim.pdf">Assistance
in Claims Administration</option>
<option value="http://help.myco.com//BenefitsChg.pdf">Benefits
Change/Calculation Form</option>
 
M

MD WebsUnlimited.com

Oh, the script is from Micro Media ;>)

--
Mike -- FrontPage MVP '97-'02
http://www.websunlimited.com
FrontPage Add-ins Since '97 2003 / 2002 / 2000 Compatible
----------------------------------------------------------------------------
--------------------
If you think I'm doing a good job, let MS know at (e-mail address removed)

Jim said:
To answer your questions... Yes, I do have his permission. Thanks for
the help guys, I'll try it in the morning!

"Bob Lehmann" <none> wrote in message
The script, besides being auto-generated by DreamWeaver or (one of its
spastic spin-offs), is so generic, that I doubt there would be any copyright
issues.

Who do you suppose owns the copyright to the following......
Do While Not rs.EOF
bla blah blah
rs.MoveNext
Loop

Bob Lehmann


MD WebsUnlimited.com said:
Jim,

First, the script that you "mined" is copyrighted by the writer of the
script. Do you have permission to use it?

Change this line

MM_jumpMenu('parent',this,0)">

To

MM_jumpMenu('_blank',this,0)">
--------------------------------------------------------------------------
--
--------------------
If you think I'm doing a good job, let MS know at (e-mail address removed)

Hey all, I'm having a bit of a problem that I need help with. I have
this nice code that I've mined off this site that will open a .pdf or
.doc for me when I make a choice from a dropdown menu, but it opens it
in the same window. I really need it to open in a NEW window. Any
suggestions?


<script language=JavaScript>
<!--
<!--
var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")
// -->

function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
function popMeUp() {
var newWindow = window.open("", "", "height=400,width=400");
}
}

//-->
</script>




<h1>Employee Self-Service Forms</h1>

<table border="1" cellpadding="0" cellspacing="0"
style="border-collapse: collapse; border-left-width: 0;
border-right-width: 0" bordercolor="#111111" width="69%"
id="AutoNumber1">
<tr>
<td width="100%" style="border-style: solid; border-width: 1"
bgcolor="#EFEFDE" height="50">
<b>&nbsp;&nbsp;&nbsp;&nbsp; Benefits Forms<br>
&nbsp;&nbsp;&nbsp;&nbsp;
</b>
<select name="menu1" onChange="MM_jumpMenu('parent',this,0)">
<option selected>Scroll to Select</option>
<option value= "http://help.myco.com//ADAMedicalCertification.pdf">ADA
Form</option>
<option value="http://help.myco.com//Adopt1.pdf">Adoption
Assistance</option>
<option value="http://help.myco.com//Adopt2.pdf">Adoption
Assistance Reimbursement</option>
<option value="http://help.myco.com//AssistClaim.pdf">Assistance
in Claims Administration</option>
<option value="http://help.myco.com//BenefitsChg.pdf">Benefits
Change/Calculation Form</option>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top