Powersellersunite Power Sellers Unite
Bringing Buyers and Sellers Together
 

Question About Code On Website (New Window)
Click here to go to the original topic
Goto page 1, 2  Next
 
       Power Sellers Unite Forum Index -> Webmasters and Programmers technical help.
::  
Author Message
damaradeaella



Joined: 23 Jul 2006
Posts: 501

Posted: Tue Oct 24, 2006 10:18 am    Post subject: Question About Code On Website (New Window)  

Hi,

I am wondering if any of you know if there is a way to place code within a website that will allow all links off the site to open in a new window... I know how to manually do it with each link... But I have a lot of links!!!

I use startlogic and have entirely built the page using the web builder... LOL, I'm NOT web design savvy at all...

I'm wondering if there is some kind of code (and if there is, WHAT it is) that I can place on one of the pages that will accomplish this...

I'll be researching on the net to see if I can figure it out on my own, but if someone knows, I'll be so grateful... I'll even make you a popo for your trouble!
Back to top  
EleganzaJewels



Joined: 20 Jul 2006
Posts: 519

Posted: Tue Oct 24, 2006 10:25 am    Post subject:  

Sounds like you might be looking for a java script pop up script...not up on that, sorry!
Back to top  
damaradeaella



Joined: 23 Jul 2006
Posts: 501

Posted: Tue Oct 24, 2006 10:28 am    Post subject:  

LOL, me either!!

I don't know what I need, that is the problem *smile*

I know how to go in and make each link so that it opens a new window (So you stay on my site) but my links page is HUGE, and I have a fair amount on my resources page too...

Thanks for responding, at least I know I'm not alone!!! LOL
Back to top  
knappschiles



Joined: 25 May 2005
Posts: 4035
Location: Wi

Posted: Tue Oct 24, 2006 10:51 am    Post subject: Re: Question About Code On Website (New Window)  

deleted for code screw-up
Back to top  
knappschiles



Joined: 25 May 2005
Posts: 4035
Location: Wi

Posted: Tue Oct 24, 2006 10:53 am    Post subject: Re: Question About Code On Website (New Window)  

I know you want to do this all at one time and I don't know that at all. I would guess that there is some CSS code that might do it, I just don't know it.

The code for in each a href link would be to add target="_blank" before the final >

My page has over 100 links too and I've been editing almost every day to add links. I use NVU a free open source program that is a WYSIWYG HTML editor. If you open the page and then go to the tab at the bottom that says "source", you will see the HTML code. It's then a fairly easy and quick job to just add that target code in all the links using copy/paste.

I know it's not exactly what you wanted, but that's the best I can do.

Carol
Back to top  
damaradeaella



Joined: 23 Jul 2006
Posts: 501

Posted: Tue Oct 24, 2006 10:58 am    Post subject:  

Carol,

You're a sweetie... and no, that isn't what I'm looking for, but I appreciate it anyway, LOL...

I know how to put the "target_blank" whatchamacallit in there, individually, just did so on a new blog I built, that's how I figured that out, LOL... If I'd none that before, I would have done it when I build my website...

Yes, I want to know if the is a code that you can stick somewhere that automatically does it for all links... I'm probably grasping at straws, LOLOLOL

That reminds me, I will be adding your site to my links page when I work on it, and all the ones from FireMeg...

Thanks a Million!
Back to top  
damaradeaella



Joined: 23 Jul 2006
Posts: 501

Posted: Tue Oct 24, 2006 11:00 am    Post subject:  

Sorry for the typos... Arghhhhhhhhhhhhhh
Back to top  
knappschiles



Joined: 25 May 2005
Posts: 4035
Location: Wi

Posted: Tue Oct 24, 2006 11:13 am    Post subject:  

I figured you wanted something to do it automatically. I just don't know how to do that either.

Css can do a lot of stuff all at once, I just don't know much CSS yet.

Since this board is set up so all the links open in a new window, there must be some code that does it.

Some board Guru, HELP !!

Carol
Back to top  
psunite



Joined: 27 Jan 2005
Posts: 6213
Location: Columbus OH

Posted: Tue Oct 24, 2006 11:55 am    Post subject: Re: Question About Code On Website (New Window)  

Insert the following code

<base target="_blank">

into the header of your document's HTML (i.e. anywhere between the <head> and </head>. You can substitute "_blank" with other target names
Back to top  
damaradeaella



Joined: 23 Jul 2006
Posts: 501

Posted: Tue Oct 24, 2006 5:12 pm    Post subject:  

You are awesome... And one more reason to come to PSU...

You can kick me now though, because I cannot find <head> or </head> anywhere in my editor... I toggle to where I put all my html code, and it's not there...

So, I put it in myself, no go... LOL... In fact, it booted it out!!! So sorry to bother, but would it be in my home page? That's where I looked...

I'm so web design illiterate!!
Back to top  
psunite



Joined: 27 Jan 2005
Posts: 6213
Location: Columbus OH

Posted: Tue Oct 24, 2006 5:17 pm    Post subject: Re: Question About Code On Website (New Window)  

Its at the very top of your site see
Code: › docWrite("code")
<html>
<head>
<title>Divine Pillows and Treasures</title>
<meta name=description content="Popos one of a kind patchwork pillows">
<meta name=keywords content="pillows, patchwork pillows, custom pillows, collectibles, vintage, fabric">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="Thu, 1 Jan 1970 01:00:00 GMT">



</head>
Back to top  
damaradeaella



Joined: 23 Jul 2006
Posts: 501

Posted: Tue Oct 24, 2006 5:29 pm    Post subject:  

Ok, I finally figured out how to see what you see, but how do I put that code in? I'm so sorry, I really am website illiterate... I found out how to view page source, but it won't let me do anything with it...

Might be because I'm in the startlogic web builder?
Back to top  
damaradeaella



Joined: 23 Jul 2006
Posts: 501

Posted: Tue Oct 24, 2006 5:34 pm    Post subject:  

Nevermind, I think I figured it out!!! BRB
Back to top  
damaradeaella



Joined: 23 Jul 2006
Posts: 501

Posted: Tue Oct 24, 2006 5:38 pm    Post subject:  

Nope, ugh... I figured out how to place the code in, but not how to save and publish it...

You have been very helpful and I thank you, I'm a lost cause... LOL
Back to top  
knappschiles



Joined: 25 May 2005
Posts: 4035
Location: Wi

Posted: Tue Oct 24, 2006 6:57 pm    Post subject:  

Do you have full access to your site thru FPT ?? Or do you HAVE to use that "site builder" thing to make any changes to your site ?

If you have access, it would be easy to do a quick edit in any HTML program, and then FTP it back up to uour host.

Carol
Back to top  
 
       Power Sellers Unite Forum Index -> Webmasters and Programmers technical help. Goto page 1, 2  Next
Page 1 of 2




Powered by phpBB © 2001, 2002 phpBB Group