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!


Page 1 of 3 123 LastLast
Results 1 to 10 of 21
  1. #1
    Join Date
    May 2007
    Location
    Scotland
    Posts
    294
    Tokens
    0

    Default » JAVASCRIPT Habbo mouse pointer for your website! [Made by me]

    Last night I was bored, So I decided to make a quick script.

    Its a HABBO mouse pointer for your website.

    All you gotta do is simply add this code after the <head> tags on your site.
    HTML Code:
    <script language="JavaScript" type="text/javascript">
    A=document.getElementById
    B=document.all;
    C=document.layers;
    T1=new Array("http://www.bobbafm.pro-hosting.org.uk/MyMouseScript/pointer.png ",35,35)
    var offsetx=0 //x offset of trail from mouse pointer
    var offsety=0 //y offset of trail from mouse pointer
    nos=parseInt(T1.length/3)
    rate=50
    ie5fix1=0;
    ie5fix2=0;
    rightedge=B? document.body.clientWidth-T1[1] : window.innerWidth-T1[1]-20
    bottomedge=B? document.body.scrollTop+document.body.clientHeight-T1[2] : window.pageYOffset+window.innerHeight-T1[2]
    for (i=0;i<nos;i++){
    createContainer("CUR"+i,i*10,i*10,i*3+1,i*3+2,"","<img src='"+T1[i*3]+"' width="+T1[(i*3+1)]+" height="+T1[(i*3+2)]+" border=0>")
    }
    function createContainer(N,Xp,Yp,W,H,At,HT,Op,St){
    with (document){
    write((!A && !B) ? "<layer id='"+N+"' left="+Xp+" top="+Yp+" width="+W+" height="+H : "<div id='"+N+"'"+" style='position:absolute;left:"+Xp+"; top:"+Yp+"; width:"+W+"; height:"+H+"; ");
    if(St){
    if (C)
    write(" style='");
    write(St+";' ")
    }
    else write((A || B)?"'":"");
    write((At)? At+">" : ">");
    write((HT) ? HT : "");
    if (!Op)
    closeContainer(N)
    }
    }
    function closeContainer(){
    document.write((A || B)?"</div>":"</layer>")
    }
    function getXpos(N){
    if (A)
    return parseInt(document.getElementById(N).style.left)
    else if (B)
    return parseInt(B[N].style.left)
    else
    return C[N].left
    }
    function getYpos(N){
    if (A)
    return parseInt(document.getElementById(N).style.top)
    else if (B)
    return parseInt(B[N].style.top)
    else
    return C[N].top
    }
    function moveContainer(N,DX,DY){
    c=(A)? document.getElementById(N).style : (B)? B[N].style : (C)? C[N] : "";
    if (!B){
    rightedge=window.innerWidth-T1[1]-20
    bottomedge=window.pageYOffset+window.innerHeight-T1[2]
    }
    c.left=Math.min(rightedge, DX+offsetx);
    c.top=Math.min(bottomedge, DY+offsety);
    }
    function cycle(){
    //if (IE5) 
    if (document.all&&window.print){
    ie5fix1=document.body.scrollLeft;
    ie5fix2=document.body.scrollTop;
    }
    for (i=0;i<(nos-1);i++){
    moveContainer("CUR"+i,getXpos("CUR"+(i+1)),getYpos("CUR"+(i+1)))
    }
    }
    function newPos(e){
    moveContainer("CUR"+(nos-1),(B)?event.clientX+ie5fix1:e.pageX+2,(B)?event.clientY+ie5fix2:e.pageY+2)
    }
    function getedgesIE(){
    rightedge=document.body.clientWidth-T1[1]
    bottomedge=document.body.scrollHeight-T1[2]
    }
    if (B){
    window.onload=getedgesIE
    window.onresize=getedgesIE
    }
    if(document.layers)
    document.captureEvents(Event.MOUSEMOVE)
    document.onmousemove=newPos
    setInterval("cycle()",rate)
    </script>
    My first ever script & Its a success

    Enjoy people x

    Moved by opensourcehost (Forum Moderator) from Web Designing: Please post in the correct forum next time, thanks .
    Last edited by Mr.OSH; 14-06-2007 at 03:51 PM.
    Sam

  2. #2
    Join Date
    Aug 2004
    Location
    UK
    Posts
    11,283
    Tokens
    2,031

    Latest Awards:

    Default

    Quote Originally Posted by Highjacker-x View Post
    Last night I was bored, So I decided to make a quick script.

    Its a HABBO mouse pointer for your website.

    All you gotta do is simply add this code after the <head> tags on your site.
    HTML Code:
    <script language="JavaScript" type="text/javascript">
    A=document.getElementById
    B=document.all;
    C=document.layers;
    T1=new Array("http://www.bobbafm.pro-hosting.org.uk/MyMouseScript/pointer.png ",35,35)
    var offsetx=0 //x offset of trail from mouse pointer
    var offsety=0 //y offset of trail from mouse pointer
    nos=parseInt(T1.length/3)
    rate=50
    ie5fix1=0;
    ie5fix2=0;
    rightedge=B? document.body.clientWidth-T1[1] : window.innerWidth-T1[1]-20
    bottomedge=B? document.body.scrollTop+document.body.clientHeight-T1[2] : window.pageYOffset+window.innerHeight-T1[2]
    for (i=0;i<nos;i++){
    createContainer("CUR"+i,i*10,i*10,i*3+1,i*3+2,"","<img src='"+T1[i*3]+"' width="+T1[(i*3+1)]+" height="+T1[(i*3+2)]+" border=0>")
    }
    function createContainer(N,Xp,Yp,W,H,At,HT,Op,St){
    with (document){
    write((!A && !B) ? "<layer id='"+N+"' left="+Xp+" top="+Yp+" width="+W+" height="+H : "<div id='"+N+"'"+" style='position:absolute;left:"+Xp+"; top:"+Yp+"; width:"+W+"; height:"+H+"; ");
    if(St){
    if (C)
    write(" style='");
    write(St+";' ")
    }
    else write((A || B)?"'":"");
    write((At)? At+">" : ">");
    write((HT) ? HT : "");
    if (!Op)
    closeContainer(N)
    }
    }
    function closeContainer(){
    document.write((A || B)?"</div>":"</layer>")
    }
    function getXpos(N){
    if (A)
    return parseInt(document.getElementById(N).style.left)
    else if (B)
    return parseInt(B[N].style.left)
    else
    return C[N].left
    }
    function getYpos(N){
    if (A)
    return parseInt(document.getElementById(N).style.top)
    else if (B)
    return parseInt(B[N].style.top)
    else
    return C[N].top
    }
    function moveContainer(N,DX,DY){
    c=(A)? document.getElementById(N).style : (B)? B[N].style : (C)? C[N] : "";
    if (!B){
    rightedge=window.innerWidth-T1[1]-20
    bottomedge=window.pageYOffset+window.innerHeight-T1[2]
    }
    c.left=Math.min(rightedge, DX+offsetx);
    c.top=Math.min(bottomedge, DY+offsety);
    }
    function cycle(){
    //if (IE5) 
    if (document.all&&window.print){
    ie5fix1=document.body.scrollLeft;
    ie5fix2=document.body.scrollTop;
    }
    for (i=0;i<(nos-1);i++){
    moveContainer("CUR"+i,getXpos("CUR"+(i+1)),getYpos("CUR"+(i+1)))
    }
    }
    function newPos(e){
    moveContainer("CUR"+(nos-1),(B)?event.clientX+ie5fix1:e.pageX+2,(B)?event.clientY+ie5fix2:e.pageY+2)
    }
    function getedgesIE(){
    rightedge=document.body.clientWidth-T1[1]
    bottomedge=document.body.scrollHeight-T1[2]
    }
    if (B){
    window.onload=getedgesIE
    window.onresize=getedgesIE
    }
    if(document.layers)
    document.captureEvents(Event.MOUSEMOVE)
    document.onmousemove=newPos
    setInterval("cycle()",rate)
    </script>
    My first ever script & Its a success

    Enjoy people x
    For gods sake, if your gona be stupid enough to ripp someones script at least have the sence not to rip from Dynamic drive =.= Pretty much EVERYONE here knows the bloody site.

    All youve done is remove the
    Code:
    /******************************************
    * Cross browser cursor trailer script- By Brian Caputo ([email protected])
    * Visit Dynamic Drive (http://www.dynamicdrive.com/) for full source code
    * Modified Dec 31st, 02' by DD. This notice must stay intact for use
    ******************************************/
    From the script :rolleyes:

  3. #3
    Join Date
    May 2007
    Location
    Scotland
    Posts
    294
    Tokens
    0

    Default

    I Didnt rip it from there.. Stop accusing me. And I was talking about the image that I made, n it worked through the script.
    Sam

  4. #4
    Join Date
    Aug 2004
    Location
    UK
    Posts
    11,283
    Tokens
    2,031

    Latest Awards:

    Default

    Quote Originally Posted by Highjacker-x View Post
    I Didnt rip it from there.. Stop accusing me. And I was talking about the image that I made, n it worked through the script.
    Your a crap lier...

    So I decided to make a quick script.
    Ive got no respect for rippers, especially those stupid enough to rip from such an obvious source, dont try and pretend you ment the image :rolleyes:

  5. #5
    Join Date
    May 2007
    Location
    Scotland
    Posts
    294
    Tokens
    0

    Default

    reported,

    HabboRing helped me with the source. & I got a hold of the habbo pointer, and put it through the source.
    Sam

  6. #6
    Join Date
    Aug 2004
    Location
    UK
    Posts
    11,283
    Tokens
    2,031

    Latest Awards:

    Default

    Im not the one whom has ripped, its an obvious fact, from your above thread and its title. The script you posted is not yours yet to claim it is. Dont be so pathetic as to try and cover it up.
    This is a forum used by people with a real interest in webdesign use, i see no use for pathetic kids who steal and try to take credit for other peoples work here.

    Plus this isnt breaking a rule, the rule is that your not allowed to accuse people. Im simply stateing a matter of fact anyone who wishs to scroll up can easly varifie.

  7. #7
    Join Date
    Jul 2004
    Location
    Sunshine Coast, Queensland, AU
    Posts
    1,830
    Tokens
    467

    Latest Awards:

    Default

    Quote Originally Posted by Highjacker-x View Post
    reported,

    HabboRing helped me with the source. & I got a hold of the habbo pointer, and put it through the source.
    I don't know why you need his help to rip something of DD?
    lol most people are compatible of doing that themselves lol

    Quote Originally Posted by Dynamicdrive
    Code:
    <script>
     
     /******************************************
     * Cross browser cursor trailer script- By Brian Caputo ([email protected])
     * Visit Dynamic Drive (http://www.dynamicdrive.com/) for full source code
     * Modified Dec 31st, 02' by DD. This notice must stay intact for use
     ******************************************/
     
     A=document.getElementById
     B=document.all;
     C=document.layers;
     T1=new Array("trail1.gif",38,35,"trail2.gif",30,31,"trail3.gif",28,26,"trail4.gif",22,21,"trail5.gif",16,16,"trail6.gif",10,10)
     
     var offsetx=15 //x offset of trail from mouse pointer
     var offsety=10 //y offset of trail from mouse pointer
     
     nos=parseInt(T1.length/3)
     rate=50
     ie5fix1=0;
     ie5fix2=0;
     rightedge=B? document.body.clientWidth-T1[1] : window.innerWidth-T1[1]-20
     bottomedge=B? document.body.scrollTop+document.body.clientHeight-T1[2] : window.pageYOffset+window.innerHeight-T1[2]
     
     for (i=0;i<nos;i++){
    createContainer("CUR"+i,i*10,i*10,i*3+1,i*3+2,"","<img src='"+T1[i*3]+"' width="+T1[(i*3+1)]+" height="+T1[(i*3+2)]+" border=0>")
     }
     
     function createContainer(N,Xp,Yp,W,H,At,HT,Op,St){
     with (document){
    write((!A && !B) ? "<layer id='"+N+"' left="+Xp+" top="+Yp+" width="+W+" height="+H : "<div id='"+N+"'"+" style='position:absolute;left:"+Xp+"; top:"+Yp+"; width:"+W+"; height:"+H+"; ");
     if(St){
     if (C)
     write(" style='");
     write(St+";' ")
     }
     else write((A || B)?"'":"");
     write((At)? At+">" : ">");
     write((HT) ? HT : "");
     if (!Op)
     closeContainer(N)
     }
     }
     
     function closeContainer(){
     document.write((A || B)?"</div>":"</layer>")
     }
     
     function getXpos(N){
     if (A)
     return parseInt(document.getElementById(N).style.left)
     else if (B)
     return parseInt(B[N].style.left)
     else
     return C[N].left
     }
     
     function getYpos(N){
     if (A)
     return parseInt(document.getElementById(N).style.top)
     else if (B)
     return parseInt(B[N].style.top)
     else
     return C[N].top
     }
     
     function moveContainer(N,DX,DY){
     c=(A)? document.getElementById(N).style : (B)? B[N].style : (C)? C[N] : "";
     if (!B){
     rightedge=window.innerWidth-T1[1]-20
     bottomedge=window.pageYOffset+window.innerHeight-T1[2]
     }
     c.left=Math.min(rightedge, DX+offsetx);
     c.top=Math.min(bottomedge, DY+offsety);
     }
     function cycle(){
     //if (IE5) 
     if (document.all&&window.print){
     ie5fix1=document.body.scrollLeft;
     ie5fix2=document.body.scrollTop;
     }
     for (i=0;i<(nos-1);i++){
     moveContainer("CUR"+i,getXpos("CUR"+(i+1)),getYpos("CUR"+(i+1)))
     }
     }
     
     function newPos(e){
     moveContainer("CUR"+(nos-1),(B)?event.clientX+ie5fix1:e.pageX+2,(B)?event.clientY+ie5fix2:e.pageY+2)
     }
     
     function getedgesIE(){
     rightedge=document.body.clientWidth-T1[1]
     bottomedge=document.body.scrollHeight-T1[2]
     }
     
     if (B){
     window.onload=getedgesIE
     window.onresize=getedgesIE
     }
     
     if(document.layers)
     document.captureEvents(Event.MOUSEMOVE)
     document.onmousemove=newPos
     setInterval("cycle()",rate)
     </script>
    Last edited by Rix; 14-06-2007 at 01:02 AM.

  8. #8
    Join Date
    Feb 2007
    Location
    Rochester NY
    Posts
    1,932
    Tokens
    0

    Latest Awards:

    Default

    :L somebody close this its non-stop arguing..

  9. #9
    Join Date
    May 2007
    Location
    Scotland
    Posts
    294
    Tokens
    0

    Default

    Well you can see who started it >.>
    Sam

  10. #10
    Join Date
    Aug 2004
    Location
    UK
    Posts
    11,283
    Tokens
    2,031

    Latest Awards:

    Default

    Someone shamlessy ripping a script? yup, on that note i must agree with you, it is indeed obvious.

Page 1 of 3 123 LastLast

Posting Permissions

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