Random banner
3 posters
Page 1 of 1
Random banner
Hi!
I've got this script for a random image:
Preview:
Click!
Well, now my question, how can I use this as banner?
Thanks!
I've got this script for a random image:
- Code:
<script language="JavaScript">
<!--
/*
Random Image Link Script
By Website Abstraction (http://www.wsabstract.com)
and Java-scripts.net (http://www.java-scripts.net)
*/
function random_imglink(){
var myimages=new Array()
//specify random images below. You can have as many as you wish
myimages[1]="http://img26.imageshack.us/img26/5254/27999294.png"
myimages[2]="http://img215.imageshack.us/img215/2533/98880011.png"
myimages[3]="http://img811.imageshack.us/img811/4413/16852860.png"
myimages[4]="http://img580.imageshack.us/img580/1264/29867282.png"
//specify corresponding links below
var imagelinks=new Array()
imagelinks[1]="http://dogs101.actieforum.com/"
imagelinks[2]="http://dogs101.actieforum.com/"
imagelinks[3]="http://dogs101.actieforum.com/"
imagelinks[4]="http://dogs101.actieforum.com/"
var ry=Math.floor(Math.random()*myimages.length)
if (ry==0)
ry=1
document.write('<a href='+'"'+imagelinks[ry]+'"'+'><img src="'+myimages[ry]+'" border=0></a>')
}
random_imglink()
//-->
</script>
Preview:
Click!
Well, now my question, how can I use this as banner?
Thanks!
Re: Random banner
I will try to help you if you are using phpbb2 as i can see . because your code is too long and can't be added to the site description
Guest- Guest
Re: Random banner
Hello Kiekeboe, it's been a while. Copy the content of this file : http://iwebbuddy.webs.com/script02.js
Upload it to a web host ( like webs.com / create an account if you don't have one yet ) and follow these guidelines :
Admin CP => General => Configuration => Site Description
Now, use the link that you've uploaded the script to, between the inverted commas of the code below :
And paste it in the field and hit the save button,
Demo : http://marctestforum2.forumotion.com/index.htm Enjoy!
Edit : Make sure to remove your current logo Via administration panel, before doing this.
Upload it to a web host ( like webs.com / create an account if you don't have one yet ) and follow these guidelines :
Admin CP => General => Configuration => Site Description
Now, use the link that you've uploaded the script to, between the inverted commas of the code below :
- Code:
<script type="text/javascript" src=""></script>
And paste it in the field and hit the save button,
Demo : http://marctestforum2.forumotion.com/index.htm Enjoy!
Edit : Make sure to remove your current logo Via administration panel, before doing this.
Master Marc- Hyperactive
- Posts : 3661
Reputation : 47
Language : English and Spanish.
Re: Random banner
Since this thread appears to be solved, I will lock this thread and mark it as solved.
Sanket
Sanket
Sanket- ForumGuru
- Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai
Similar topics
» Random Banner / banner rotation
» random banner
» random banner selection
» random image script for the banner
» Random Acts of Kindness Banner
» random banner
» random banner selection
» random image script for the banner
» Random Acts of Kindness Banner
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum