Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 5 of 5

Thread: Script Needed!

  1. #1
    Join Date
    Dec 2004
    Location
    UK
    Posts
    534
    Tokens
    141

    Default Script Needed!

    Hi, I need a script that shows a different page after each day.

    E.i a timetable, changing who DJ's on that day, then the next day it would display that days dj'ing times.

    anyone?
    Post Count: :eusa_danc 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000 :eusa_danc

  2. #2

    Default -

    I have just the script! I use it myself, but it is ok if its one that shows in an iFrame. Aka, if its monday it will show the monday iFrame
    "Moderator Please like OMGZZPP close dis forum 4 meee!!1"

    "He gave me like OMGZ A RED THINGY rep! so like omgz close this forum and ban him kkz?


    Quote by Dj-Kevin

    Lmao, who was I talking like? Perhaps Dj-Kevin

  3. #3
    Join Date
    Dec 2004
    Location
    UK
    Posts
    534
    Tokens
    141

    Default

    that wud b great, if you can give it 2 me i'd b veri grateful, plus give ya +rep :p
    Post Count: :eusa_danc 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000 :eusa_danc

  4. #4

    Default -

    Ok, here you go:

    HTML Code:
    <script language="JavaScript1.2">
    //Daily iframe content- © Dynamic Drive (www.dynamicdrive.com)
    //For full source code, and Terms Of use, visit http://dynamicdrive.com
    //This credit MUST stay intact for use
    var ie=document.all&&navigator.userAgent.indexOf("Opera")==-1
    var dom=document.getElementById&&navigator.userAgent.indexOf("Opera")==-1
    //Specify IFRAME display attributes
    var iframeprops='width=150 height=160 marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="1" scrolling="no"'
    //Specify 7 URLs to display inside iframe, one for each day of week
    var daycontent=new Array()
    daycontent[1]="monday.htm" //Monday content
    daycontent[2]="tuesday.htm" //Tuesday content
    daycontent[3]="wednesday.htm"
    daycontent[4]="thursday.htm"
    daycontent[5]="friday.htm"
    daycontent[6]="saturday.htm"
    daycontent[0]="sunday.htm"
    //No need to edit after here
    if (ie||dom)
    document.write('<iframe frameborder=0 id="dynstuff" src="" '+iframeprops+'></iframe>')
    var mydate=new Date()
    var mytoday=mydate.getDay()
    function dayofweek_iframe(){
    if (ie||dom){
    var iframeobj=document.getElementById? document.getElementById("dynstuff") : document.all.dynstuff
    iframeobj.src=daycontent[mytoday]
    }
    }
    window.onload=dayofweek_iframe
    </script>
    You will need to edit Saturday, Monday, Tuesday, Wednesday, Thursday, Friday & Sunday .htms to the pages you would like it to sho on them dates.
    "Moderator Please like OMGZZPP close dis forum 4 meee!!1"

    "He gave me like OMGZ A RED THINGY rep! so like omgz close this forum and ban him kkz?


    Quote by Dj-Kevin

    Lmao, who was I talking like? Perhaps Dj-Kevin

  5. #5
    Join Date
    Aug 2005
    Location
    Tunbridge Wells, Kent
    Posts
    5,063
    Tokens
    1,624

    Latest Awards:

    Default

    Nice code Well done i might just use it or i might just put it in my brain (Notepad)
    Never argue with an idiot, he'll drag you down to his level, and beat you with experience.

    Quote Originally Posted by Recursion
    *oh trust me
    *I would NEVER go ATi
    And 15 mins later...
    Sapphire ATI Radeon HD 5850 1024MB GDDR5 PCI-Express Graphics Card £195.73 1 £195.73
    *ordered.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •