Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 06-05-2003, 08:49 PM   #1
psyko514
See sig. Join Epic Cash.
 
Join Date: Oct 2002
Location: Montreal, Quebec. ICQ: 214702014
Posts: 22,366
Javascrrrrript help needed...

I have a drop down menu that loads the links automatically when an option is selected in the menu.

I'm using this line:
(form)
(select name="SiteMap" onchange="if(options[selectedIndex].value){location = options[selectedIndex].value; target=_TOP}" size="1")
(option value="http://link.com")LINK(/option)
(option value="http://link2.com")LINK 2(/option)
(/select)
(/form)

and the link opens in the same window...

now how do I go about opening the link in a new window? setting the target to _NEW or _BLANK doesn't seem to work.
__________________

Bad Girl Bucks
- 50% Revshare through CCBill.
Promote BrandyDDD, Pixie's Pillows, Action Allie and more!

Phoenix Forum Pics | Webmaster Access Montreal pics
email: psyko514(a)gmail.com | icq: 214-702-014
psyko514 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-05-2003, 09:11 PM   #2
michaelw
Confirmed User
 
Join Date: May 2002
Location: Calgary, Canada
Posts: 1,342
Quote:
Originally posted by psyko514
I have a drop down menu that loads the links automatically when an option is selected in the menu.

I'm using this line:
(form)
(select name="SiteMap" onchange="if(options[selectedIndex].value){location = options[selectedIndex].value; target=_TOP}" size="1")
(option value="http://link.com")LINK(/option)
(option value="http://link2.com")LINK 2(/option)
(/select)
(/form)

and the link opens in the same window...

now how do I go about opening the link in a new window? setting the target to _NEW or _BLANK doesn't seem to work.
replace
onchange="if(options[selectedIndex].value){location = options[selectedIndex].value; target=_TOP}" size="1")

with something like
onchange="if(options[selectedIndex].value){
window.open(location)
}" size="1")
__________________
<b><a href="http://www.hotlinkprotector.com"><font color="yellow">Hotlink Protector</font></a> - Protect all your file types from hotlinking the professional way. <br>
See a demo <a href="http://www.hotlinkprotector.com/demo.html"><font color="yellow">here</font></a>, and testimonials <a href="http://www.hotlinkprotector.com/testimonials.html"><font color="yellow">here</font></a><br>ICQ: 146423631
michaelw is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-05-2003, 09:36 PM   #3
psyko514
See sig. Join Epic Cash.
 
Join Date: Oct 2002
Location: Montreal, Quebec. ICQ: 214702014
Posts: 22,366
thanks

2 secs after i posted, i decided to search google, and i found this which seems to work fine:

select onChange="PopUp=window.open('','PopUp');PopUp.loca tion=options[selectedIndex].value;"
__________________

Bad Girl Bucks
- 50% Revshare through CCBill.
Promote BrandyDDD, Pixie's Pillows, Action Allie and more!

Phoenix Forum Pics | Webmaster Access Montreal pics
email: psyko514(a)gmail.com | icq: 214-702-014
psyko514 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.