Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title>{Title}</title>
- {block:Description}
- <meta name="description" content="{MetaDescription}" />
- {/block:Description}
- <link rel="shortcut icon" href="{Favicon}" />
- <link rel="alternate" type="application/rss+xml" href="{RSS}" />
- <meta name="image:background" content="" />
- <meta name="color:background" content="" />
- <meta name="image:sideimg" content="" />
- <meta name="color:audio" content="" />
- <meta name="color:audio text" content="" />
- <meta name="color:postinfo" content="" />
- <meta name="color:link" content="" />
- <meta name="color:text" content="" />
- <meta name="color:hover" content="" />
- <meta name="color:question" content="" />
- <meta name="color:question text" content="" />
- <meta name="color:italic" content="" />
- <meta name="color:bold" content="" />
- <meta name="image:sidebar" content="http://puu.sh/cpv0j/a9fa1c509c.jpg"/>
- <meta name="text:link1" content="/" />
- <meta name="text:link1 title" content="link1" />
- <meta name="text:link2" content="/" />
- <meta name="text:link2 title" content="link2" />
- <meta name="text:link3" content="/" />
- <meta name="text:link3 title" content="link3" />
- <meta name="text:link4" content="/" />
- <meta name="text:link4 title" content="link4" />
- <meta name="text:link5" content="/" />
- <meta name="text:link5 title" content="link5" />
- <!--TOOLTIPS-->
- <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
- <script type="text/javascript" src="http://static.tumblr.com/ko1mcho/PMbmlkh9e/jquery.style-my-tooltips.js"></script>
- <script>
- (function($){
- $(document).ready(function(){
- $("[title],a[title],img[title]").style_my_tooltips({
- tip_follows_cursor: "true",
- tip_delay_time: 100,
- tip_fade_speed: 100,
- attribute: "title"
- });
- });
- })(jQuery);
- </script>
- <style type="text/css">
- /*SIDEBAR*/
- #sidebar {
- top: 47px;
- left: 50px;
- width: 228px;
- height: 100%;
- padding: 10px;
- background-color: transparent;
- color: #000000;
- font-family: silkscreen;
- font-size: 8px;
- letter-spacing: 1px;
- text-align: justify;
- opacity: 1;
- overflow: hidden;
- position: fixed;
- }
- #simg img {
- margin-left: 0px;
- width: 200px;
- background-color: transparent;
- border: 2px solid #ffffff;
- border-radius: 15px;
- }
- #simg img:hover {
- opacity: 0.5;
- transition: all 0.5s ease-in-out;
- -webkit-transition: all 0.5s ease-in-out;
- -moz-transition: all 0.5s ease-in-out;
- -o-transition: all 0.5s ease-in-out;
- -ms-transition: all 0.5s ease-in-out;
- }
- #description {
- margin-left: 0px;
- line-height: 140%;
- text-align: right;
- font-family: times;
- margin-top: 28px;
- font-size: 10px;
- font-weight: normal;
- color: {color:description text};
- position: fixed;
- padding: 0px 11px 0px 3px;
- padding: 5px 15px 5px 15px ;
- width: 200px;
- -webkit-transition: all 0.7s ease-out;
- -moz-transition: all 0.7s ease-out;
- transition: all 0.7s ease-out;
- }
- #title {
- color: #000000;
- font-family: Monotype Corsiva;
- margin-bottom: 6px;
- font-style: none;
- margin-left: 0px;
- text-align: center;
- position: justify;
- width: 200px;
- line-height: 20px;
- margin-top: -11px;
- letter-spacing: 0px;
- z-index: 999;
- font-size: 20px;
- }
- #title a {
- color: {color:title};
- background-color: {color:background};
- padding: 2px;
- z-index: 999;
- }
- #titleb {
- height: 1px;
- width: 190px;
- margin-left: 10px;
- position: justify;
- background-color: #ffffff;
- margin-top: 23px;
- }
- /*LINKS*/
- #link1 {
- color: #000000;
- border: 2px solid #ffc8e3;
- position: fixed !important;
- width: 96px;
- height: 13px;
- margin-top: -16px;
- margin-left: 50px;
- padding: 5px;
- background-color: #ffffff;
- font-size: 12px;
- font-family: Monotype Corsiva;
- line-height: 13px;
- text-align: center;
- transition: all 1s ease-in-out;
- -webkit-transition: all 1s ease-in-out;
- -moz-transition: all 1s ease-in-out;
- -o-transition: all 1s ease-in-out;
- -ms-transition: all 1s ease-in-out;
- }
- #link1:hover {
- color: #ffc8e3;
- letter-spacing: 4px;
- transition: all 0.3s ease-in-out;
- -webkit-transition: all 0.3s ease-in-out;
- -moz-transition: all 0.3s ease-in-out;
- -o-transition: all 0.3s ease-in-out;
- -ms-transition: all 0.3s ease-in-out;
- }
- #link2 {
- color: #000000;
- border: 2px solid #ffc8e3;
- position: fixed !important;
- width: 96px;
- height: 13px;
- margin-top: 8px;
- margin-left: 50px;
- padding: 5px;
- background-color: #ffffff;
- font-size: 12px;
- font-family: Monotype Corsiva;
- line-height: 13px;
- text-align: center;
- transition: all 1s ease-in-out;
- -webkit-transition: all 1s ease-in-out;
- -moz-transition: all 1s ease-in-out;
- -o-transition: all 1s ease-in-out;
- -ms-transition: all 1s ease-in-out;
- }
- #link2:hover {
- color: #ffc8e3;
- letter-spacing: 4px;
- transition: all 0.3s ease-in-out;
- -webkit-transition: all 0.3s ease-in-out;
- -moz-transition: all 0.3s ease-in-out;
- -o-transition: all 0.3s ease-in-out;
- -ms-transition: all 0.3s ease-in-out;
- }
- #link3 {
- color: #000000;
- border: 2px solid #ffc8e3;
- position: fixed !important;
- width: 96px;
- height: 13px;
- margin-top: 32px;
- margin-left: 50px;
- padding: 5px;
- background-color: #ffffff;
- font-size: 12px;
- font-family: Monotype Corsiva;
- line-height: 13px;
- text-align: center;
- transition: all 1s ease-in-out;
- -webkit-transition: all 1s ease-in-out;
- -moz-transition: all 1s ease-in-out;
- -o-transition: all 1s ease-in-out;
- -ms-transition: all 1s ease-in-out;
- }
- #link3:hover {
- color: #ffc8e3;
- letter-spacing: 4px;
- transition: all 0.3s ease-in-out;
- -webkit-transition: all 0.3s ease-in-out;
- -moz-transition: all 0.3s ease-in-out;
- -o-transition: all 0.3s ease-in-out;
- -ms-transition: all 0.3s ease-in-out;
- }
- #link4 {
- color: #000000;
- border: 2px solid #ffc8e3;
- position: fixed !important;
- width: 96px;
- height: 13px;
- margin-top: 56px;
- margin-left: 50px;
- padding: 5px;
- background-color: #ffffff;
- font-size: 12px;
- font-family: Monotype Corsiva;
- line-height: 13px;
- text-align: center;
- transition: all 1s ease-in-out;
- -webkit-transition: all 1s ease-in-out;
- -moz-transition: all 1s ease-in-out;
- -o-transition: all 1s ease-in-out;
- -ms-transition: all 1s ease-in-out;
- }
- #link4:hover {
- color: #ffc8e3;
- letter-spacing: 4px;
- transition: all 0.3s ease-in-out;
- -webkit-transition: all 0.3s ease-in-out;
- -moz-transition: all 0.3s ease-in-out;
- -o-transition: all 0.3s ease-in-out;
- -ms-transition: all 0.3s ease-in-out;
- }
- #link5 {
- color: #000000;
- border: 2px solid #ffc8e3;
- position: fixed !important;
- width: 96px;
- height: 13px;
- margin-top: 80px;
- margin-left: 50px;
- padding: 5px;
- background-color: #ffffff;
- font-size: 12px;
- font-family: Monotype Corsiva;
- line-height: 13px;
- text-align: center;
- transition: all 1s ease-in-out;
- -webkit-transition: all 1s ease-in-out;
- -moz-transition: all 1s ease-in-out;
- -o-transition: all 1s ease-in-out;
- -ms-transition: all 1s ease-in-out;
- }
- #link5:hover {
- color: #ffc8e3;
- letter-spacing: 4px;
- transition: all 0.3s ease-in-out;
- -webkit-transition: all 0.3s ease-in-out;
- -moz-transition: all 0.3s ease-in-out;
- -o-transition: all 0.3s ease-in-out;
- -ms-transition: all 0.3s ease-in-out;
- }
- #s-m-t-tooltip {
- color: #fff;
- background-color: {color:question};
- display: none;
- text-align: left;
- position: absolute;
- z-index: 9999;
- font-size: 8px;
- font-family: Minya Nouvelle;
- text-transform: uppercase;
- padding: 1px 3px 1px 3px;
- margin-top: 27px;
- -webkit-transition: all 0.2s ease-out
- -moz-transition: all 0.2s ease-out;
- transition: all 0.2s ease-out;
- }
- iframe#tumblr_controls {
- white-space: nowrap;
- -webkit-filter: invert(100%);
- -moz-filter: invert(100%);
- -o-filter: invert(100%);
- -ms-filter: invert(100%); filter: invert(100%);
- opacity: 0.5;
- transition: 0.8s ease-in-out;
- -webkit-transition: 0.8s ease-in-out;
- -moz-transition: 0.8s ease-in-out;
- -o-transition: 0.8s ease-in-out;
- }
- /*MUSIC PLAYER*/
- #audio {
- position: fixed;
- left: 10px;
- top: 10px;
- border: 1px solid #ffffff;
- padding: 10px;
- width: 14px;
- height: 14px;
- background: #ffffff;
- }
- #audio:hover {
- width: 200px;
- border: 0px;
- border-left: 15px solid #000000;
- background: none!important;
- -webkit-transition: all 0.5s ease-in;
- -moz-transition: all 0.5s ease-in;
- -o-transition: all 0.5s ease-in;
- }
- #audio img {
- visibility: visible;
- }
- #audio:hover img {
- visibility: hidden!important;
- position: absolute;
- }
- #player {
- visibility: hidden;
- position: absolute;
- height: 0px;
- width: 0px;
- }
- #audio:hover #player {
- visibility: visible!important;
- }
- /*SCROLLBAR*/
- ::-webkit-scrollbar-thumb:vertical {
- background-color: #f0f0f0;
- height: 10px;}
- ::-webkit-scrollbar-thumb:horizontal {
- background-color: #f0f0f0;
- height: 10px!important;
- }
- ::-webkit-scrollbar {
- background-color: {color:background};
- height: 10px;
- width: 12px;
- }
- ::selection {
- background: #ffffff;
- }
- ::-moz-selection {
- background: #ffffff;
- }
- /*BASICS*/
- h1 {
- color: {color:text};
- font-size: 9px;
- letter-spacing: 1px;
- font-family: calibri;
- margin-top: -11px;
- text-transform: uppercase;
- text-align: center;
- font-style: normal;
- }
- h2 {
- font-size: 15px;
- font-family: georgia;
- text-transform: uppercase;
- text-align: center;
- margin-top: 0px;
- color: {color:link};
- font-weight: normal;
- }
- h3 {
- font-size: 10px;
- line-height: 20px;
- font-family: arial;
- font-weight: normal;
- margin-top: 0px;
- text-align: center;
- }
- b {
- color: {color:bold};
- }
- i {
- color: {color:italic};
- font-weight: bold;
- }
- body {
- color: {color:text};
- font-style: normal;
- background-attachment: fixed;
- background-color: {color:background};
- text-align: justify;
- font-family: arial;
- font-size: 10px;
- text-decoration: none;
- line-height: 110%;
- background-image: url('{image:background}');
- }
- a {
- color: {color:link};
- cursor: pointer;
- text-decoration: none;
- -webkit-transition: opacity 0.8s linear;
- -webkit-transition: all 0.5s ease-out;
- -moz-transition: all 0.5s ease-out;
- transition: all 0.5s ease-out;
- }
- a:hover {
- color: {color:hover};
- -webkit-transition: opacity 0.8s linear;
- -webkit-transition: all 0.5s ease-out;
- -moz-transition: all 0.5s ease-out;
- transition: all 0.5s ease-out;}
- #container {
- width: 900px;
- margin: auto;
- margin-left: 90px;
- padding-bottom: 30px;
- }
- #entries {
- position: absolute;
- overflow: hidden;
- width: 500px;
- margin-left: 300px;
- margin-top: 10px;
- }
- #posts {
- width: 500px;
- background: transparent;
- color: {color:text};
- padding: 2px 0px 0px 0px;
- }
- #posts:hover {
- opacity: 0.5;
- transition: all 0.5s ease-in-out;
- -webkit-transition: all 0.5s ease-in-out;
- -moz-transition: all 0.5s ease-in-out;
- -o-transition: all 0.5s ease-in-out;
- -ms-transition: all 0.5s ease-in-out;
- }
- /*POSTINFO*/
- #postinfo {
- width: 500px;
- text-align: center;
- margin-top: 0px;
- text-transform: uppercase;
- font-size: 8px;
- font-family: ariaL;
- letter-spacing: 1px;
- padding: 1px 0px 2px 0px;
- border-top: 1px solid #ffffff;
- }
- #postinfo a {
- display: inline-block;
- margin-bottom: 2px;
- margin-top: 3px;
- font-size: 8px;
- font-family: ariaL;
- letter-spacing: 1px;
- }
- #postinfo a:hover {
- color: #ffffff;
- }
- #tags {
- padding: 5px 0px 5px 0px;
- background-color: {color:postinfo};
- text-align: center;
- margin-top: 10px;
- font-size: 8px;
- font-family: ariaL;
- letter-spacing: 1px;
- text-transform: uppercase;
- width: 500px;
- }
- .date {
- z-index: 1000;
- padding: 2px;
- position: justify;
- width: 497px;
- }
- .dateborder {
- height: 1px;
- z-index: 1;
- margin-top: -8px;
- background-color: #ffffff;
- margin-bottom: -3px;
- width: 497px;
- }
- .date a {
- font-family: calibri;
- margin-top: 5px;
- letter-spacing: 1px;
- background-color: {color:background};
- font-size: 9px;
- text-transform: uppercase;
- margin-left: -3px;
- padding: 2px 4px 2px 0px;
- }
- /*BLOCKQUOTE*/
- blockquote {
- border-left: 1px solid #ffffff;
- padding-left: 20px;
- margin-top: 20px;
- max-width: 490px;
- }
- blockquote img, blockquote a img {
- max-width: 490px;
- }
- blockquote blockquote {
- border-left: 1px #ffffff solid;
- padding-left: 10px;
- margin-left: -10px;
- width: 190px;
- }
- .blockquote small, blockquote small {
- font-size: 10px;
- }
- /*CHAT*/
- .chat {
- list-style: none;
- width: 495px;
- }
- .chat ul {
- list-style: none;
- margin-left: -37px;
- line-height: 25px;
- }
- .person1 {
- background-color: #ffffff;
- }
- .person1 .label {
- margin-left: 5px;
- font-weight: bold;
- }
- .person2 .label {
- margin-left: 5px;
- font-weight: bold;
- }
- .person3 {
- background-color: #ffffff;
- }
- .person3 .label {
- margin-left: 5px;
- font-weight: bold;
- }
- .person4 .label {
- margin-left: 5px;
- font-weight: bold;
- padding: 0px;
- }
- /*NOTES*/
- #notes img {
- width: 10px;
- padding: 5px;
- position: relative;
- }
- #notes {
- width: 500px;
- margin-left: -35px;
- line-height: 20px;
- }
- ol.notes {
- list-style: none;
- margin-top: 5px;
- }
- #notes li {
- padding-bottom: 5px;
- padding-top: 5px;
- border-bottom: 1px solid #ffffff;
- }
- /*ASK*/
- #questions {
- background-color: {color:question};
- color: {color:question text};
- padding: 15px;
- letter-spacing: 1px;
- margin-top: 2px;
- margin-bottom: 5px;
- font-size: 10px;
- font-family: calibri;
- text-align: left;
- }
- #questions a {
- color: {color:question text};
- }
- /*AUDIO*/
- #cover img {
- width: 100px;
- height: 100px;
- float: left;
- }
- .audioplayer {
- width: 24px;
- height: 24px;
- margin-top: 23px;
- margin-left: 23px;
- overflow: hidden;
- padding: 3px;
- }
- #audioplayerbackground {
- position: absolute;
- z-index: 1;
- width: 79px;
- height: 79px;
- margin-top: 10px;
- margin-left: 10px;
- background: #fff;
- opacity: 0.8;
- -webkit-transition: opacity 0.8s linear;
- -webkit-transition: all 0.5s ease-out;
- -moz-transition: all 0.5s ease-out;
- transition: all 0.5s ease-out;
- }
- #audioplayerbackground:hover {
- opacity: 0.4;
- -webkit-transition: opacity 0.8s linear;
- -webkit-transition: all 0.5s ease-out;
- -moz-transition: all 0.5s ease-out;
- transition: all 0.5s ease-out;
- }
- .info {
- width: 360px;
- height: 75px;
- margin-left: 110px;
- display: block;
- margin-top: 0px;
- padding-top: 25px;
- font-family: calibri;
- font-size: 12px;
- letter-spacing: 0px;
- letter-spacing: 1px;
- font-style: italic;
- padding-left: 30px;
- text-align: left;
- margin-bottom: -10px;
- color: {color:audio text};
- background: {color:audio};
- }
- /*CREDIT*/
- #credit {
- font-size: 12px;
- font-family: onedirection;
- font-style: normal;
- position: fixed;
- bottom: 5px;
- right: 5px;
- }
- #credit a {
- color: #000000;
- font-size: 12px;
- }
- #credit a:hover {
- opacity: 0.6;
- color: #ffffff;
- font-size: 16px;
- -webkit-transition: all 0.3s ease;
- -moz-transition: all 0.3s ease;
- transition: all 0.3s ease;
- }
- {CustomCSS}
- </style>
- <img style="position: fixed; TOP: 570px; LEFT: 1080px; z-index: 1;" src="{image:sideimg}">
- <div id="container">
- <div id="sidebar">
- <div id="description">
- <div id="simg">
- <img src="{image:sidebar}">
- </div>
- <div id="titleb"></div>
- <div id="title">
- {title}</div>
- {Description}
- <br>
- <a href="{text:link1}"><div id="link1">{text:link1 title}</div></a>
- <a href="{text:link2}"><div id="link2">{text:link2 title}</div></a>
- <a href="{text:link3}"><div id="link3">{text:link3 title}</div></a>
- <a href="{text:link4}"><div id="link4">{text:link4 title}</div></a>
- <a href="{text:link5}"><div id="link5">{text:link5 title}</div></a>
- </div>
- </div>
- <div id="entries">
- {block:Posts}
- <div class="date">
- <a href="{Permalink}">{Month} {DayOfMonthWithZero}, {Year}</a>
- </div>
- <div class="dateborder"></div>
- <br>
- <div id="posts">
- {block:Text}
- {block:Title}<h2>{Title}</h2>{/block:Title}
- {Body}<br>
- {/block:Text}
- {block:Photo}
- <img src="{PhotoURL-500}" alt="{PhotoAlt}"/>{block:Caption}{Caption}{/block:Caption}
- {/block:Photo}
- {block:Photoset}
- {Photoset-500}{block:Caption} {Caption}{/block:Caption}
- {/block:Photoset}
- {block:Quote}<br>
- <h3><font style="font-family:times;font-size:10px;">・</font> {Quote} <font style="font-family:times;font-size:10px;"> ・</font> </h3><h1>-
- <br>{Source}</h1>
- {/block:Quote}
- {block:Link}
- <a href="{URL}"><h2>{Name}</h2></a>{block:Description}<div class="text">{Description}</div>{/block:Description}
- {/block:Link}
- {block:Chat}
- {block:Title}<a href="{Permalink}">{Title}</a>{/block:Title}
- <div class="chat"><ul>{block:Lines}<li class="person{UserNumber}">{block:Label}<span class="label">{Label}</span>{/block:Label} {Line}</li>{/block:Lines}</ul></div>
- {/block:Chat}
- {block:Video}
- {Video-500}{block:PermalinkPage} {block:Caption}{Caption}{/block:Caption}{/block:PermalinkPage}
- {/block:Video}
- {block:Answer}<br>
- <div id="questions">{Question} - {Asker}</div>
- <font style="text-align:center;">{answer}</font>
- {/block:Answer}
- {block:Audio}
- {block:AlbumArt}<div id="cover"><img src="{AlbumArtURL}"></div>{/block:AlbumArt}
- <div id="audioplayerbackground">
- <div class="audioplayer">{AudioPlayerwhite}</div></div>
- <div class="info">
- {block:TrackName}
- <font style="text-transform:lowercase;font-weight:bold;font-family:georgia;font-style:italic;color:{color:question};">{TrackName}</font>
- {/block:TrackName}
- <br>
- <br>
- {block:Artist}<small>{Artist}</small>{/block:Artist}
- <small><br> {FormattedPlayCount} plays </small>
- </div>
- {block:Caption}<br>{Caption}{/block:Caption}
- {/block:Audio}<br>
- </div>
- <div id="tags">
- {block:Tags}
- <span class="tag">
- <a href="/tagged/{Tag}"> #{Tag}</a>
- </span>
- {/block:Tags}
- </div>
- <div id="postinfo">
- {block:Date}
- <a href="{Permalink}">{timeaGO}</a>
- {block:NoteCount}
- <a href="{Permalink}"> <font style="color:{color:heart}">? </font>{notecount}</a>
- {/block:notecount}
- {/block:Date}
- {block:RebloggedFrom}<a href="{ReblogParentURL}" title="{ReblogParentName}">via</a>
- <a href="{ReblogRootURL}" title="{ReblogRootName}">/ Source</a> {/block:RebloggedFrom}
- {block:ContentSource}
- <!-- {SourceURL}{block:SourceLogo}<img src="{BlackLogoURL}"
- width="{LogoWidth}" height="{LogoHeight}" alt="{SourceTitle}" />
- {/block:SourceLogo}
- {block:NoSourceLogo}{SourceLink}{/block:NoSourceLogo} -->
- {/block:ContentSource}
- <!--{block:NoRebloggedFrom}{block:RebloggedFrom}{ReblogParentName}{/block:RebloggedFrom}{/block:NoRebloggedFrom} -->
- </div>
- {block:PostNotes}
- <div id="notes"><left>{PostNotes}</div>
- {/block:PostNotes}
- {/block:Posts}
- <!--MUSIC PLAYER-->
- <div id ="audio">
- <img src="http://media.tumblr.com/tumblr_m9c43cSqfD1rto88t.gif">
- <div id ="player">
- <center><embed src="http://www.sheepproductions.com/billy/billy.swf?autoplay=false&f0=https://www.dropbox.com/s/lq1f7kz4al4wsal/_______%20_fake%21fake%21_%20_%20A%20crow%20is%20white%20_fake%21fake%21_%20%28Official%20Music%20Video%29.mp3?dl=1&t0=fake!fake&f1=https://www.dropbox.com/s/3u35iub15aigo6j/TheFatRat%20-%20Unity.mp3?dl=1&t1=Unity&total=2" quality="high" wmode="transparent" width="200" height="10" name="billy" align="middle" type="application/x-shockwave-flash" /></center>
- </div>
- </div>
- <!--CREDIT-->
- <div id="credit">
- <a href="http://www.sleeplessangels.tumblr.com" title="theme by sleeplessangels">❤❤</a></div>
- </body>
- </html>
- <!--SPARKLES-->
- <script type="text/javascript">
- var colour="#FFA6FA"; /*CHANGE COLOR HERE*/
- var sparkles=120;
- var x=ox=400;
- var y=oy=300;
- var swide=800;
- var shigh=600;
- var sleft=sdown=0;
- var tiny=new Array();
- var star=new Array();
- var starv=new Array();
- var starx=new Array();
- var stary=new Array();
- var tinyx=new Array();
- var tinyy=new Array();
- var tinyv=new Array();
- window.onload=function() { if (document.getElementById) {
- var i, rats, rlef, rdow;
- for (var i=0; i<sparkles; i++) {
- var rats=createDiv(3, 3);
- rats.style.visibility="hidden";
- document.body.appendChild(tiny[i]=rats);
- starv[i]=0;
- tinyv[i]=0;
- var rats=createDiv(5, 5);
- rats.style.backgroundColor="transparent";
- rats.style.visibility="hidden";
- var rlef=createDiv(1, 5);
- var rdow=createDiv(5, 1);
- rats.appendChild(rlef);
- rats.appendChild(rdow);
- rlef.style.top="2px";
- rlef.style.left="0px";
- rdow.style.top="0px";
- rdow.style.left="2px";
- document.body.appendChild(star[i]=rats);
- }
- set_width();
- sparkle();
- }}
- function sparkle() {
- var c;
- if (x!=ox || y!=oy) {
- ox=x;
- oy=y;
- for (c=0; c<sparkles; c++) if (!starv[c]) {
- star[c].style.left=(starx[c]=x)+"px";
- star[c].style.top=(stary[c]=y)+"px";
- star[c].style.clip="rect(0px, 5px, 5px, 0px)";
- star[c].style.visibility="visible";
- starv[c]=50;
- break;
- }
- }
- for (c=0; c<sparkles; c++) {
- if (starv[c]) update_star(c);
- if (tinyv[c]) update_tiny(c);
- }
- setTimeout("sparkle()", 40);
- }
- function update_star(i) {
- if (--starv[i]==25) star[i].style.clip="rect(1px, 4px, 4px, 1px)";
- if (starv[i]) {
- stary[i]+=1+Math.random()*3;
- if (stary[i]<shigh+sdown) {
- star[i].style.top=stary[i]+"px";
- starx[i]+=(i%5-2)/5;
- star[i].style.left=starx[i]+"px";
- }
- else {
- star[i].style.visibility="hidden";
- starv[i]=0;
- return;
- }
- }
- else {
- tinyv[i]=50;
- tiny[i].style.top=(tinyy[i]=stary[i])+"px";
- tiny[i].style.left=(tinyx[i]=starx[i])+"px";
- tiny[i].style.width="2px";
- tiny[i].style.height="2px";
- star[i].style.visibility="hidden";
- tiny[i].style.visibility="visible"
- }
- }
- function update_tiny(i) {
- if (--tinyv[i]==25) {
- tiny[i].style.width="1px";
- tiny[i].style.height="1px";
- }
- if (tinyv[i]) {
- tinyy[i]+=1+Math.random()*3;
- if (tinyy[i]<shigh+sdown) {
- tiny[i].style.top=tinyy[i]+"px";
- tinyx[i]+=(i%5-2)/5;
- tiny[i].style.left=tinyx[i]+"px";
- }
- else {
- tiny[i].style.visibility="hidden";
- tinyv[i]=0;
- return;
- }
- }
- else tiny[i].style.visibility="hidden";
- }
- document.onmousemove=mouse;
- function mouse(e) {
- set_scroll();
- y=(e)?e.pageY:event.y+sdown;
- x=(e)?e.pageX:event.x+sleft;
- }
- function set_scroll() {
- if (typeof(self.pageYOffset)=="number") {
- sdown=self.pageYOffset;
- sleft=self.pageXOffset;
- }
- else if (document.body.scrollTop || document.body.scrollLeft) {
- sdown=document.body.scrollTop;
- sleft=document.body.scrollLeft;
- }
- else if (document.documentElement && (document.documentElement.scrollTop || document.documentElement.scrollLeft)) {
- sleft=document.documentElement.scrollLeft;
- sdown=document.documentElement.scrollTop;
- }
- else {
- sdown=0;
- sleft=0;
- }
- }
- window.onresize=set_width;
- function set_width() {
- if (typeof(self.innerWidth)=="number") {
- swide=self.innerWidth;
- shigh=self.innerHeight;
- }
- else if (document.documentElement && document.documentElement.clientWidth) {
- swide=document.documentElement.clientWidth;
- shigh=document.documentElement.clientHeight;
- }
- else if (document.body.clientWidth) {
- swide=document.body.clientWidth;
- shigh=document.body.clientHeight;
- }
- }
- function createDiv(height, width) {
- var div=document.createElement("div");
- div.style.position="absolute";
- div.style.height=height+"px";
- div.style.width=width+"px";
- div.style.overflow="hidden";
- div.style.backgroundColor=colour;
- return (div);
- }
- // ]]>
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement