NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page Drop Down Menu - extra window

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 07-08-2006, 01:33 PM THREAD STARTER               #1 (permalink)
NamePros Regular
 
max99's Avatar
Join Date: Mar 2006
Location: Manchester
Posts: 418
max99 is an unknown quantity at this point
 


Cancer

Drop Down Menu - extra window


This is code for one of my options on drop down menu <option value="/beta/amazon.html" onClick="MM_openBrWindow('http://www.amazon.co.uk/exec/obidos/redirect?link_code=ur2&tag=dvdrentalcomp-21&camp=1634&creative=6738&path=www.amazon.co.uk', 'merchant','toolbar=yes,location=yes,status=yes,me nubar=yes,scrollbars=yes,resizable=yes')">
????: NamePros.com http://www.namepros.com/programming/214878-drop-down-menu-extra-window.html
Amazon</option> , it works except a new window with the amazon link doesnt appear, anyone know why


Basically i want the page to link to www.mysite.com/beta/amazon.html , and then another window to open with 'http://www.amazon.co.uk/exec/obidos/redirect?link_code=ur2&tag=dvdrentalcomp-21&camp=1634&creative=6738&path=www.amazon.co.uk' that in it

What am i doing wrong ?
max99 is offline  
Old 07-08-2006, 02:59 PM   #2 (permalink)
Dan
Buy my domains.
 
Dan's Avatar
Join Date: Feb 2006
Posts: 2,796
Dan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant future
 


Autism Autism Autism Autism Autism Autism Autism
Code:
<script type="text/javascript">
function openlinks(url1, title1, url2, title2) {
     window.open(url1, title1, "menubar=yes,location=yes,resizable=yes,scrollbars=yes,status=yes");
     window.open(url2, title2, "menubar=yes,location=yes,resizable=yes,scrollbars=yes,status=yes");
}
</script>

<option onclick="openlinks('http://google.com', 'Google', 'http://yahoo.com', 'Yahoo');">Open the Windows</option>
Dan is offline  
Old 07-09-2006, 07:09 AM THREAD STARTER               #3 (permalink)
NamePros Regular
 
max99's Avatar
Join Date: Mar 2006
Location: Manchester
Posts: 418
max99 is an unknown quantity at this point
 


Cancer
does the script but (top bit) does that need to be in head at top, or anywhere ?
????: NamePros.com http://www.namepros.com/showthread.php?t=214878

I've done this and it don't seem to work, says error

<script type="text/javascript">
function openlinks(url1, title1, url2, title2) {
window.open(url1, title1, "menubar=yes,location=yes,resizable=yes,scrollbars = yes,status=yes");
window.open(url2, title2, "menubar=yes,location=yes,resizable=yes,scrollbars = yes,status=yes");
}
</script>
<div class="bar" style="width: 1051; height: 72">
<ul>
<li class="browse_category">
<p>Search By Retailer: <select name="Retailer" onChange="location=this.options[this.selectedIndex].value;" id="search_box" style="font-family: Verdana">
<option value=# selected>Retailers A to H</option>
<option onclick="openlinks('/beta/amazon.html', 'Amazon', 'http://www.google.com', 'google');">Amazon</option>
max99 is offline  
Old 07-09-2006, 07:37 AM   #4 (permalink)
Senior Member
 
Jiblob's Avatar
Join Date: Dec 2004
Location: .co.uk
Posts: 2,243
Jiblob is just really niceJiblob is just really niceJiblob is just really niceJiblob is just really nice
 




I dont see why you dont just put the open window functions in to the link.. Its over complicating things?

But I reccomend putting any functions in to the <head>
????: NamePros.com http://www.namepros.com/showthread.php?t=214878

But, for a start have:

Quote:
<script language="JavaScript" type="text/javascript">
__________________
:hi:
Jiblob is offline  
Old 07-09-2006, 07:50 AM THREAD STARTER               #5 (permalink)
NamePros Regular
 
max99's Avatar
Join Date: Mar 2006
Location: Manchester
Posts: 418
max99 is an unknown quantity at this point
 


Cancer
i've done what i wanted to do in normal links. i.e just a "click here" and it goes to a page, and another window opens up aswell, but i don't know how in drop down menus
max99 is offline  
Old 07-09-2006, 12:00 PM THREAD STARTER               #6 (permalink)
NamePros Regular
 
max99's Avatar
Join Date: Mar 2006
Location: Manchester
Posts: 418
max99 is an unknown quantity at this point
 


Cancer
anyone help
max99 is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 03:06 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger