The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

links that open in a new window

2 posters

Go down

links that open in a new window Empty links that open in a new window

Post by sealine forum May 7th 2010, 11:27 pm

I have put a link on my forum to a friends website, however I would like it to open up in a new window when my members click on it, so that they are not directed away from my forum completely...... can someone tell me how I do this please ?

Thank you in advance
avatar
sealine forum
Forumember

Posts : 47
Reputation : 0
Language : english

Back to top Go down

links that open in a new window Empty Re: links that open in a new window

Post by RoNo May 8th 2010, 12:01 am

To open your link in a new window... Add: target="_blank"

Example
Code:
<a href="http://www.yahoo.com" target="_blank">Yahoo</a>
RoNo
RoNo
Active Poster

Male Posts : 1270
Reputation : 135
Language : English
Location : Laguna Beach, California

http://bf2mercenaries.forumotion.com/

Back to top Go down

links that open in a new window Empty Re: links that open in a new window

Post by sealine forum May 8th 2010, 10:19 am

It doesn't seem to work.....

When I upload a picture, it then has a link button which allows to me to put the website site address in for the picture but when I add the target="_blank" it doesn't make any difference...

Am I doing it wrong ?
avatar
sealine forum
Forumember

Posts : 47
Reputation : 0
Language : english

Back to top Go down

links that open in a new window Empty Re: links that open in a new window

Post by RoNo May 8th 2010, 10:32 am

Here's an image link that opens in a new window
Code:
<a href="http://www.yahoo.com" target="_blank"><img src="https://s.yimg.com/lq/i/brand/purplelogo/uh/us/base.gif" border="0"></a>
Experiment, substitute/add your image and Url to it.

Info: Html Links
RoNo
RoNo
Active Poster

Male Posts : 1270
Reputation : 135
Language : English
Location : Laguna Beach, California

http://bf2mercenaries.forumotion.com/

Back to top Go down

links that open in a new window Empty Re: links that open in a new window

Post by sealine forum May 8th 2010, 10:46 am

Thanks RoNo, but I think I have explained it wrong.

I'll start again !!

On our front page, just underneath the individual topics we have a logo for companies that sponsor that particular section. The logo is uploaded under the "General" tab/ Forums/ then the individual section. This then brings up a box that you can either type in the company name/upload a picture or insert html. Just above this you can click the "link" button and put in the companies web address. Then when a member clicks on the logo they will be transfered to the sponsors web address. This doesn't open in a new window and I feel we will lose traffic because of this.

I have put your html code into the html box but when I view the forum it just shows the type, not the picture (which I edited your code)

I know I am doing something very simple wrong, but can't work out what it is.

I hope I've explained it a bit better this time.
avatar
sealine forum
Forumember

Posts : 47
Reputation : 0
Language : english

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum