Greenguy's Board


Go Back   Greenguy's Board > Newbie Questions
Register FAQ Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2012-09-13, 07:29 AM   #1
Jeremy82
You can now put whatever you want in this space :)
 
Jeremy82's Avatar
 
Join Date: Oct 2010
Posts: 988
target="_blank" to rel="external"

I just realized that target="_blank" is a really archaistic thing and what's more - it is not valid.

Attribute rel="external" is the solution but I don't want to have a mess in my code. For example I noticed that Greenie uses it too in his new link lists, but I have no idea, where is this parameter defined (as it is not visible in the code).
__________________
FeetSexVids.com
Jeremy82 is offline   Reply With Quote
Old 2012-09-13, 08:22 AM   #2
Greenguy
The Original Greenguy (Est'd 1996) & AVN HOF Member - I Crop Pics For Thumbs In My Sleep
 
Greenguy's Avatar
 
Join Date: Feb 2003
Location: Blasdell, NY (shithole suburb south of Buffalo)
Posts: 41,779
Send a message via ICQ to Greenguy
target="_blank" opens a link in a new window/tab

rel="external" lets the SE spiders know it's an external link

Also,
rel="nofollow" tells the SE spider to ignore the link (used for sponsor links as well as pages you do not want spidered, like webmaster pages)
__________________

Promote POV Porn Cash By Building & Submitting Galleries to the Porn Luv Network
Greenguy is offline   Reply With Quote
Old 2012-09-13, 08:25 AM   #3
Greenguy
The Original Greenguy (Est'd 1996) & AVN HOF Member - I Crop Pics For Thumbs In My Sleep
 
Greenguy's Avatar
 
Join Date: Feb 2003
Location: Blasdell, NY (shithole suburb south of Buffalo)
Posts: 41,779
Send a message via ICQ to Greenguy
And the "target" tag is still valid in HTML5:
http://www.w3schools.com/html5/att_a_target.asp
__________________

Promote POV Porn Cash By Building & Submitting Galleries to the Porn Luv Network
Greenguy is offline   Reply With Quote
Old 2012-09-13, 05:08 PM   #4
Jeremy82
You can now put whatever you want in this space :)
 
Jeremy82's Avatar
 
Join Date: Oct 2010
Posts: 988
Quote:
Originally Posted by Greenie View Post
rel="external" lets the SE spiders know it's an external link
How did you do that your external links are openning in a new window without any "target" tags?

Thanks for the definition BTW.
__________________
FeetSexVids.com
Jeremy82 is offline   Reply With Quote
Old 2012-09-13, 05:19 PM   #5
Greenguy
The Original Greenguy (Est'd 1996) & AVN HOF Member - I Crop Pics For Thumbs In My Sleep
 
Greenguy's Avatar
 
Join Date: Feb 2003
Location: Blasdell, NY (shithole suburb south of Buffalo)
Posts: 41,779
Send a message via ICQ to Greenguy
cd34 wrote up this handy bit of code to open all external links in a new window/tab

Code:
<script type="text/javascript">
<!--
var localdomain='link-o-rama.com';
var hrefs = document.getElementsByTagName("a");
for (var i=0, max=hrefs.length; i<max; i++) {
  if (hrefs[i].href.indexOf(localdomain) == -1) {
    hrefs[i].target='_blank';
  }
};
// -->
</script>
Just change link-o-rama.com to your domain & put this above the </body> tag
__________________

Promote POV Porn Cash By Building & Submitting Galleries to the Porn Luv Network
Greenguy is offline   Reply With Quote
Old 2012-09-13, 05:25 PM   #6
Jeremy82
You can now put whatever you want in this space :)
 
Jeremy82's Avatar
 
Join Date: Oct 2010
Posts: 988
Excellent, thanks. I'll use it in meta tag like:
Quote:
<script type="text/javascript" src="file_path/external.js"></script>
Quote:
Originally Posted by Greenie View Post
cd34 wrote up this handy bit of code
Isn't it owner of colo-cation?
__________________
FeetSexVids.com
Jeremy82 is offline   Reply With Quote
Old 2012-09-13, 05:47 PM   #7
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
Quote:
Originally Posted by Jeremy82 View Post
Isn't it owner of colo-cation?
CD isn't an it but he is the owner of colo-cation.
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Old 2012-09-13, 06:26 PM   #8
Jeremy82
You can now put whatever you want in this space :)
 
Jeremy82's Avatar
 
Join Date: Oct 2010
Posts: 988
Quote:
Originally Posted by Cleo View Post
CD isn't an it but he is the owner of colo-cation.
Sorry, this construction comes from my native language. I'm seriously considering moving my stuff out there (the most tempting thing for me is unlimited amount of IP's).
__________________
FeetSexVids.com
Jeremy82 is offline   Reply With Quote
Old 2012-09-13, 06:36 PM   #9
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
colo-cation is where all my stuff is hosted as is this board.

Best hosting I've ever had and Chris (cd34) is a fantastic tech.
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Old 2012-09-13, 06:44 PM   #10
Jeremy82
You can now put whatever you want in this space :)
 
Jeremy82's Avatar
 
Join Date: Oct 2010
Posts: 988
I've decided that I will start the move in early 2013.
__________________
FeetSexVids.com
Jeremy82 is offline   Reply With Quote
Old 2012-09-14, 09:15 AM   #11
Greenguy
The Original Greenguy (Est'd 1996) & AVN HOF Member - I Crop Pics For Thumbs In My Sleep
 
Greenguy's Avatar
 
Join Date: Feb 2003
Location: Blasdell, NY (shithole suburb south of Buffalo)
Posts: 41,779
Send a message via ICQ to Greenguy
Why wait - move NOW!
__________________

Promote POV Porn Cash By Building & Submitting Galleries to the Porn Luv Network
Greenguy is offline   Reply With Quote
Old 2012-09-14, 09:30 AM   #12
Jeremy82
You can now put whatever you want in this space :)
 
Jeremy82's Avatar
 
Join Date: Oct 2010
Posts: 988
Quote:
Originally Posted by Greenie View Post
Why wait - move NOW!
No problem, but first I need to find out if they offer a different dedicated IP for each domain (within their "virtual hosting").
__________________
FeetSexVids.com

Last edited by Jeremy82; 2012-09-14 at 09:35 AM..
Jeremy82 is offline   Reply With Quote
Old 2012-09-14, 01:30 PM   #13
pc
Shift Out / X-On
 
pc's Avatar
 
Join Date: Jul 2007
Location: unknown
Posts: 2,298
Send a message via ICQ to pc
All the thumbs for his servers.
pc is offline   Reply With Quote
Old 2012-09-15, 01:46 PM   #14
Maj. Stress
Progress rarely comes in buckets, it normally comes in teaspoons
 
Maj. Stress's Avatar
 
Join Date: Jun 2005
Location: Dark Side Of Naboo
Posts: 1,289
Quote:
Originally Posted by Greenie View Post
cd34 wrote up this handy bit of code to open all external links in a new window/tab

Code:
<script type="text/javascript">
<!--
var localdomain='link-o-rama.com';
var hrefs = document.getElementsByTagName("a");
for (var i=0, max=hrefs.length; i<max; i++) {
  if (hrefs[i].href.indexOf(localdomain) == -1) {
    hrefs[i].target='_blank';
  }
};
// -->
</script>
Just change link-o-rama.com to your domain & put this above the </body> tag
Thanks for that bit of code. I have a good use for it.
Maj. Stress is offline   Reply With Quote
Reply


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

Forum Jump


All times are GMT -4. The time now is 05:14 AM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc