/    Sign up×
Community /Pin to ProfileBookmark

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>[/CODE]

Thank you!

Thank you!

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@FangMay 22.2008 — By not adding the links or adding this document to the robot.txt document.
×

Success!

Help @sfifabian spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...