Everything For Webmasters
 
HomeFAQSearchMemberlistUsergroupsRegisterLog in
FREE FACEBOOK LIKES
socialmedianetworkexchnage
Muscle Warfare - Free Trial
Latest topics
» Why Directory is so Important??
Mon Mar 04, 2013 10:22 pm by madelinekim

» What is SEO ?
Mon Mar 04, 2013 10:18 pm by madelinekim

» is meta tags usefull? for you?
Mon Mar 04, 2013 10:14 pm by madelinekim

» some usefull seo tips
Mon Mar 04, 2013 10:09 pm by madelinekim

» hello to everyone out there!
Wed Nov 28, 2012 6:21 pm by surferangel

» Hello everyone !
Wed Nov 28, 2012 6:14 pm by surferangel

» EXTRA MONEY ONLINE
Wed Nov 28, 2012 6:01 pm by surferangel

» General Discussion Forum
Fri Nov 23, 2012 3:40 pm by motorcookie

» Selling one of my sites....
Fri Nov 23, 2012 3:17 pm by motorcookie

Top posting users this month
Social bookmarking
Social bookmarking digg  Social bookmarking delicious  Social bookmarking reddit  Social bookmarking stumbleupon  Social bookmarking slashdot  Social bookmarking yahoo  Social bookmarking google  Social bookmarking blogmarks  Social bookmarking live      

Bookmark and share the address of Webmaster Forums on your social bookmarking website

Bookmark and share the address of Webmaster Forums on your social bookmarking website
Advertisement

Share | 
 

 Super cool javaScript auto rotator image and link

Go down 
AuthorMessage
Cale
Admin
avatar

Posts : 78
Points : 213
Reputation : 1
Join date : 2010-04-26
Age : 33
Location : South Lake Tahoe

PostSubject: Super cool javaScript auto rotator image and link   Sun Dec 05, 2010 10:34 pm

hey all you got to do is replace my links with your own and paste it into your page just like a html banner from google or any other advertisement business... and it works if you got any questions just ask..


<script language="Javascript">


var currentdate = 0;
var core = 0;

function initArray() {

this.length = initArray.arguments.length;
for (var i = 0; i < this.length; i++) {
this[i] = initArray.arguments[i];
}
}

link = new initArray(
"http://www.mb01.com/lnk.asp?o=3106&c=918271&a=56759",
"http://www.mb01.com/lnk.asp?o=2207&c=918271&a=56759",
"http://www.mb01.com/lnk.asp?o=3474&c=918271&a=56759"
);

image = new initArray(
"http://www.freesupplementfinder.com/muscle_warfare_stack_small_image.gif",
"http://www.freesupplementfinder.com/Best_buy_icon.gif",
"http://www.freesupplementfinder.com/the_burn_xtreme.gif"
);

text = new initArray(
"muscle warfare stack",
"$1000 Best Buy Card",
"The Burn Xtreme"
);

var currentdate = new Date();
var core = currentdate.getSeconds() % image.length;
var ranlink = link[core];
var ranimage = image[core];
var rantext = text[core];

document.write('<a href="' +ranlink+ '"><img src="'+ranimage+'" border="0" alt="'+rantext+'"></a>');

//-->
</SCRIPT>
Back to top Go down
View user profile http://www.freesupplementfinder.com
 
Super cool javaScript auto rotator image and link
Back to top 
Page 1 of 1
 Similar topics
-
» Locating dynamic IDs generated when a new Directory is created !
» [TUTs] Auto Post - Công cụ tự động post bài
» Javascript Array
» How do I make the login popup show an Image, instead of it's bland colors
» Roster image

Permissions in this forum:You cannot reply to topics in this forum
Webmaster Forums :: Coding Forum :: JavaScript Forum-
Jump to: