Results 1 to 7 of 7
  1. #1
    Join Date
    May 2006
    Location
    Hull
    Posts
    7,701
    Tokens
    2,430
    Habbo
    Moh

    Latest Awards:

    Default Javascript Counter

    Well at the moment this code says "xx spins." how do I make it so it says "You have been through xx spins."

    Thanks, kept going wrong for me

    HTML Code:
    <SCRIPT LANGUAGE="JavaScript">
    <!-- Begin
    startday = new Date();
    clockStart = startday.getTime();
    function initStopwatch() { 
    var myTime = new Date(); 
    var timeNow = myTime.getTime();  
    var timeDiff = timeNow - clockStart; 
    this.diffSecs = timeDiff/500; 
    return(this.diffSecs); 
    } 
    function getSecs() { 
    var mySecs = initStopwatch(); 
    var mySecs1 = ""+mySecs; 
    mySecs1= mySecs1.substring(0,mySecs1.indexOf(".")) + " spins."; 
    document.forms[0].timespent.value = mySecs1 
    window.setTimeout('getSecs()',500); 
    }
    </SCRIPT>
    btw the code you need to edit is
    HTML Code:
    mySecs1= mySecs1.substring(0,mySecs1.indexOf(".")) + " spins.";

  2. #2
    Join Date
    Jan 2007
    Location
    England, Uk, World, Universe,
    Posts
    1,012
    Tokens
    0

    Latest Awards:

    Default

    i am guessing your maknig your own version of MeatySpin??
    my sig ran away,

  3. #3
    Join Date
    May 2006
    Location
    Hull
    Posts
    7,701
    Tokens
    2,430
    Habbo
    Moh

    Latest Awards:

    Default

    Quote Originally Posted by rh4u View Post
    i am guessing your maknig your own version of MeatySpin??
    http://www.habboxforum.com/showthread.php?t=425649
    hehe

    atm its words and then the script next to it, but ppl cant copy and paste the amount they have spinned

  4. #4
    Join Date
    May 2007
    Location
    Nebo, NC, USA
    Posts
    2,517
    Tokens
    0

    Latest Awards:

    Default

    Code:
    mySecs1= mySecs1.substring(0,mySecs1.indexOf("."));
    mySecs1 = "You have been through" + mySecs1 + " spins.";
    maybe?

  5. #5
    Join Date
    May 2006
    Location
    Hull
    Posts
    7,701
    Tokens
    2,430
    Habbo
    Moh

    Latest Awards:

    Default

    Quote Originally Posted by Dentafrice, View Post
    Code:
    mySecs1= mySecs1.substring(0,mySecs1.indexOf("."));
    mySecs1 = "You have been through" + mySecs1 + " spins.";
    maybe?
    Thats it -kisses-
    +Rep

    Edit: Remind me, I have to spread it

  6. #6
    Join Date
    May 2007
    Location
    Nebo, NC, USA
    Posts
    2,517
    Tokens
    0

    Latest Awards:

    Default

    Okay Maybe you can trade me AirHabbo instead of rep? :]

  7. #7
    Join Date
    May 2006
    Location
    Hull
    Posts
    7,701
    Tokens
    2,430
    Habbo
    Moh

    Latest Awards:

    Default

    Quote Originally Posted by Dentafrice, View Post
    Okay Maybe you can trade me AirHabbo instead of rep? :]
    Keep dreaming

Posting Permissions

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