enchantingly

Revamp: Theme 04 - Time Stands Still 2.0

Jan 23rd, 2014
2,429
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.70 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="https://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  3.  
  4. <!--
  5. Theme 04 Revamp - "Time Stands Still 2.0" by Elowen (theghostoflove.tumblr.com)
  6.  
  7. Credit stays intact, please. If you get stuck, feel free to message me! Comments and suggestions are welcome.
  8. -->
  9.  
  10. <head>
  11.  
  12. <title>{title}</title>
  13. <link rel="shortcut icon" href="{Favicon}">
  14. <link rel="alternate" type="application/rss+xml" href="{RSS}">
  15. {block:Description}<meta name="description" content="{MetaDescription}" />{/block:Description}
  16.  
  17. <meta name="color:Background" content="#f3c2ad">
  18. <meta name="color:Body"content="#b97052">
  19. <meta name="color:Border" content="#a56144">
  20. <meta name="color:Chat1" content="#f3b89e">
  21. <meta name="color:Chat2" content="#e6a488">
  22. <meta name="color:Description" content="#915b45">
  23. <meta name="color:Imagebar" content="#c78e76">
  24. <meta name="color:Info Bg" content="#e4bcac">
  25. <meta name="color:Link" content="#945e47">
  26. <meta name="color:Link Hover" content="#c48c74">
  27. <meta name="color:Link Posts Bg" content="#f3b89e">
  28. <meta name="color:Links Bg" content="#cfa593">
  29. <meta name="color:Links Bg Hover" content="#966753">
  30. <meta name="color:Mouse Trail" content="#8d5239">
  31. <meta name="color:Navigation Bg" content="#d6a089">
  32. <meta name="color:Post" content="#edae93">
  33. <meta name="color:Scroll" content="#dfaa93">
  34. <meta name="color:Scroll Bg" content="#af7861">
  35. <meta name="color:Sidebar"content="#f1ccbc">
  36. <meta name="color:Title"content="#da9071">
  37.  
  38. <meta name="if:Cursive Fonts" content="1">
  39. <meta name="if:Energy Save" content="1">
  40. <meta name="if:Imagebar" content="0">
  41. <meta name="if:Infinite Scroll" content="0">
  42. <meta name="if:Posts 400" content="0">
  43. <meta name="if:Repeat Background" content="0">
  44. <meta name="if:Show Tags" content="1">
  45. <meta name="if:Trailing Mouse" content="1">
  46.  
  47. <meta name="image:Background" content="">
  48. <meta name="image:Imagebarpic1"content="">
  49. <meta name="image:Imagebarpic2"content="">
  50. <meta name="image:Imagebarpic3"content="">
  51. <meta name="image:Imagebar bg"content="">
  52. <meta name="image:Sidebar" content="">
  53. <meta name="image:Sidebar Background"content="">
  54.  
  55. <meta name="text:Subtitle" content="">
  56. <meta name="text:Link1" content="">
  57. <meta name="text:Link1URL" content="http://">
  58. <meta name="text:Link2" content="">
  59. <meta name="text:Link2URL" content="http://">
  60. <meta name="text:Link3" content="">
  61. <meta name="text:Link3URL" content="http://">
  62. <meta name="text:Link4" content="">
  63. <meta name="text:Link4URL" content="http://">
  64. <meta name="text:Link5" content="">
  65. <meta name="text:Link5URL" content="http://">
  66. <meta name="text:Link6" content="">
  67. <meta name="text:Link6URL" content="http://">
  68. <meta name="text:Link7" content="">
  69. <meta name="text:Link7URL" content="http://">
  70. <meta name="text:Link8" content="">
  71. <meta name="text:Link8URL" content="http://">
  72. <meta name="text:Link9" content="">
  73. <meta name="text:Link9URL" content="http://">
  74.  
  75. <style type="text/css">
  76. body {
  77. text-align:justify;
  78. color:{color:body};
  79. font-family:georgia;
  80. font-size:11px;
  81. background:{color:background} url('{image:background}');
  82. background-attachment: fixed;
  83. background-repeat: {block:IfNotRepeatBackground}no-repeat{/block:IfNotRepeatBackground};
  84. }
  85.  
  86. blockquote {border-left:2px solid {color:border}; padding-left:5px; margin:2px 2px 0px 10px}
  87.  
  88. ::-webkit-scrollbar {width:8px;height:auto;background:{color:scroll bg};}
  89. ::-webkit-scrollbar-thumb:vertical {background:{color:scroll};}
  90. ::-webkit-scrollbar-thumb:horizontal {background:{color:scroll};}
  91.  
  92. ::selection {color:{color:post};background-color: {color:body};}
  93. ::-moz-selection {color:{color:post};background-color: {color:body};}
  94. ::-webkit-selection {color:{color:post};background-color: {color:body};}
  95.  
  96. a {color:{color:link};text-decoration:none;-moz-transition-duration:0.5s;-webkit-transition-duration:0.5s;-o-transition-duration:0.5s;}
  97. a:hover {color:{color:link hover};}
  98.  
  99. #navigationbar {
  100. top:0px;
  101. left:0px;
  102. width:142px;
  103. height:100%;
  104. position:fixed;
  105. background-color:{color:navigation bg};
  106. }
  107. #linksbar {margin-top:80px;margin-left:-3px;}
  108. #linksbar a {
  109. display:block;
  110. width:100px;
  111. padding:6px 0px;
  112. font-size:9px;
  113. text-align:center;
  114. letter-spacing:1px;
  115. border:1px solid {color:border};
  116. text-transform:lowercase;
  117. background-color:{color:links bg};
  118. margin-top:10px;
  119. -webkit-transition: all 0.6s ease-in-out; -moz-transition: all 0.6s ease-in-out; -o-transition: all 0.6s ease-in-out;-ms-transition: all 0.6s ease-in-out; transition: all 0.6s ease-in-out;}
  120. #linksbar a:hover {font-style:italic; background-color:{color:links bg hover};}
  121.  
  122. #sidebar {
  123. top:0px;
  124. margin-left:134px;
  125. position:fixed;
  126. width:300px;
  127. height:100%;
  128. border-left:2px dotted {color:border};
  129. border-right:2px dotted {color:border};
  130. background-color:{color:sidebar};
  131. background-image:url('{image:Sidebar Background}');
  132. background-attachment:fixed;
  133. background-position:bottom left;
  134. background-repeat: {block:ifNotRepeatBackground}no-repeat{/block:IfNotRepeatBackground};
  135. background-size:300px;
  136. }
  137.  
  138. #sidebar img {
  139. margin:25px 0px -10px 0px;
  140. width:250px;
  141. border:2px solid {color:border};
  142. }
  143.  
  144. #description {
  145. color:{color:description};
  146. text-align:justify;
  147. width:250px;
  148. margin-top:40px;
  149. margin-left:25px;
  150. position:relative;
  151. }
  152.  
  153. #title {
  154. margin-top:30px;
  155. {block:ifCursiveFonts}font-family:'Euphoria Script';
  156. font-size:45px;{/block:ifCursiveFonts}
  157. {block:ifNotCursiveFonts}font-family:book antiqua;
  158. font-size:30px;
  159. font-style:italic;{/block:ifNotCursiveFonts}
  160. text-align:center;
  161. color:{color:Title};
  162. line-height:95%;
  163. }
  164. #title a {color:{color:Title};}
  165.  
  166. .secondtitle {
  167. text-transform:uppercase;
  168. font-family:cambria;
  169. font-size:12px;
  170. letter-spacing:2px;
  171. margin-top:0px;
  172. text-align:center;
  173. }
  174.  
  175. #entries {
  176. padding:10px;
  177. width:500px;
  178. margin-left:500px;
  179. margin-top:0px;
  180. }
  181.  
  182. #post{
  183. {block:ifNotPosts400}width:500px;{/block:ifNotPosts400}
  184. {block:ifPosts400}width:400px;{/block:ifPosts400}
  185. padding-bottom:20px;
  186. float:left;
  187. margin-top:-10px;
  188. margin-left:-50px;
  189. border:10px solid {color:background};
  190. padding:10px;
  191. background-color:{color:post};
  192. }
  193.  
  194. .pagi {
  195. display:block;
  196. text-align:center;
  197. width:130px;
  198. margin-top:8px;
  199. left:0px;
  200. position:fixed;
  201. padding:4px;
  202. font-family:georgia;
  203. font-size:30px;
  204. }
  205.  
  206. .album {position:absolute; width:100px; height:100px; margin-top:0px;}
  207. .album img {width:100px; height:100px;}
  208. .audio {display:block; position:absolute; width:30px; height:30px; margin-left:115px}
  209. .audiobox {height:100px;}
  210. .audiotext {text-align:center; padding-top:50px; {block:ifPosts400}width:400px;{/block:ifPosts400} {block:ifNotPosts400}width:500px;{/block:ifNotPosts400} }
  211. .pc {padding: 8px 13px;height: 13px;float: right;font-family: {font:georgia};font-size: 11px;text-transform: lowercase;}
  212.  
  213. .chat {border-left: 5px solid {color:border};margin: 3px 3px 0 3px;font-size: 11px;font-family:georgia;}
  214. .chat .lines {margin-left: 1px;}
  215. .chat .lines .line {background-color: {color:chat1};margin-bottom: 1px;padding: 3px 5px;}
  216. .chat .lines .line.even {background-color: {color:chat2}; }
  217.  
  218. #tags {min-height:14px; font-size:10px;padding:2px; margin-top:0px; font-style:italic;text-align:center; background-color:{color:info bg}; border-bottom:1px solid {color:border};border-left:1px solid {color:border};border-right:1px solid {color:border}}
  219.  
  220. #info {
  221. text-align:center;
  222. font-size: 10px;
  223. margin-top:15px;
  224. {block:ifNotPosts400}width:492px;{/block:ifNotPosts400}
  225. {block:ifPosts400}width:392px;{/block:ifPosts400}
  226. padding:3px;
  227. outline-offset:4px;
  228. border:1px solid {color:border};
  229. background-color:{color:info bg};
  230. }
  231.  
  232. .note {
  233. text-transform:normal;
  234. font-style:normal;
  235. letter-spacing:0px;
  236. font-size: 10px;
  237. text-align:left;
  238. line-height:80%;
  239. margin-left:-40px;
  240. }
  241.  
  242. .note li {
  243. list-style-type:none;
  244. text-align:left;
  245. padding:2px;
  246. margin:0px;
  247. -moz-transition-duration:0.5s;
  248. -webkit-transition-duration:0.5s;
  249. -o-transition-duration:0.5s;
  250. }
  251.  
  252. #texttitle {
  253. font-weight:normal;
  254. {block:ifCursiveFonts}font-family:'Pacifico';
  255. font-size:20px;{/block:ifCursiveFonts}
  256. {block:ifNotCursiveFonts}font-family:Garamond;
  257. font-size:20px;{/block:ifNotCursiveFonts}
  258. text-align:center;
  259. line-height:95%;
  260. margin:2px;
  261. }
  262.  
  263. #quote {
  264. margin:5px 0px;
  265. font-family:Garamond;
  266. font-size:18px;
  267. text-align:center;
  268. line-height:90%;
  269. letter-spacing:1px;
  270. }
  271.  
  272. #quotesource {
  273. {block:ifCursiveFonts}font-family:'Pacifico';
  274. font-size:16px;{/block:ifCursiveFonts}
  275. {block:ifNotCursiveFonts}font-family:'Garamond';
  276. font-size:16px;
  277. font-style:italic;{/block:ifNotCursiveFonts}
  278. text-align:right;
  279. padding:6px;
  280. font-weight:normal;
  281. }
  282.  
  283. #linkposts {
  284. margin-bottom:5px;
  285. padding-bottom:10px;
  286. padding-top:10px;
  287. font-family:book antiqua;
  288. font-size:16px;
  289. border:2px dotted {color:Border};
  290. background-color:{color:Link Posts Bg}
  291. }
  292.  
  293. #question {font-size:12px; letter-spacing:1px; text-transform:normal; padding:3px;}
  294. #asker{vertical-align:middle; text-align: right; vertical-align:bottom; margin-top:-10px; margin-left:0px; font-size:13px; letter-spacing:1px; text-transform:normal;padding-bottom:`0px;}
  295. #asker img{vertical-align:right; float:right; margin-left: 26px; margin-right: 25px; border:3px solid {color:border};}
  296.  
  297. #imagebar {position:fixed;background-color:{color:imagebar};background-image:url('{image:imagebar bg}');width:15px; height:100%; {block:ifNotPosts400}margin-left:1100px;{/block:ifNotPosts400} {block:ifPosts400}margin-left:1000px;{/block:ifPosts400} top:0px;}
  298. .imagebarpic1 img {border-radius:50%;width:135px;height:135px;margin-top:45px;margin-left:-66px;position:fixed;overflow:hidden;background-color:{color:imagebar};padding:2px;}
  299. .imagebarpic2 img {border-radius:50%;width:135px;margin-left:-66px;height:135px;margin-top:225px;position:fixed;overflow:hidden;background-color:{color:imagebar};padding:2px;}
  300. .imagebarpic3 img {border-radius:50%;width:135px;margin-left:-66px;height:135px;margin-top:405px;position:absolute;overflow:hidden;background-color:{color:imagebar};padding:2px;}
  301.  
  302. #s-m-t-tooltip {
  303. padding:5px 10px 5px 10px;
  304. margin:20px 14px 7px 10px;
  305. border:1px solid {color:border};
  306. background-color:{color:Body};
  307. font-family:georgia;
  308. font-style: normal;
  309. font-size:9px;
  310. letter-spacing:1px;
  311. color:{color:Post};
  312. z-index:99999999;
  313. }
  314.  
  315. #credit {
  316. z-index:99999999999;
  317. font-weight:bold;
  318. text-align:center;
  319. font-size:14px;
  320. font-family:'Montez';
  321. position:fixed;
  322. bottom:5px;
  323. right:5px;
  324. }
  325. #credit a {
  326. display:inline-block;
  327. height:20px;
  328. width:20px;
  329. background-color:{color:Post};
  330. color:{color:body};
  331. }
  332. #credit a:hover {
  333. background-color:{color:body};
  334. color:{color:Post};
  335. }
  336.  
  337. {CustomCSS}</style>
  338.  
  339. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
  340.  
  341. <script src="https://static.tumblr.com/iuw14ew/VSQma1786/jquery.style-my-tooltips.js"></script>
  342.  
  343. <script>
  344. (function($){
  345. $(document).ready(function(){
  346. $("a[title]").style_my_tooltips({
  347. tip_follows_cursor:true,
  348. tip_delay_time:0,
  349. tip_fade_speed:0,
  350. attribute:"title"
  351. });
  352. });
  353. })(jQuery);
  354. </script>
  355.  
  356. {block:ifInfiniteScroll}<script type="text/javascript" src="https://codysherman.tumblr.com/tools/infinite-scrolling/code"></script>{/block:ifInfiniteScroll}
  357.  
  358. {block:ifEnergySave}<script language="javascript" type="text/javascript" src="https://www.onlineleaf.com/savetheenvironment.js?time=120"></script>{/block:ifEnergySave}
  359.  
  360. <link href='https://fonts.googleapis.com/css?family=Pacifico|Euphoria+Script|Montez' rel='stylesheet' type='text/css'>
  361.  
  362. </head>
  363. <body>
  364. <div id="navigationbar"><div id="linksbar"><center>
  365. <a href="/">home</a>
  366. <a href="/ask">ask</a>
  367. {block:ifLink1}<a href="{text:Link1URL}">{text:Link1}</a>{/block:ifLink1}
  368. {block:ifLink2}<a href="{text:Link2URL}">{text:Link2}</a>{/block:ifLink2}
  369. {block:ifLink3}<a href="{text:Link3URL}">{text:Link3}</a>{/block:ifLink3}
  370. {block:ifLink4}<a href="{text:Link4URL}">{text:Link4}</a>{/block:ifLink4}
  371. {block:ifLink5}<a href="{text:Link5URL}">{text:Link5}</a>{/block:ifLink5}
  372. {block:ifLink6}<a href="{text:Link6URL}">{text:Link6}</a>{/block:ifLink6}
  373. {block:ifLink7}<a href="{text:Link7URL}">{text:Link7}</a>{/block:ifLink7}
  374. {block:ifLink8}<a href="{text:Link8URL}">{text:Link8}</a>{/block:ifLink8}
  375. {block:ifLink9}<a href="{text:Link9URL}">{text:Link9}</a>{/block:ifLink9}
  376. {block:HasPages}{block:Pages}<a href="{URL}" class="page">{Label}</a>{/block:Pages}{/block:HasPages}
  377. <a href="/archive">archive</a><BR></center>
  378. </div>
  379. {block:Pagination}<div class="pagi">{block:PreviousPage}<a href="{PreviousPage}">«</a>{/block:PreviousPage}
  380. {block:NextPage}<a href="{NextPage}">»</a>{/block:NextPage}</div>{/block:Pagination}
  381. </div></div>
  382.  
  383. <div id="sidebar">
  384. <div id="title"><a href="/">{Title}</a></div>
  385. <div class="secondtitle"><center>{text:subtitle}</center></div>
  386. <center>{block:ifSidebarImage}<img src="{image:sidebar}">{/block:ifSidebarImage}</center>
  387. <div id="description">
  388. {description}
  389. <br>
  390. </div></div>
  391. </div>
  392.  
  393. <div id="entries">
  394.  
  395. {block:TagPage}<div id="post">
  396. <div id="texttitle">Posts tagged "{Tag}"</div>
  397. </div>{/block:TagPage}
  398.  
  399. {block:ifInfiniteScroll}<div class="autopagerize_page_element">{/block:ifInfiniteScroll}
  400.  
  401. {block:Posts}
  402. <div id="post">
  403.  
  404. {block:Text}{block:Title}<div id="texttitle">{Title}</div>{/block:Title}{Body}{/block:Text}
  405.  
  406. {block:ifNotPosts400}
  407. {block:Photo}<center>{LinkOpenTag}<img src="{PhotoURL-500}" alt="{PhotoAlt}"/>{LinkCloseTag}</center>{block:Caption}{Caption}{/block:Caption}{/block:Photo}
  408. {/block:ifNotPosts400}
  409. {block:ifPosts400}
  410. {block:Photo}<center>{LinkOpenTag}<img src="{PhotoURL-400}" alt="{PhotoAlt}"/>{LinkCloseTag}</center>{block:Caption}{Caption}{/block:Caption}{/block:Photo}
  411. {/block:ifPosts400}
  412.  
  413. {block:ifNotPosts400}
  414. {block:Photoset}<center>{Photoset-500}</center>{block:Caption}{Caption}{/block:Caption}{/block:Photoset}
  415. {/block:ifNotPosts400}
  416. {block:ifPosts400}
  417. {block:Photoset}<center>{Photoset-400}</center>{block:Caption}{Caption}{/block:Caption}{/block:Photoset}
  418. {/block:ifPosts400}
  419.  
  420. {block:Quote}
  421. <div id="quote">“{Quote}”</div>
  422. <div align="right">
  423. {block:Source}<div id="quotesource">-{Source}</div>{/block:Source}
  424. </div>
  425. {/block:Quote}
  426.  
  427. {block:ifNotPosts400}
  428. {block:Video}{Video-500}{block:Caption}{Caption}{/block:Caption}{/block:Video}
  429. {/block:ifNotPosts400}
  430.  
  431. {block:ifPosts400}
  432. {block:Video}{Video-400}{block:Caption}{Caption}{/block:Caption}{/block:Video}
  433. {/block:ifPosts400}
  434.  
  435. {block:Link}<div id="linkposts">
  436. <a href="{URL}" class="link" {Target}>
  437. <center>{Name} →</center></a><BR>
  438. <center><small><small>{URL}</small></small></center>
  439. </div> <!--linkposts-->
  440. {block:Description}{Description}{/block:Description}
  441. {/block:Link}
  442.  
  443. {block:Chat}
  444. {block:Title}<h4>{Title}</h4>{/block:Title}
  445. <div class="chat">
  446. <div class="lines">
  447. {block:Lines}
  448. <div class="line {Alt}">{block:Label}<strong>{Label}</strong>{/block:Label} {Line}</div>
  449. {/block:Lines}
  450. </div>
  451. </div>
  452. {/block:Chat}
  453.  
  454. {block:Audio}
  455. {block:AlbumArt}
  456. <div class="album"><img src="{AlbumArtURL}"></div>
  457. {/block:AlbumArt}
  458. <div class="audio">{AudioPlayerWhite}</div><div class="pc">{block:PlayCount}{PlayCountWithLabel}{/block:PlayCount}</div>
  459. <div class="audiobox"><div class="audiotext">{block:TrackName}<i><big><big>"{TrackName}"</big></i>{/block:TrackName}{block:Artist}<br>by {Artist}{/block:Artist}</big></div></div>
  460. {block:Caption}{Caption}{/block:Caption}
  461. {/block:Audio}
  462.  
  463. {block:Answer}<div id="question">
  464. <b>{Question}</b></div><BR>
  465. <div id="asker"><img src="{AskerPortraitURL-30}">{Asker}</div><BR>
  466. <div style="border-top:1px dotted {color:border}">{Answer}</div>
  467. {/block:Answer}
  468.  
  469. {block:Date}<div id="info"><a href="{Permalink}" title="{DayOfMonth}{DayOfMonthSuffix} {ShortMonth} '{ShortYear}
  470. at {12Hour}.{Minutes}{ampm}">{TimeAgo} </a>{block:NoteCount} · <a href="{Permalink}">{NoteCountWithLabel} </a>{/block:NoteCount}{block:RebloggedFrom} via <a href="{ReblogParentURL}">{ReblogParentName} </a>{/block:RebloggedFrom} {block:Reblog} (©<a href="{ReblogRootURL}">{ReblogRootName}</a>) {/block:Reblog}·<a href="{ReblogURL}" target="_blank"> reblog</a></div>{/block:Date}
  471.  
  472. <center>{block:ifShowTags}{block:HasTags} <div id="tags"> {block:Tags}<a href="{TagURL}">#{Tag} </a>{/block:Tags}</div> {/block:HasTags}{/block:IfShowTags}</center>
  473. <div class="note"> {block:PostNotes}{PostNotes}{/block:PostNotes}
  474. </div></div>
  475. {/block:Posts}</div>
  476. {block:ifInfiniteScroll}</div>{/block:ifInfiniteScroll}
  477.  
  478. {block:ifImagebar}<div id="imagebar">
  479. <div class="imagebarpic1"><img src="{image:imagebarpic1}"></div>
  480. <div class="imagebarpic2"><img src="{image:imagebarpic2}"></div>
  481. <div class="imagebarpic3"><img src="{image:imagebarpic3}"></div>
  482. </div>
  483. {/block:ifImagebar}
  484.  
  485. <div id="credit"><a href="https://theghostoflove.tumblr.com" title="enchantingly">E</a>
  486. </div>
  487. </body>
  488.  
  489. <!---START OF SPARKLING MOUSE TRAIL--->
  490.  
  491. {block:ifTrailingMouse}<script type="text/javascript">
  492. // <![CDATA[
  493. var colour="{color:mouse trail}";
  494. var sparkles=120;
  495.  
  496. /****************************
  497. * Tinkerbell Magic Sparkle *
  498. * (c) 2005 mf2fm web-design *
  499. * https://www.mf2fm.com/rv *
  500. * DON'T EDIT BELOW THIS BOX *
  501. ****************************/
  502. var x=ox=400;
  503. var y=oy=300;
  504. var swide=800;
  505. var shigh=600;
  506. var sleft=sdown=0;
  507. var tiny=new Array();
  508. var star=new Array();
  509. var starv=new Array();
  510. var starx=new Array();
  511. var stary=new Array();
  512. var tinyx=new Array();
  513. var tinyy=new Array();
  514. var tinyv=new Array();
  515.  
  516. window.onload=function() { if (document.getElementById) {
  517. var i, rats, rlef, rdow;
  518. for (var i=0; i<sparkles; i++) {
  519. var rats=createDiv(3, 3);
  520. rats.style.visibility="hidden";
  521. document.body.appendChild(tiny[i]=rats);
  522. starv[i]=0;
  523. tinyv[i]=0;
  524. var rats=createDiv(5, 5);
  525. rats.style.backgroundColor="transparent";
  526. rats.style.visibility="hidden";
  527. var rlef=createDiv(1, 5);
  528. var rdow=createDiv(5, 1);
  529. rats.appendChild(rlef);
  530. rats.appendChild(rdow);
  531. rlef.style.top="2px";
  532. rlef.style.left="0px";
  533. rdow.style.top="0px";
  534. rdow.style.left="2px";
  535. document.body.appendChild(star[i]=rats);
  536. }
  537. set_width();
  538. sparkle();
  539. }}
  540.  
  541. function sparkle() {
  542. var c;
  543. if (x!=ox || y!=oy) {
  544. ox=x;
  545. oy=y;
  546. for (c=0; c<sparkles; c++) if (!starv[c]) {
  547. star[c].style.left=(starx[c]=x)+"px";
  548. star[c].style.top=(stary[c]=y)+"px";
  549. star[c].style.clip="rect(0px, 5px, 5px, 0px)";
  550. star[c].style.visibility="visible";
  551. starv[c]=50;
  552. break;
  553. }
  554. }
  555. for (c=0; c<sparkles; c++) {
  556. if (starv[c]) update_star(c);
  557. if (tinyv[c]) update_tiny(c);
  558. }
  559. setTimeout("sparkle()", 40);
  560. }
  561.  
  562. function update_star(i) {
  563. if (--starv[i]==25) star[i].style.clip="rect(1px, 4px, 4px, 1px)";
  564. if (starv[i]) {
  565. stary[i]+=1+Math.random()*3;
  566. if (stary[i]<shigh+sdown) {
  567. star[i].style.top=stary[i]+"px";
  568. starx[i]+=(i%5-2)/5;
  569. star[i].style.left=starx[i]+"px";
  570. }
  571. else {
  572. star[i].style.visibility="hidden";
  573. starv[i]=0;
  574. return;
  575. }
  576. }
  577. else {
  578. tinyv[i]=50;
  579. tiny[i].style.top=(tinyy[i]=stary[i])+"px";
  580. tiny[i].style.left=(tinyx[i]=starx[i])+"px";
  581. tiny[i].style.width="2px";
  582. tiny[i].style.height="2px";
  583. star[i].style.visibility="hidden";
  584. tiny[i].style.visibility="visible"
  585. }
  586. }
  587.  
  588. function update_tiny(i) {
  589. if (--tinyv[i]==25) {
  590. tiny[i].style.width="1px";
  591. tiny[i].style.height="1px";
  592. }
  593. if (tinyv[i]) {
  594. tinyy[i]+=1+Math.random()*3;
  595. if (tinyy[i]<shigh+sdown) {
  596. tiny[i].style.top=tinyy[i]+"px";
  597. tinyx[i]+=(i%5-2)/5;
  598. tiny[i].style.left=tinyx[i]+"px";
  599. }
  600. else {
  601. tiny[i].style.visibility="hidden";
  602. tinyv[i]=0;
  603. return;
  604. }
  605. }
  606. else tiny[i].style.visibility="hidden";
  607. }
  608.  
  609. document.onmousemove=mouse;
  610. function mouse(e) {
  611. set_scroll();
  612. y=(e)?e.pageY:event.y+sdown;
  613. x=(e)?e.pageX:event.x+sleft;
  614. }
  615.  
  616. function set_scroll() {
  617. if (typeof(self.pageYOffset)=="number") {
  618. sdown=self.pageYOffset;
  619. sleft=self.pageXOffset;
  620. }
  621. else if (document.body.scrollTop || document.body.scrollLeft) {
  622. sdown=document.body.scrollTop;
  623. sleft=document.body.scrollLeft;
  624. }
  625. else if (document.documentElement && (document.documentElement.scrollTop || document.documentElement.scrollLeft)) {
  626. sleft=document.documentElement.scrollLeft;
  627. sdown=document.documentElement.scrollTop;
  628. }
  629. else {
  630. sdown=0;
  631. sleft=0;
  632. }
  633. }
  634.  
  635. window.onresize=set_width;
  636. function set_width() {
  637. if (typeof(self.innerWidth)=="number") {
  638. swide=self.innerWidth;
  639. shigh=self.innerHeight;
  640. }
  641. else if (document.documentElement && document.documentElement.clientWidth) {
  642. swide=document.documentElement.clientWidth;
  643. shigh=document.documentElement.clientHeight;
  644. }
  645. else if (document.body.clientWidth) {
  646. swide=document.body.clientWidth;
  647. shigh=document.body.clientHeight;
  648. }
  649. }
  650.  
  651. function createDiv(height, width) {
  652. var div=document.createElement("div");
  653. div.style.position="absolute";
  654. div.style.height=height+"px";
  655. div.style.width=width+"px";
  656. div.style.overflow="hidden";
  657. div.style.backgroundColor=colour;
  658. return (div);
  659. }
  660. // ]]>
  661. </script>{/block:ifTrailingMouse}
  662. <!---END OF SPARKLING MOUSE TRAIL--->
  663.  
  664. </html>
Advertisement
Add Comment
Please, Sign In to add comment