Advertise Here

Author Topic: [Request]Random Background  (Read 2646 times)

0 Members and 1 Guest are viewing this topic.

Offline Simply1Nick

  • SMF For Free Member
  • *
  • Posts: 51
    • View Profile

  • Total Badges: 10
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 50 Posts
[Request]Random Background
« on: September 19, 2009, 01:22:36 pm »
Forum Url: Gamerzlite.smfforfree3.com
Is there anyway to make the background(stylesheet)Change automaticly,Like everytime you refresh/check a new page.
I have searched and  checked code index and didn't find it.

Example Site:


http://camping.smfforfree.com/index.php


Made by Gir.

Offline slayer766

  • SMF For Free Full Member
  • *
  • Posts: 212
    • View Profile

  • Total Badges: 13
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [Request]Random Background
« Reply #1 on: September 19, 2009, 06:20:59 pm »
I could make it change the stylesheet, but changing all of the buttons and everything else with it - that's a negative. Do you still want this?

Offline Simply1Nick

  • SMF For Free Member
  • *
  • Posts: 51
    • View Profile

  • Total Badges: 10
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 50 Posts
Re: [Request]Random Background
« Reply #2 on: September 19, 2009, 08:34:30 pm »
I don't care if it changes the buttons or not,i just want one  :laugh:

If you want to make it,please do.

If you dont,Then dont



Made by Gir.

Offline slayer766

  • SMF For Free Full Member
  • *
  • Posts: 212
    • View Profile

  • Total Badges: 13
    Badges: (View All)
    Topic Starter Combination Level 3 Level 2 Level 1
Re: [Request]Random Background
« Reply #3 on: September 20, 2009, 07:41:40 am »
Footers:
Quote
<script type="text/javascript">
var RandomSkins = ["Skin URL","Skin URL2"];
document.write("<link rel="stylesheet" type="text/css"  href="'+RandomSkins[Math.floor(Math.random()*RandomSkins.length)]+'">");
</script>
Place the link to your skin in the RandomSkins array, where it says Skin URL. You can add as many as you want, just separate each new one with a comma as I did for Skin URL2. :)

Offline Simply1Nick

  • SMF For Free Member
  • *
  • Posts: 51
    • View Profile

  • Total Badges: 10
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 50 Posts
Re: [Request]Random Background
« Reply #4 on: September 20, 2009, 02:08:02 pm »
Thanks  ;D


Made by Gir.

 

Related Topics

  Subject / Started by Replies Last post
10 Replies
3040 Views
Last post December 17, 2007, 10:25:42 pm
by Coffeenole
0 Replies
990 Views
Last post August 07, 2008, 08:06:08 pm
by ~Coder Tyler~
6 Replies
1748 Views
Last post November 10, 2008, 09:25:13 pm
by ImthEhAppYEmO
1 Replies
2049 Views
Last post July 27, 2009, 05:22:32 pm
by simply sibyl
2 Replies
2071 Views
Last post July 14, 2010, 10:50:29 am
by Blade_Knight