The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Random banner

3 posters

Go down

Solved Random banner

Post by Kiekeboe September 25th 2010, 4:15 pm

Hi!

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!
Kiekeboe
Kiekeboe
Forumember

Female Posts : 250
Reputation : -1
Language : Dutch, english, german and a little bit french, guitar chords, html, a bit CSS
Location : Maastricht (Holland)

http://wolfstory.clicboard.com

Back to top Go down

Solved Re: Random banner

Post by Guest September 25th 2010, 4:23 pm

Edit: Wrong message Smile
avatar
Guest
Guest


Back to top Go down

Solved Re: Random banner

Post by Kiekeboe September 25th 2010, 5:14 pm

Doesn't matter x)
Kiekeboe
Kiekeboe
Forumember

Female Posts : 250
Reputation : -1
Language : Dutch, english, german and a little bit french, guitar chords, html, a bit CSS
Location : Maastricht (Holland)

http://wolfstory.clicboard.com

Back to top Go down

Solved Re: Random banner

Post by Guest September 25th 2010, 5:27 pm

I will try to help you if you are using phpbb2 as i can see Smile. because your code is too long and can't be added to the site description Smile
avatar
Guest
Guest


Back to top Go down

Solved Re: Random banner

Post by Kiekeboe September 25th 2010, 6:15 pm

I have phbb2 ^^
Kiekeboe
Kiekeboe
Forumember

Female Posts : 250
Reputation : -1
Language : Dutch, english, german and a little bit french, guitar chords, html, a bit CSS
Location : Maastricht (Holland)

http://wolfstory.clicboard.com

Back to top Go down

Solved Re: Random banner

Post by Guest September 25th 2010, 7:25 pm

Nope, sorry :/. can't do it. i forgot how :d. but i will find it soon Smile.
avatar
Guest
Guest


Back to top Go down

Solved Re: Random banner

Post by Kiekeboe September 25th 2010, 8:18 pm

HHAHHAHAHA. Allright, that was funny Razz
Take it easy ^^
I'll wait Very Happy
Kiekeboe
Kiekeboe
Forumember

Female Posts : 250
Reputation : -1
Language : Dutch, english, german and a little bit french, guitar chords, html, a bit CSS
Location : Maastricht (Holland)

http://wolfstory.clicboard.com

Back to top Go down

Solved Re: Random banner

Post by Master Marc September 25th 2010, 8:39 pm

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 :

Code:
<script type="text/javascript" src=""></script>

And paste it in the field and hit the save button, Very good

Demo : http://marctestforum2.forumotion.com/index.htm Enjoy!

Edit : Make sure to remove your current logo Via administration panel, before doing this.
Master Marc
Master Marc
Hyperactive

Male Posts : 3661
Reputation : 47
Language : English and Spanish.

Back to top Go down

Solved Re: Random banner

Post by Kiekeboe September 26th 2010, 10:28 am

Indeed Master Marc, nice to speak to you again ^^
Thanks! :wouhou:
Kiekeboe
Kiekeboe
Forumember

Female Posts : 250
Reputation : -1
Language : Dutch, english, german and a little bit french, guitar chords, html, a bit CSS
Location : Maastricht (Holland)

http://wolfstory.clicboard.com

Back to top Go down

Solved Re: Random banner

Post by Sanket September 26th 2010, 10:48 am

Since this thread appears to be solved, I will lock this thread and mark it as solved.
Random banner 2j4t5a8

Sanket Smile

Sanket
Sanket
ForumGuru

Male Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum