Advertisement
phositivethemes

FOR KAT :)

May 25th, 2016
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.68 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <script>var __pbpa = true;</script><script>var translated_warning_string = 'Warning: Never enter your Tumblr password unless \u201chttps://www.tumblr.com/login\u201d\x0ais the address in your web browser.\x0a\x0aYou should also see a green \u201cTumblr, Inc.\u201d identification in the address bar.\x0a\x0aSpammers and other bad guys use fake forms to steal passwords.\x0a\x0aTumblr will never ask you to log in from a user\u2019s blog.\x0a\x0aAre you absolutely sure you want to continue?';</script><script type="text/javascript" language="javascript" src="http://assets.tumblr.com/assets/scripts/pre_tumblelog.js?_v=4407ac63b04a974114891da19b333539"></script>
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  4. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  5.  
  6. <html>
  7. <head>
  8.  
  9. <!--WARNING DO NOT REMOVE THIS CREDIT!-->
  10.  
  11.  
  12. <!---
  13.  
  14.  
  15. // * THEME BY PHOSITIVE.TUMBLR.COM
  16. // * DON'T REMOVE THE CREDITS
  17. // * THANKS FOR USING MY THEMES ❤
  18.  
  19.  
  20. --->
  21.  
  22. <!--WARNING DO NOT REMOVE THIS CREDIT!-->
  23.  
  24.  
  25. <title>{title}</title>
  26. <link rel="shortcut icon" href="{Favicon}">
  27. <link rel="alternate" type="application/rss+xml" href="{RSS}">
  28. {block:Description}<meta name="description" content="{MetaDescription}"/>{/block:Description}
  29.  
  30.  
  31.  
  32. <meta name="color:background" content="#fff"/>
  33. <meta name="color:border" content="#f5f5f5"/>
  34. <meta name="color:posts" content="#fff"/>
  35. <meta name="color:ask box" content="#fbecec"/>
  36. <meta name="color:text" content="#000"/>
  37. <meta name="image:background" content=""/>
  38. <meta name="font:title font" content="'BenchNine', sans-serif;"/>
  39.  
  40.  
  41. <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
  42.  
  43.  
  44. <link href='https://fonts.googleapis.com/css?family=Muli' rel='stylesheet' type='text/css'>
  45. <link href='https://fonts.googleapis.com/css?family=Catamaran' rel='stylesheet' type='text/css'>
  46. <link href='https://fonts.googleapis.com/css?family=BenchNine' rel='stylesheet' type='text/css'>
  47.  
  48. {block:IndexPage}
  49. <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script><script src="http://static.tumblr.com/ikeq9mi/DfYl6o46t/scrolltotop.min.js"></script><a href="javascript:;" id="scrollToTop" title="back to top"><img src="https://41.media.tumblr.com/b3020558c61ab2d416c583a1d0321ca4/tumblr_o5ab8uL2x61votit6o9_75sq.png" width="20"></a>
  50. {/block:IndexPage}
  51.  
  52.  
  53. <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
  54.  
  55. <script src="http://static.tumblr.com/iuw14ew/VSQma1786/jquery.style-my-tooltips.js"></script>
  56.  
  57. <script>
  58. (function($){
  59. $(document).ready(function(){
  60. $("a[title]").style_my_tooltips({
  61. tip_follows_cursor:true,
  62. tip_delay_time:90,
  63. tip_fade_speed:600,
  64. attribute:"title"
  65. });
  66. });
  67. })(jQuery);
  68. </script>
  69.  
  70.  
  71. <script type="text/javascript"
  72. src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"></script>
  73.  
  74.  
  75. <style type="text/css">
  76. {CustomCSS}
  77. body{background-color:{color:background};background-image: url('{image:background}');background-repeat:repeat;background-attachment:fixed;background-position:left top;font-family: 'Muli', sans-serif;
  78. font-size:10px;cursor:url("http://i.imgur.com/2qleX.jpg"), auto !important;}
  79. iframe, img, embed, object, video {max-width: 100%;}
  80. a:link, a:visited{text-decoration:none;color:{color:text};-webkit-transition: all 0.7s ease;-moz-transition: all 0.7s ease;-o-transition: all 0.7s ease;}
  81. a:hover {cursor:url("http://i.imgur.com/2qleX.jpg"), auto !important;text-decoration: none;-webkit-transition: all 0.7s ease;-moz-transition: all 0.7s ease;-o-transition: all 0.7s ease;color:gray;}
  82.  
  83. #top {background-color:{color:border};position: fixed;left:0;right:0;top: 0;z-index:9999;}
  84.  
  85. #container{position:relative;min-height: 100%;
  86. min-width: 1024px;
  87.  
  88. /* Set up proportionate scaling */
  89. width: 100%;
  90. height: auto;
  91.  
  92. /* Set up positioning */
  93. position: fixed;
  94. left: 0;margin-top:7%;left:2.5%;{block:PermalinkPage}position:relative;width:500px;top:5%;left:28.5%;{/block:PermalinkPage}}
  95. .entry{position:relative;text-align:left;float:left;width:250px;height:auto;word-wrap: break-word;-webkit-animation: cssAnimation 1s 1 ease-in-out;-moz-animation: cssAnimation 1s 1 ease-in-out;-o-animation: cssAnimation 1s 1 ease-in-out;{/block:IndexPage}{block:PermalinkPage}width:500px;{/block:PermalinkPage}margin:20px;padding:15px;background-color:{color:posts};border:1px solid {color:border};}
  96.  
  97. .photo {position:relative;overflow:hidden;}
  98. .entry .photo img{-webkit-transition: all .7s ease-in-out;-moz-transition: all .7s ease-in-out;-ms-transition: all .7s ease-in-out;-o-transition: all .7s ease-in-out;transition: all .7s ease-in-out;position:relative;}
  99. .entry:hover .photo img{-webkit-transition: all .5s ease-in-out;-moz-transition: all .5s ease-in-out;-ms-transition: all .5s ease-in-out;-o-transition: all .5s ease-in-out;transition: all .5s ease-in-out;{block:IndexPage}opacity:0.8;{/block:IndexPage}}
  100.  
  101. #permpage{{block:PermalinkPage}width: 500px; height: 160px; overflow-y:scroll; position: relative;margin:5px;padding:2px;float:center;{/block:PermalinkPage}}
  102.  
  103. .blogtitle {position:fixed;width:auto;padding-left:10px;padding-right:10px;padding-bottom:5px;text-align:center;background:{color:border};z-index:999999999999;font-size:26px;letter-spacing:2px;top:4%;left:2%;font-family:{font:title font};}
  104.  
  105.  
  106. /*-------------------------------NAVIGATION---------------------------------*/
  107. .links {padding:5px;
  108. text-align:center;
  109. -webkit-transition: all 0.7s ease;
  110. -moz-transition: all 0.7s ease;
  111. -o-transition: all 0.7s ease;}
  112.  
  113. .links a{
  114.  
  115. padding:5px;
  116. padding-bottom:3px;
  117. text-decoration:none;
  118. color:{color:text};
  119. display: inline-block;
  120. position: relative;
  121. -webkit-transition: all 0.3s ease;
  122. -moz-transition: all 0.3s ease;
  123. -o-transition: all 0.3s ease;
  124. }
  125. .links a:hover{
  126. padding-bottom:3px;
  127. color:gray;
  128. -webkit-transition: all 0.3s ease;
  129. -moz-transition: all 0.3s ease;
  130. -o-transition: all 0.3s ease;
  131. }
  132.  
  133. h2{color:{color:text};font-family:{font:title font};text-align:center;font-weight:normal;font-size:16px;letter-spacing:2px;margin-top:5px;}
  134. h2 a{color:{color:text};}
  135. p {text-align:left;color:{color:text};}
  136.  
  137. .tmblr-iframe{margin-top:30px;margin-right:17px;z-index:9999999999999999999999999999999999!important;-webkit-filter: invert(100%);opacity: 0.7;font-size:9px;}
  138.  
  139. ::-webkit-scrollbar {height: 11px;width: 8px;border:3px solid white;}
  140. ::-webkit-scrollbar-thumb {background-color:{color:border};border:3px solid white;}
  141.  
  142. #scrollToTop:link,#scrollToTop:visited { color: transparent; background-color: transparent; display: none; position: fixed; bottom: 45px; right:12%;}
  143.  
  144. #s-m-t-tooltip {max-width:300px;margin:15px;padding:3px 8px 3px 8px;border:1px solid {color:border};border-radius: 0px;background:#fff;color:gray;z-index:9999999999999;font-size:8px;text-align: center;letter-spacing:1px;}
  145. .playerbg {position: absolute;left: 20px;top: 20px;width: 19px;height: 19px;background-color: #ffffff;padding: 10px;opacity: .4;filter: alpha(opacity=40);-moz-opacity: 0.4;-khtml-opacity: 0.4; transition: opacity .7s ease-in-out;-moz-transition: opacity .7s ease-in-out;-webkit-transition: opacity .7s ease-in-out;}.playerbg:hover {opacity: 1;filter: alpha(opacity=100);-moz-opacity: 1;-khtml-opacity: 1; }.uppbutton {position: relative;width: 19px; height: 19px;overflow: hidden;}.pbutton {position: absolute;top: -18px;left: 3px;}.audioimg {position: absolute;left: 0px;top: 0px;overflow: hidden;width: 79px;height: 79px;}.audioimg img {width: 100%;height: auto;}.trackdetails {width: auto;margin-top:20px;display:inline-block;margin-left: 90px;min-height: 85px;}
  146. .audiowrapper {position: relative;display:inline-block;}.quote{text-align:center;letter-spacing:1px;color:{color:text};font-size: 14px;font-family: 'Satisfy', cursive;}.post .notes {text-align: center;display: block;background: rgba(0, 0, 0, 0.4);color:#000000;padding: 3px;font-size: 9px;text-transform: lowercase;font-variant: small-caps;font-weight: bold;border-radius: 1px;}.post .notes li a{color:#000000;background: rgba(0, 0, 0, 0.1);}
  147. .ptext {display: block; font-family: {font:body text};font-size:8px;line-height:3px;letter-spacing:1px;text-transform:uppercase; text-align: right; background-color:transparent; margin: 2px;margin-top:5px;color:#aaa;font-style:italic;border-top:1px solid {color:border};padding-top:6px;{/block:IndexPage}
  148. {block:PermalinkPage}display:none;{/block:PermalinkPage}}
  149. #ppage{{block:PermalinkPage}width: 500px; height: 160px; overflow-y:scroll; position: relative;margin:5px;padding:2px;float:center;{/block:PermalinkPage}}
  150. .question{color:{color:text};padding:5px;font-size:10px;text-transform:uppercase;background:{color:ask box};}.asker a{color:{color:text};}.asker a:hover{text-decoration:underline;}#asker_portrait img{float:left; max-width:25px; margin-right:5px;border-radius:3px;border: 2px solid {color:border};}.answerer{font-style: oblique;}.answer{font-style: oblique;}.replies{font-style: oblique; }
  151. blockquote{
  152. padding:0px 0px 2px 5px;
  153. margin:0px 0px 2px 10px;
  154. border-left: 1px solid {color:text};}
  155.  
  156.  
  157. </style>
  158.  
  159.  
  160.  
  161. <!---masonry--->
  162. {block:indexpage}
  163. {block:NextPage}<div id="page-nav"><a href="{NextPage}"></a></div>{/block:NextPage}
  164. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
  165. <script type="text/javascript" src="http://static.tumblr.com/bswe8t6/UFVlryaq2/jquerymsnryv2.js"></script>
  166. <script type="text/javascript">
  167. $(window).load(function(){
  168. var $wall = $('#container');
  169. $wall.imagesLoaded(function(){
  170. $wall.masonry({
  171. itemSelector: '.entry, .entry_photo',
  172. isAnimated : false
  173. });
  174. });
  175.  
  176. $wall.infinitescroll({
  177. navSelector : '#page-nav',
  178. nextSelector : '#page-nav a',
  179. itemSelector : '.entry, .entry_photo',
  180. bufferPx : 2000,
  181. debug : false,
  182. errorCallback: function() {
  183. $('#infscr-loading').fadeOut('normal');
  184. }},
  185. function( newElements ) {
  186. var $newElems = $( newElements );
  187. $newElems.hide();
  188. $newElems.imagesLoaded(function(){
  189. $wall.masonry( 'appended', $newElems,{isAnimated: false}, function(){$newElems.fadeIn('slow');} );
  190. });
  191. }); $('#content').show(500);
  192. });
  193. </script>
  194. {/block:indexpage}
  195.  
  196. <!--end-->
  197.  
  198.  
  199. </head>
  200. <body>
  201.  
  202.  
  203. <!--blog border-->
  204. <div id="top">
  205. <div class="links">
  206.  
  207. <a href="/" title="home"><i class="fa fa-refresh" style="font-size:12px"></i> refresh</a>
  208.  
  209. <a href="/ask" class="linksbox" title="message"><i class="fa fa-envelope" style="font-size:11px"></i> message</a>
  210.  
  211. <a href="/archive" class="linksbox" title="archive"><i class="fa fa-folder" style="font-size:12px"></i> history</a>
  212.  
  213. <a href="https://www.youtube.com/channel/UCqJniPqkZs326A2lJuzC_1g" target="_blank" title="youtube"><i class="fa fa-youtube-play" aria-hidden="true" style="font-size:13px"></i> youtube</a>
  214.  
  215. <a href="https://twitter.com/CopyTheKat" target="_blank" title="twitter"><i class="fa fa-twitter" aria-hidden="true" style="font-size:13px"></i> twitter</a>
  216.  
  217. <a href="https://almost-lovable.tumblr.com" target="_blank" title="other blog"><i class="fa fa-heart" aria-hidden="true" style="font-size:11px"></i> other blog</a>
  218. </div>
  219. </div>
  220.  
  221.  
  222. <!--please don't remove this-->
  223. <style>#cred{right:10px;bottom:8px;position:fixed;font-size:13px;z-index:999999999999999;opacity:0.6;}
  224. #cred .phositive{opacity:1;color:{color:text};font-size:12px;bottom:8px;width:100%;text:phositivethemes;}
  225. </style>
  226. <div id="cred"><div class="phositive"><a href="http://phositivethemes.tumblr.com/" target="_blank"><i class="fa fa-plus" aria-hidden="true"></i></a></div></div>
  227.  
  228. <!--title-->
  229. <a href="/"><span title="{Description}"><div class="blogtitle">{Title}</span></div></a>
  230.  
  231.  
  232. <!--posts-->
  233. <div id="container">
  234. {block:Posts}
  235. <div class="entry">
  236. {block:Text}
  237. <div class="post text"> {block:Title}
  238. <h2>{Title}</h2>
  239. {/block:Title}{Body}
  240. </div>
  241. {block:IndexPage}
  242. <div class="ptext"> <a href="{Permalink}" title="notes">{NoteCountWithLabel}</a> <font color="#aaa">&middot</font> <a href="{ReblogURL}" title="reblog">Reblog</a> </div>
  243. {/block:IndexPage}
  244. {/block:Text}
  245.  
  246. {block:Photo}
  247. <div class="photo">
  248. {block:IndexPage}
  249. <a href="{Permalink}"> <img src="{PhotoURL-250}" alt="{PhotoAlt}"/></a>
  250. <div class="ptext"><center> <a href="{Permalink}" title="notes">{NoteCountWithLabel}</a> | <a href="{ReblogURL}" title="reblog">Reblog</a> | <a href="{Permalink}">{TimeAgo}</a></center></div>
  251. {/block:IndexPage}
  252. {block:PermalinkPage}
  253. <img src="{PhotoURL-500}" alt="{PhotoAlt}"/>
  254. </a> {/block:PermalinkPage} </div>
  255. {/block:Photo}
  256.  
  257. {block:Panorama}
  258. <div class="photo">{LinkOpenTag}<img src="{PhotoURL-Panorama}" alt="{PhotoAlt}"/>{LinkCloseTag}</div>
  259. <a href="{Permalink}"> <img src="{PhotoURL-250}" alt="{PhotoAlt}"/></a>
  260. <div id="post">
  261. <a href="{Permalink}" title="notes"><div class="perma1">{Notecountwithlabel}</div></a>
  262. <a href="{ReblogUrl}" title="reblog"><div class="perma2">Reblog</div></a>
  263. <a href="{Permalink}" title="{TimeAgo}"><div class="perma3">{TimeAgo}</div></a>
  264. </div>
  265. {/block:Panorama}
  266.  
  267.  
  268. {block:Photoset}
  269. <div class="post photoset">
  270. {block:IndexPage}
  271. <a href="{permalink}">{Photoset-250}</a>
  272. <div class="ptext"> <a href="{Permalink}" title="notes">{NoteCountWithLabel}</a> <font color="#aaa">&middot</font> <a href="{ReblogURL}" title="reblog">Reblog</a> </div>
  273. {/block:IndexPage}
  274. {block:PermalinkPage}{Photoset-500}{/block:PermalinkPage}
  275. </div>{/block:Photoset}
  276.  
  277.  
  278. {block:Quote}
  279. <h2 class="quote">"{Quote}"
  280. </h2>
  281. {block:IndexPage}<div class="ptext"><a href="{Permalink}" title="notes">{NoteCountWithLabel}</a> <font color="#aaa">&middot</font> <a href="{ReblogURL}" title="reblog">Reblog</a> </div> {/block:IndexPage}
  282. {/block:Quote}
  283.  
  284.  
  285. {block:Link}
  286. <div class="post link"><a href="{URL}" class="link" {Target}>{Name}</a>
  287. {block:Description}<div class="description">{Description}</div>
  288. {/block:Description}</div>
  289. {block:IndexPage}<div class="ptext"> <a href="{Permalink}" title="notes">{NoteCountWithLabel}</a> <font color="#aaa">&middot</font> <a href="{ReblogURL}" title="reblog">Reblog</a> </div>{/block:IndexPage}
  290. {/block:Link}
  291.  
  292.  
  293. {block:Chat}
  294. <div class="post chat"><code>
  295. {block:Title}<h3>{Title}</h3>{/block:Title}
  296. <div class="chat">{block:Lines}<div class="{Alt} user_{UserNumber}">
  297. {block:Label}<b> <span class="label">{Label}</span></b>{/block:Label}{Line} </div>{/block:Lines}</code></div> {block:IndexPage} <div class="ptext"> <a href="{Permalink}" title="notes">{NoteCountWithLabel}</a> <font color="#aaa">&middot</font> <a href="{ReblogURL}" title="reblog">Reblog</a> </div></div>{/block:IndexPage}
  298. {/block:Chat}
  299.  
  300.  
  301. {block:Video}<div class="post video">{Video-250}</div> {block:IndexPage} <div class="ptext"> <a href="{Permalink}" title="notes">{NoteCountWithLabel}</a> <font color="#aaa">&middot</font> <a href="{ReblogURL}" title="reblog">Reblog</a> </div>{/block:IndexPage}
  302. {/block:Video}
  303.  
  304.  
  305. {block:Audio}
  306. {block:AudioPlayer}<div class="audiowrapper">
  307. {block:AlbumArt}<div class="audioimg"><img src="{AlbumArtURL}"></div>{/block:AlbumArt}
  308. <div class="playerbg"><div class="uppbutton"><div class="pbutton">{AudioPlayerWhite}</div></div></div><div class="trackdetails">{block:TrackName}{TrackName}{/block:TrackName}<br/>
  309. {block:Artist}Artist: {Artist}{/block:Artist}<br/>
  310. {block:PlayCount}Played: {PlayCount} times {/block:PlayCount}
  311. {block:Album}Album: {Album}alt="unknown"{/block:Album}<br/></div></div>
  312. {/block:AudioPlayer}
  313.  
  314. <div class="ptext"> <a href="{Permalink}" title="notes">{NoteCountWithLabel}</a> <font color="#aaa">&middot</font> <a href="{ReblogURL}" title="reblog">Reblog</a></div>{/block:IndexPage}{/block:Audio}
  315. {block:Answer}<div class="question"><center><div id="asker_portrait"><img src="{AskerPortraitURL-48}"></div></center>
  316. <div class="asker">{Asker} asked: {Question}</div></div>
  317. {block:Answerer}
  318. <div class="answer"><div class="answerer">{Answerer}</div>{Answer}</div>
  319. {/block:Answerer}
  320. <div class="replies">{Replies}</div> {block:IndexPage} <div class="ptext"> <a href="{Permalink}" title="notes">{NoteCountWithLabel}</a> <font color="#aaa">&middot</font> <a href="{ReblogURL}" title="reblog">Reblog</a> </div> {/block:IndexPage}
  321. {/block:Answer}
  322. {block:PermalinkPagination}
  323. {block:PermalinkPage}
  324. {block:Caption}
  325. <div class="caption">{Caption}</div>
  326. {/block:Caption}
  327. <div id="ppage">
  328. {block:NoteCount}<i class="fa fa-sticky-note-o" aria-hidden="true"></i> This post has {NoteCountWithLabel}{/block:NoteCount}
  329. <br><i class="fa fa-clock-o" aria-hidden="true"></i> This was posted on {DayOfWeek}, {Month} {MonthNumber}, {Year} <br>
  330. {block:HasTags}<i class="fa fa-tag" aria-hidden="true"></i> Tagged as: {block:Tags}<a href={TagURL}> {Tag}, </a>
  331. {/block:Tags}
  332. {/block:HasTags}
  333. {block:PostNotes}
  334. {PostNotes-16}
  335. </div></div>
  336. {/block:PostNotes}
  337. {/block:PermalinkPage}
  338. {/block:PermalinkPagination}
  339. </div>
  340.  
  341. {/block:Posts}
  342. </div>
  343.  
  344.  
  345.  
  346.  
  347. </div></div>
  348. </body>
  349.  
  350. <script type="text/javascript">
  351. // <![CDATA[
  352. var colour="#E38AAE";
  353. var sparkles=50;
  354.  
  355. /****************************
  356. * Tinkerbell Magic Sparkle *
  357. * (c) 2005 mf2fm web-design *
  358. * http://www.mf2fm.com/rv *
  359. * DON'T EDIT BELOW THIS BOX *
  360. ****************************/
  361. var x=ox=400;
  362. var y=oy=300;
  363. var swide=800;
  364. var shigh=600;
  365. var sleft=sdown=0;
  366. var tiny=new Array();
  367. var star=new Array();
  368. var starv=new Array();
  369. var starx=new Array();
  370. var stary=new Array();
  371. var tinyx=new Array();
  372. var tinyy=new Array();
  373. var tinyv=new Array();
  374.  
  375. window.onload=function() { if (document.getElementById) {
  376. var i, rats, rlef, rdow;
  377. for (var i=0; i<sparkles; i++) {
  378. var rats=createDiv(3, 3);
  379. rats.style.visibility="hidden";
  380. document.body.appendChild(tiny[i]=rats);
  381. starv[i]=0;
  382. tinyv[i]=0;
  383. var rats=createDiv(5, 5);
  384. rats.style.backgroundColor="transparent";
  385. rats.style.visibility="hidden";
  386. var rlef=createDiv(1, 5);
  387. var rdow=createDiv(5, 1);
  388. rats.appendChild(rlef);
  389. rats.appendChild(rdow);
  390. rlef.style.top="2px";
  391. rlef.style.left="0px";
  392. rdow.style.top="0px";
  393. rdow.style.left="2px";
  394. document.body.appendChild(star[i]=rats);
  395. }
  396. set_width();
  397. sparkle();
  398. }}
  399.  
  400. function sparkle() {
  401. var c;
  402. if (x!=ox || y!=oy) {
  403. ox=x;
  404. oy=y;
  405. for (c=0; c<sparkles; c++) if (!starv[c]) {
  406. star[c].style.left=(starx[c]=x)+"px";
  407. star[c].style.top=(stary[c]=y)+"px";
  408. star[c].style.clip="rect(0px, 5px, 5px, 0px)";
  409. star[c].style.visibility="visible";
  410. starv[c]=50;
  411. break;
  412. }
  413. }
  414. for (c=0; c<sparkles; c++) {
  415. if (starv[c]) update_star(c);
  416. if (tinyv[c]) update_tiny(c);
  417. }
  418. setTimeout("sparkle()", 40);
  419. }
  420.  
  421. function update_star(i) {
  422. if (--starv[i]==25) star[i].style.clip="rect(1px, 4px, 4px, 1px)";
  423. if (starv[i]) {
  424. stary[i]+=1+Math.random()*3;
  425. if (stary[i]<shigh+sdown) {
  426. star[i].style.top=stary[i]+"px";
  427. starx[i]+=(i%5-2)/5;
  428. star[i].style.left=starx[i]+"px";
  429. }
  430. else {
  431. star[i].style.visibility="hidden";
  432. starv[i]=0;
  433. return;
  434. }
  435. }
  436. else {
  437. tinyv[i]=50;
  438. tiny[i].style.top=(tinyy[i]=stary[i])+"px";
  439. tiny[i].style.left=(tinyx[i]=starx[i])+"px";
  440. tiny[i].style.width="2px";
  441. tiny[i].style.height="2px";
  442. star[i].style.visibility="hidden";
  443. tiny[i].style.visibility="visible"
  444. }
  445. }
  446.  
  447. function update_tiny(i) {
  448. if (--tinyv[i]==25) {
  449. tiny[i].style.width="1px";
  450. tiny[i].style.height="1px";
  451. }
  452. if (tinyv[i]) {
  453. tinyy[i]+=1+Math.random()*3;
  454. if (tinyy[i]<shigh+sdown) {
  455. tiny[i].style.top=tinyy[i]+"px";
  456. tinyx[i]+=(i%5-2)/5;
  457. tiny[i].style.left=tinyx[i]+"px";
  458. }
  459. else {
  460. tiny[i].style.visibility="hidden";
  461. tinyv[i]=0;
  462. return;
  463. }
  464. }
  465. else tiny[i].style.visibility="hidden";
  466. }
  467.  
  468. document.onmousemove=mouse;
  469. function mouse(e) {
  470. set_scroll();
  471. y=(e)?e.pageY:event.y+sdown;
  472. x=(e)?e.pageX:event.x+sleft;
  473. }
  474.  
  475. function set_scroll() {
  476. if (typeof(self.pageYOffset)=="number") {
  477. sdown=self.pageYOffset;
  478. sleft=self.pageXOffset;
  479. }
  480. else if (document.body.scrollTop || document.body.scrollLeft) {
  481. sdown=document.body.scrollTop;
  482. sleft=document.body.scrollLeft;
  483. }
  484. else if (document.documentElement && (document.documentElement.scrollTop || document.documentElement.scrollLeft)) {
  485. sleft=document.documentElement.scrollLeft;
  486. sdown=document.documentElement.scrollTop;
  487. }
  488. else {
  489. sdown=0;
  490. sleft=0;
  491. }
  492. }
  493.  
  494. window.onresize=set_width;
  495. function set_width() {
  496. if (typeof(self.innerWidth)=="number") {
  497. swide=self.innerWidth;
  498. shigh=self.innerHeight;
  499. }
  500. else if (document.documentElement && document.documentElement.clientWidth) {
  501. swide=document.documentElement.clientWidth;
  502. shigh=document.documentElement.clientHeight;
  503. }
  504. else if (document.body.clientWidth) {
  505. swide=document.body.clientWidth;
  506. shigh=document.body.clientHeight;
  507. }
  508. }
  509.  
  510. function createDiv(height, width) {
  511. var div=document.createElement("div");
  512. div.style.position="absolute";
  513. div.style.height=height+"px";
  514. div.style.width=width+"px";
  515. div.style.overflow="hidden";
  516. div.style.backgroundColor=colour;
  517. return (div);
  518. }
  519. // ]]>
  520. </script>
  521.  
  522. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement