Submit Your Article Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register
 

Go Back   WebForumz.com > The Code > JavaScript

Reply
 
LinkBack Thread Tools
Old May 21st, 2008, 06:51 PM   #1
New Member
 

Join Date: May 2008
Location: NY
Age: 27
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 sfifabian is on a distinguished road
Talking Javascript and nofollow

Hello, I'm new here
I have a question: how can I add the nofollow tag to the links I have in this banner rotator?


Code:
<script type="text/javascript"> 
<!-- Begin 
rnd.today=new Date(); 
rnd.seed=rnd.today.getTime(); 
 
function rnd() { 
        rnd.seed = (rnd.seed*9301+49297) % 233280; 
        return rnd.seed/(233280.0); 
}; 
 
function rand(number) { 
   var result = Math.ceil(rnd()*number); 
   if (!result)result++; 
        return result 
}; 
var ad_cnt2 = 2; 
var ad2 = rand(ad_cnt2); 
var link2; 
var adBanner2; 
var width2 
var height2 
if (ad2==1) { 
link2="http://TheSpiderWebSystem.com/greatnews"; 
adBanner2="http://thespiderwebsystem.net/spiderweb/s/728x90_wide.gif"; 
width2="728"; 
height2="90"; 
alt2=""; 
} 
if (ad2==2) { 
link2="/paidads.html"; 
adBanner2="/headerbanner.gif"; 
width2="728"; 
height2="90"; 
alt2=""; 
} 
document.write('<center><a href="' + link2 + '" target="_blank">'); 
document.write('<img src="' + adBanner2 + '" width=' + width2 + ' height=' + height2 + ' border=0 alt="' + alt2 + '"></a>'); 
document.write('</center>'); 
// End --> 
</SCRIPT>

Thank you!
sfifabian is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old May 21st, 2008, 10:02 PM   #2
Most Reputable Member
 

Join Date: Feb 2008
Location: In My Own Little World
Age: 16
Posts: 1,345
Blog Entries: 9
Thanks: 2
Thanked 45 Times in 45 Posts
Rep Altering Power: 0 CloudedVision is on a distinguished road
Re: Javascript and nofollow

You can, but theres no point. Only the search engine spiders will even listen to the rel="nofollow", and they don't listen to javascript, so it'll be like the banner doesn't even exist to the spider.
__________________
Theron Luhn
CloudedVision is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old May 22nd, 2008, 02:30 AM   #3
New Member
 

Join Date: May 2008
Location: NY
Age: 27
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 sfifabian is on a distinguished road
Re: Javascript and nofollow

They do, I sell banners in my forum and my pagerank went down to 0 for not adding the nofollow tag. They do listen to javascript.
sfifabian is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old May 22nd, 2008, 09:02 AM   #4
Most Reputable Member
 

Join Date: Feb 2008
Location: In My Own Little World
Age: 16
Posts: 1,345
Blog Entries: 9
Thanks: 2
Thanked 45 Times in 45 Posts
Rep Altering Power: 0 CloudedVision is on a distinguished road
Re: Javascript and nofollow

Then just go down to the document.write lines and add rel="nofollow" into the <a>
__________________
Theron Luhn
CloudedVision is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks


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
javascript in php iochinome PHP 2 February 13th, 2008 05:30 PM
A Nofollow Hack Corey Bryant The Café 3 October 28th, 2007 09:41 AM
Javascript dharvesh JavaScript 4 October 20th, 2007 09:28 PM
Rel = "Nofollow", PageRank, and Gridview ytterbius Search Engine Optimization (SEO) 2 June 3rd, 2007 01:51 PM
javascript help !! aicirt JavaScript 0 July 20th, 2006 02:56 AM


Search Engine Optimization by vBSEO 3.2.0 RC8