Welcome to the largest and most talked about domain name forum in the World!

We are NamePros, the award-winning free community for domain name owners, buyers and website developers. Once registered, you can:
  • Post your domains for sale or for free appraisals.
  • Private message and conduct business with other domain owners.
  • View member-only forums such as 'Legal Issues' and 'Expired Domains' (NOT visible to search engines)
  • Free access our archives of posts
Join now for free


Go Back   NamePros.com > Discussion > Web Design & Development > Programming
New! Use your Facebook, Google, AIM & Yahoo accounts to securely log into this site, click logo to login  

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



Closed Thread
 
LinkBack Thread Tools
Old 07-08-2006, 12:33 PM   #1 (permalink)
NamePros Regular
 
max99's Avatar
 
Join Date: Mar 2006
Location: Manchester
Posts: 401
35.00 NP$ (Donate)

max99 is an unknown quantity at this point
Send a message via MSN to max99


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')">
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, 01:59 PM   #2 (permalink)
Dan
Buy my domains.
 
Dan's Avatar
 
Join Date: Feb 2006
Posts: 2,801
56.00 NP$ (Donate)

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, 06:09 AM   #3 (permalink)
NamePros Regular
 
max99's Avatar
 
Join Date: Mar 2006
Location: Manchester
Posts: 401
35.00 NP$ (Donate)

max99 is an unknown quantity at this point
Send a message via MSN to max99


Cancer
does the script but (top bit) does that need to be in head at top, or anywhere ?

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, 06:37 AM   #4 (permalink)
Senior Member
 
Jiblob's Avatar
 
Join Date: Dec 2004
Location: .co.uk
Posts: 2,183
271.38 NP$ (Donate)

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>

But, for a start have:

Quote:
<script language="JavaScript" type="text/javascript">
__________________
:hi:
Jiblob is offline  
Old 07-09-2006, 06:50 AM   #5 (permalink)
NamePros Regular
 
max99's Avatar
 
Join Date: Mar 2006
Location: Manchester
Posts: 401
35.00 NP$ (Donate)

max99 is an unknown quantity at this point
Send a message via MSN to max99


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, 11:00 AM   #6 (permalink)
NamePros Regular
 
max99's Avatar
 
Join Date: Mar 2006
Location: Manchester
Posts: 401
35.00 NP$ (Donate)

max99 is an unknown quantity at this point
Send a message via MSN to max99


Cancer
anyone help
max99 is offline  
Closed Thread


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


All times are GMT -7. The time now is 02:33 AM.

Contact Us - NamePros.com - Privacy Statement - Top
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.2