Go Back   Free website templates > Web Template Help > How to use templates
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


Join now to download all the free website templates or post on the forum. If you have never been on a forum before read the FAQ. It's quick, easy and free to join!
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-20-2009, 09:49 PM
pusscat's Avatar
Member
 
Join Date: Oct 2009
Posts: 59
pusscat will become famous soon enough
Default Open link in new window

Am currently editing a template, and have forgotten how to write the link in the code so that it opens in a new window, there are only a few links and pages that I want to open that way.

Can someone please refresh my memory

Thanks

Angie
Reply With Quote
  #2 (permalink)  
Old 10-20-2009, 10:56 PM
grodt718's Avatar
Senior Member
 
Join Date: Sep 2009
Location: New York
Posts: 100
grodt718 is on a distinguished road
Arrow Hi,There

Is This What Your Looking For?
<atarget="_blank" href=
__________________
Reply With Quote
  #3 (permalink)  
Old 10-20-2009, 11:18 PM
pusscat's Avatar
Member
 
Join Date: Oct 2009
Posts: 59
pusscat will become famous soon enough
Default

I just tried that and it didnt work for some reason unless have put the code in wrong this is what I added and how I added it, it stopped the link working for some reason


<atarget="_blank" href="http://www.tutorial-writers-inc.com">Tutorial Writers Inc.</a>

By the look of it the second word TUTORIAL is somehow in the link and it shouldnt be as that is the link name you click well part of it

as you click on Tutorial Writers Inc to go to the site.

If that makes any sense


Angie
Reply With Quote
  #4 (permalink)  
Old 10-21-2009, 12:23 AM
ishkey's Avatar
Moderator
 
Join Date: Aug 2007
Location: North GA USA
Posts: 1,360
ishkey will become famous soon enough
Default

Try this instead
Code:
 
<a href="http://www.tutorial-writers-inc.com" target="_blank"> Tutoral Writers Inc</a>
Here is the code from one of my sites the "target" references the company name and the link to click on is a graphic which is the linestarting with <img scr=
Code:
<a href="http://www.vansicklepaint.com" target="vansickle"><img src="link_images/VanSickle.jpg" border="0" width="200" height="49" alt="Quality Paints Since 1907" hspace="15" /></a>
__________________
RIF= Reading Is Fun - Understanding Funner
cleandeck - lawn mower undercoating and wilmargraphite - graphite lubricants
Reply With Quote
  #5 (permalink)  
Old 10-21-2009, 12:24 AM
bmcoll3278's Avatar
Moderator
 
Join Date: Jun 2009
Posts: 294
bmcoll3278 is on a distinguished road
Default

it would be
<a href=href="http://www.tutorial-writers-inc.com"target="_blank">Tutorial Writers Inc.</a>
That wont pass xhtml 1.0 but will work. If you want to pass xhtml1.0 standard do it like this

<a href="http://www.tutorial-writers-inc.com"onclick="target='newwindow'">Tutorial Writers Inc.</a>

did you know that Dave?
__________________
I hope to build a site with something for every body
www.bmcoll.com
Reply With Quote
  #6 (permalink)  
Old 10-21-2009, 12:31 AM
pusscat's Avatar
Member
 
Join Date: Oct 2009
Posts: 59
pusscat will become famous soon enough
Default

Thanks but tried the last one posted and it didnt work either link opened in the same page.

Also my browser came up with a yellow bar at the top saying your browser doesnt allow active x scripts to run yada yada yada usual microsoft stuff.

Put the code back to how it was originally and got rid of the yellow bar, hmm wierd me thinks.

I do want my pages to validate correctly hence why chose that one to try

am now stuck as to what to do

Thanks

Angie
Reply With Quote
  #7 (permalink)  
Old 10-21-2009, 12:53 AM
ishkey's Avatar
Moderator
 
Join Date: Aug 2007
Location: North GA USA
Posts: 1,360
ishkey will become famous soon enough
Default

i messed up but this works in ie8, 7, 6
Code:
<a href="http://www.tutorial-writers-inc.com" target="_blank">Tutoral Writers Inc</a>
The graphic shows the link and the window it opened
Attached Images
 
__________________
RIF= Reading Is Fun - Understanding Funner
cleandeck - lawn mower undercoating and wilmargraphite - graphite lubricants
Reply With Quote
  #8 (permalink)  
Old 10-21-2009, 12:56 AM
pusscat's Avatar
Member
 
Join Date: Oct 2009
Posts: 59
pusscat will become famous soon enough
Default

Thank you, Thank you, thank you, that worked for me.

Final bit of tweaking and then time to upload to my site,

But its 1am in the UK so that will wait till tomorrow me thinks

Thanks again

Angie
Reply With Quote
  #9 (permalink)  
Old 10-21-2009, 01:23 AM
bmcoll3278's Avatar
Moderator
 
Join Date: Jun 2009
Posts: 294
bmcoll3278 is on a distinguished road
Default

Sorry it did not work for you. I pated the code into one of my pages and it works great. But maybe only if active x is enabled
__________________
I hope to build a site with something for every body
www.bmcoll.com
Reply With Quote
  #10 (permalink)  
Old 10-21-2009, 07:23 AM
pusscat's Avatar
Member
 
Join Date: Oct 2009
Posts: 59
pusscat will become famous soon enough
Default

No problem Bmcoll,

I have activeX enabled, I think more than it being IE that its possibly Kaspersky being sensitive etc, its picked alot of websites up as having links to phishing sites etc now whether they are is a different matter lol.

But I need a really good anti virus and firewall etc and its not let me down yet.


Thanks for trying


Angie
Reply With Quote
Reply

Thread Tools
Display Modes

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



All times are GMT. The time now is 09:43 AM.



mouseover mouseover mouseover