Home page Forum

Go Back   MyServerZone » My Server Discussion » Server protection & Scripting » Scripting

Reply
 
LinkBack Thread Tools Display Modes
Old 11-29-2008, 09:09 PM
Administrator
 
KING's Avatar
 
Join Date: Nov 2008
Posts: 23
Send a message via ICQ to KING Send a message via Yahoo to KING Send a message via Skype™ to KING
Default JAVA ads script

Hello.

Lot of webmasters looking easy solutions to place lot of ads on website.
There is my simple solution how easy is possible to do it:


Code:

<SCRIPT>
gfx0="http://www.image_host.com/image.gif";
lnk0="http://www.websiteURL.com";
alt0="Name of website";
txt0="www.websiteURL.com";

gfx1="http://www.image_host.com/image.gif";
lnk1="http://www.websiteURL.com";
alt1="Name of website";
txt1="www.websiteURL.com";

len=2; 
today=new Date();
today=today.getTime()/1;
rnd=today%len;
document.writeln('<A HREF="'+eval("lnk"+rnd)+'"><IMG SRC="'+eval("gfx"+rnd)+'" ALT="'+eval("alt"+rnd)+'"><BR>'+eval("txt"+rnd)+'</A>');
</SCRIPT>
What this java script do ?

When you refresh your website this script all time show one of ads which are in script gfx0 or gfx1 ... it working on random.

Demo: www.CyberLords.lt you will see 468x60 banner all the time changing on refresh.
KING is offline   Reply With Quote
Sponsored Links
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
Forum Jump


All times are GMT. The time now is 04:29 PM.