The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Random banner

View previous topic View next topic Go down

Solved Random banner

Post by Kiekeboe on 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
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 on September 25th 2010, 4:23 pm

Edit: Wrong message Smile

Guest
Guest


Back to top Go down

Solved Re: Random banner

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

Doesn't matter x)

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 on 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

Guest
Guest


Back to top Go down

Solved Re: Random banner

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

I have phbb2 ^^

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 on September 25th 2010, 7:25 pm

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

Guest
Guest


Back to top Go down

Solved Re: Random banner

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

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

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 on 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
Hyperactive

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

Back to top Go down

Solved Re: Random banner

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

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

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 on September 26th 2010, 10:48 am

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


Sanket Smile


Sanket
ForumGuru

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

http://webartzforum.com

Back to top Go down

View previous topic View next topic Back to top


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