Everything For Webmasters
HomeFAQSearchMemberlistUsergroupsRegisterLog in
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

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

Share | 

 Super cool javaScript auto rotator image and link

Go down 

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(

image = new initArray(

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>');

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: