● Santa Clause script

Wed Dec 23, 2020 10:36 am
Clan Leader
Top Dog
Nuke Dev / Coder
3017 Posts
coRpSE
In-Game
The Isle

Most Played:
This week: 89.2hrs.
Total Played: 281hrs.


  
Reputation: 7321.7
votes: 7
Okay, I have been messaged by a few of you about the Santa Clause script I have on my site. If you want the basic script, I got it from here:
Please login to see this link
Get registered or Log in


But, if you want it so the Santa goes back & forth, and at different elevations along with different timings between passes, you can do one of two things,

  1. Wait till next year when I have the means to finish the script and get it packed up

  2. You can take some of my coding and figure it out for yourself. A few changes I did that are different are as follows,
    1. moved the image path to the css, then made a mirrored version of it.
    2. altered the jquery a bit to have the Santa cross back & forth at different elevations & different times.
    3. removed the image coding from the div and added in a second div.


    Well, you can find my altered jquery here:
    Please login to see this link
    Get registered or Log in


    And here is the css for just the Santa:

    Code: [ Select all ]

     

    /*  Santa  */
    .santa {
       width: 350px;
       height: 120px;
       background: url(../images/christmas-sled-source_ulp.gif) 0 0 no-repeat;
       position: fixed;
       bottom: 25px;
       right: -500px;
       z-index: 20;
    }

    .santal {
       width: 350px;
       height: 120px;
       background: url(../images/christmas-sled-source_ulp.gif) 0 0 no-repeat;
       transform: rotateY(180deg);
       position: fixed;
       bottom: 25px;
       left: -500px;
       z-index: 20;
    }



If you decide to use what I give, this is where your problem solving will need to come into play. Don't ask me how to do it, I won't help until after the holiday and when I get my new pc.


Expand
Forums ©