Cafe Sports
Setanta
Asda
Next
GAME
Next
Sponsored Links
  #1 (permalink)  
Old 23rd July 2008, 10:43 PM
dave u's Avatar
dave ueditor dave u is offline
Godfather
 
Join Date: Jan 2001
Location: L39
Posts: 17,459
vCash: 3552
Blog Entries: 5
dave u rules harder than the Proclaimersdave u rules harder than the Proclaimersdave u rules harder than the Proclaimersdave u rules harder than the Proclaimersdave u rules harder than the Proclaimersdave u rules harder than the Proclaimersdave u rules harder than the Proclaimersdave u rules harder than the Proclaimersdave u rules harder than the Proclaimersdave u rules harder than the Proclaimersdave u rules harder than the Proclaimers
Opening links in new window....

I've been trying to make all the ads on the site open in a new window, rather than have people leaving the site to go somewhere else.

I've got most of them working by putting the target="_blank" bit of code in after the href= part, but it won' work with the amazon search box one.

Any ideas how I can get around this so it opens in a new window?
Reply With Quote
  #2 (permalink)  
Old 23rd July 2008, 10:54 PM
kelster's Avatar
pičku materinu
 
Join Date: Jan 2007
Location: Cambridge
Posts: 1,030
vCash: 25
kelster has much to be proud ofkelster has much to be proud ofkelster has much to be proud ofkelster has much to be proud ofkelster has much to be proud ofkelster has much to be proud ofkelster has much to be proud ofkelster has much to be proud ofkelster has much to be proud ofkelster has much to be proud ofkelster has much to be proud of
Re: Opening links in new window....

No reason why it shouldn't work. Anyhow you can try some javascript. Add an onclick event for the hyperlink with the code - onClick="window.open('http://www.targeturl.html','mywindow')"

So it would be....

<a href="hash symbol goes in here, but seeing as I am on a Mac and it has no fucking hash symbol you'll just have to imagine that there is one here" onClick="window.open('http://www.targeturl.com','mywindow')">Amazon</a>
__________________
Do I look like a people person to you?
Reply With Quote
  #3 (permalink)  
Old 24th July 2008, 08:44 PM
Nick Leeson's Avatar
Chainy's mentor
 
Join Date: Feb 2005
Location: Liverpool
Posts: 5,717
vCash: 625
Nick Leeson rules harder than the ProclaimersNick Leeson rules harder than the ProclaimersNick Leeson rules harder than the ProclaimersNick Leeson rules harder than the ProclaimersNick Leeson rules harder than the ProclaimersNick Leeson rules harder than the ProclaimersNick Leeson rules harder than the ProclaimersNick Leeson rules harder than the ProclaimersNick Leeson rules harder than the ProclaimersNick Leeson rules harder than the ProclaimersNick Leeson rules harder than the Proclaimers
Re: Opening links in new window....

Dave if you mean the amazon search one it's because it's not an image ad. It's an actual search form and it's hosted on amazon's servers so you don't have any control over it. There might be an option in your amazon control panel to open it in a new window but i really doubt it to be honest.
__________________
"I agree completely with what Leeson just said" - Dave Usher ( 02/12/08 )
Reply With Quote
  #4 (permalink)  
Old 25th July 2008, 05:27 PM
Forumite
 
Join Date: May 2008
Location: Coventry
Posts: 733
vCash: 500
Acid has much to be proud ofAcid has much to be proud ofAcid has much to be proud ofAcid has much to be proud ofAcid has much to be proud ofAcid has much to be proud ofAcid has much to be proud ofAcid has much to be proud ofAcid has much to be proud ofAcid has much to be proud ofAcid has much to be proud of
Re: Opening links in new window....

Tell people to hold control when they click a link.
Reply With Quote
  #5 (permalink)  
Old 27th July 2008, 05:40 AM
I love Stouff
 
Join Date: Dec 2005
Location: Cork, Ireland
Posts: 6,976
vCash: 500
DJLJ has much to be proud ofDJLJ has much to be proud ofDJLJ has much to be proud ofDJLJ has much to be proud ofDJLJ has much to be proud ofDJLJ has much to be proud ofDJLJ has much to be proud ofDJLJ has much to be proud ofDJLJ has much to be proud ofDJLJ has much to be proud ofDJLJ has much to be proud of
Re: Opening links in new window....

Originally Posted by kelster View Post
No reason why it shouldn't work. Anyhow you can try some javascript. Add an onclick event for the hyperlink with the code - onClick="window.open('http://www.targeturl.html','mywindow')"

So it would be....

<a href="hash symbol goes in here, but seeing as I am on a Mac and it has no fucking hash symbol you'll just have to imagine that there is one here" onClick="window.open('http://www.targeturl.com','mywindow')">Amazon</a>
Hash is shift-3 ....
Reply With Quote
  #6 (permalink)  
Old 27th July 2008, 11:41 PM
kelster's Avatar
pičku materinu
 
Join Date: Jan 2007
Location: Cambridge
Posts: 1,030
vCash: 25
kelster has much to be proud ofkelster has much to be proud ofkelster has much to be proud ofkelster has much to be proud ofkelster has much to be proud ofkelster has much to be proud ofkelster has much to be proud ofkelster has much to be proud ofkelster has much to be proud ofkelster has much to be proud ofkelster has much to be proud of
Re: Opening links in new window....

Originally Posted by DJLJ View Post
Hash is shift-3 ....
That would be alt-3. Such a pain in the arse though.
__________________
Do I look like a people person to you?
Reply With Quote
  #7 (permalink)  
Old 28th July 2008, 02:16 AM
I love Stouff
 
Join Date: Dec 2005
Location: Cork, Ireland
Posts: 6,976
vCash: 500
DJLJ has much to be proud ofDJLJ has much to be proud ofDJLJ has much to be proud ofDJLJ has much to be proud ofDJLJ has much to be proud ofDJLJ has much to be proud ofDJLJ has much to be proud ofDJLJ has much to be proud ofDJLJ has much to be proud ofDJLJ has much to be proud ofDJLJ has much to be proud of
Re: Opening links in new window....

Originally Posted by kelster View Post
That would be alt-3. Such a pain in the arse though.
Not on a US layout it isn't.
Reply With Quote
  #8 (permalink)  
Old 28th July 2008, 02:30 PM
Mr.SB's Avatar
Mr.SB Mr.SB is offline
you could be a waitress
 
Join Date: Dec 2006
Location: Anywhere but here
Posts: 1,104
vCash: 500
Mr.SB has much to be proud ofMr.SB has much to be proud ofMr.SB has much to be proud ofMr.SB has much to be proud ofMr.SB has much to be proud ofMr.SB has much to be proud ofMr.SB has much to be proud ofMr.SB has much to be proud ofMr.SB has much to be proud ofMr.SB has much to be proud ofMr.SB has much to be proud of
Re: Opening links in new window....

Hey Dave, I don't want to start another thread about this but just fyi, the drop down box for forum thread search is now being blocked by the product search thing below it.
Reply With Quote
Sponsored Links
Reply



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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Summer Transfer Window 2008 - A bit of fun. HJohal FF - Football Forum 63 7th April 2008 07:58 AM
Tranfer window approaches and the usual Bollocks begins joey54 FF - Football Forum 4 19th November 2007 08:17 PM
The Musical links thread Stu Monty GF - General Forum 120 21st July 2007 03:56 AM
Ciggie out the window. Wig GF - General Forum 3 14th May 2007 08:37 AM
This transfer window Paco FF - Football Forum 28 26th January 2007 07:11 PM



All times are GMT +1. The time now is 01:14 AM.
Powered by vBulletin® Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
Style Provided By: Wrestling Clique - Wrestling Forums
All contents © the respective posters. None of the content on this forum is the responsibity of TLW.