enchantingly

Revamp: Theme 02 - Wonderstruck 2.0

Nov 4th, 2013
793
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.67 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 02 Revamp - "Wonderstruck 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:Ask and Link BG" content="#e7c5f9">
  18. <meta name="color:Background" content="#e7c4f1">
  19. <meta name="color:Body" content="#8b30bc">
  20. <meta name="color:Border" content="#933ac3">
  21. <meta name="color:Chat1" content="#e7c5f9">
  22. <meta name="color:Chat2" content="#e1b3fa">
  23. <meta name="color:Description" content="#a21beb">
  24. <meta name="color:Entries" content="#9028c9">
  25. <meta name="color:Imagebar" content="#c16bf0">
  26. <meta name="color:Info Bg" content="#f1cbfd">
  27. <meta name="color:Link" content="#760fad">
  28. <meta name="color:Link Hover" content="#d18cf7">
  29. <meta name="color:Links Bg" content="#c671f5">
  30. <meta name="color:Links Bg Hover" content="#7109aa">
  31. <meta name="color:Mouse Trail" content="#ad21f8">
  32. <meta name="color:Navigation Bg" content="#8607cc">
  33. <meta name="color:Post" content="#dbaff3">
  34. <meta name="color:Scroll" content="#d589fd">
  35. <meta name="color:Scroll Bg" content="#ad21f8">
  36. <meta name="color:Sidebar" content="#8607cc">
  37. <meta name="color:Sidebar Image Border" content="#bf5ef3">
  38. <meta name="color:Title" content="#9522d3">
  39.  
  40. <meta name="if:No Repeat Side Background" content="0">
  41. <meta name="if:No Repeat Background" content="0">
  42. <meta name="if:Imagebar" content="0">
  43. <meta name="if:Infinite Scroll" content="0">
  44. <meta name="if:Posts 400" content="0">
  45. <meta name="if:Trailing Mouse" content="1">
  46. <meta name="if:Show Tags" content="1">
  47.  
  48. <meta name="image:Background" content="">
  49. <meta name="image:Imagebar 1" content="">
  50. <meta name="image:Imagebar 2" content="">
  51. <meta name="image:Imagebar 3" content="">
  52. <meta name="image:Imagebar Bg" content="">
  53. <meta name="image:Sidebar" content="">
  54. <meta name="image:Sidebar Bg" content="">
  55.  
  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.  
  71. <style type="text/css">
  72.  
  73. /**BASICS**/
  74.  
  75. {block:PermalinkPage}
  76. iframe#tumblr_controls {
  77. text-align:center;
  78. height:200px;
  79. width:140px;
  80. top:0px;
  81. right:0px!important;
  82. position:fixed !important;
  83. }
  84. {/block:PermalinkPage}
  85.  
  86. body {
  87. text-align:justify;
  88. font-family:georgia;
  89. font-size:11px;
  90. color:{color:Body};
  91. background:{color:background} url('{image:background}');
  92. background-attachment:fixed;
  93. background-repeat:{block:IfNoRepeatBackground}no-repeat{/block:IfNoRepeatBackground};}
  94.  
  95. h1 {font-family: 'Pacifico', cursive;font-size:14px;text-align:right;line-height:95%;letter-spacing:1px;padding:6px; font-weight:normal;}
  96. h2 {font-family:Garamond;font-size:18px;text-align:center;line-height:90%;letter-spacing:1px;}
  97. h3 {font-family: 'Garamond';font-size:20px;text-align:center;line-height:95%;letter-spacing:1px;padding:4px;font-weight:bold;margin:0px}
  98.  
  99. blockquote {border-left:2px solid {color:border}; padding-left:5px; margin:0px 2px 0px 10px}
  100.  
  101. ::-webkit-scrollbar {width:10px;background:{color:scroll bg};}
  102. ::-webkit-scrollbar-corner {background:{color:scroll};}
  103. ::-webkit-scrollbar-thumb:vertical {background:{color:scroll};}::-webkit-scrollbar-thumb:horizontal {background:{color:scroll};}
  104.  
  105. ::selection {color:{color:post};background-color: {color:body};}
  106. ::-moz-selection {color:{color:post};background-color: {color:body};}
  107. ::-webkit-selection {color:{color:post};background-color:{color:body};}
  108.  
  109. b {font-weight:bold;}
  110. i {font-style:italic;}
  111. u {text-decoration:underline;}
  112.  
  113. a {color:{color:link};text-decoration:none;-moz-transition-duration:0.5s;-webkit-transition-duration:0.5s;-o-transition-duration:0.5s;}
  114. a:hover {color:{color:link hover};}
  115.  
  116. /**THEME STUFF**/
  117.  
  118. #sidebar {
  119. top:0px;
  120. left:0px;
  121. position:fixed;
  122. width:300px;
  123. height:100%;
  124. background-color:{color:sidebar};
  125. background-image:url('{image:Sidebar Bg}');
  126. background-attachment:fixed;
  127. background-position:bottom left;
  128. background-repeat: {block:IfNoRepeatSideBackground}no-repeat{/block:IfNoRepeatSideBackground};
  129. background-size:300px;
  130. }
  131.  
  132. #sidebar img {
  133. width:250px;
  134. border:2px solid {color:sidebar image border}
  135. }
  136.  
  137. #title {
  138. margin:20px 0px 20px 0px;
  139. font-family: 'Montez', cursive;
  140. text-align:center;
  141. font-size:40px;
  142. color:{color:Title};
  143. }
  144.  
  145. #title a {
  146. color:{color:Title};
  147. }
  148.  
  149. #desc {
  150. font-size:11px;
  151. text-align:justify;
  152. width:250px;
  153. margin-top:30px;
  154. margin-left:25px;
  155. position:relative;
  156. color:{color:description};
  157. }
  158.  
  159. #entries {
  160. margin-left:340px;
  161. padding:10px;
  162. position:absolute;
  163. {block:ifNotPosts400}width:540px;{/block:ifNotPosts400}
  164. {block:ifPosts400}width:440px;{/block:ifPosts400}
  165. background-color:{color:entries};
  166. }
  167.  
  168. #post {
  169. margin:10px;
  170. padding:10px;
  171. float:left;
  172. {block:ifNotPosts400}width:500px;{/block:ifNotPosts400}
  173. {block:ifPosts400}width:400px;{/block:ifPosts400}
  174. background-color:{color:post};
  175. }
  176.  
  177. #tagpage {
  178. font-family: 'Garamond';
  179. font-size:20px;
  180. text-align:center;
  181. line-height:95%;
  182. letter-spacing:1px;
  183. font-weight:bold;
  184. margin:10px;
  185. padding:10px;
  186. float:left;
  187. {block:ifNotPosts400}width:500px;{/block:ifNotPosts400}
  188. {block:ifPosts400}width:400px;{/block:ifPosts400}
  189. background-color:{color:post};
  190. }
  191.  
  192. .pagi {
  193. margin-top:-20px;
  194. text-align:center;
  195. font-size:30px;
  196. }
  197.  
  198. #info {
  199. font-size:10px;
  200. text-align:center;
  201. margin-top:15px;
  202. padding:3px;
  203. border-bottom:1px solid {color:border};
  204. text-transform:normal;
  205. background-color:{color:info bg};
  206. {block:ifNotPosts400}width:494px;{/block:ifNotPosts400}
  207. {block:ifPosts400}width:394px;{/block:ifPosts400}
  208. }
  209.  
  210. #tags {
  211. font-size:10px;
  212. min-height:14px;
  213. padding:2px;
  214. margin-top:0px;
  215. font-style:italic;
  216. text-align:center;
  217. background-color:{color:info bg}
  218. }
  219.  
  220. .note {
  221. text-transform:normal;
  222. font-style:normal;
  223. letter-spacing:0px;
  224. font-size: 10px;
  225. text-align:left;
  226. line-height:10%;
  227. margin-left:-40px;
  228. }
  229.  
  230. .note li {
  231. list-style-type:none;
  232. padding:10px 25px 10px 25px;
  233. text-align:left;
  234. margin:0px;
  235. -moz-transition-duration:0.5s;
  236. -webkit-transition-duration:0.5s;
  237. -o-transition-duration:0.5s;
  238. }
  239.  
  240. #navigation {
  241. margin-top:-8px;
  242. width:142px;
  243. position:fixed;
  244. z-index:3;
  245. {block:ifNotPosts400}margin-left:930px;{/block:ifNotPosts400}
  246. {block:ifPosts400}margin-left:840px;{/block:ifPosts400}
  247. background-color:{color:navigation bg};
  248. }
  249.  
  250. #navtitle {
  251. background-color:{color:navigation bg};
  252. opacity:1;
  253. height:15px;
  254. width:120px;
  255. font-size:9px;
  256. color:{color:link hover};
  257. text-align:center;
  258. text-transform:lowercase;
  259. letter-spacing:3px;
  260. padding:11px;
  261. line-height:20px;
  262. position:fixed;
  263. z-index:3;
  264. }
  265.  
  266. #navigation:hover #navlinks {z-index:5; opacity:1; padding-top:280px;}
  267. #navlinks {
  268. opacity:0;
  269. margin-top:-240px;
  270. -webkit-transition: all 1.3s ease-in-out; -moz-transition: all 1.3s ease-in-out; -o-transition: all 1.3s ease-in-out; -ms-transition: all 1.3s ease-in-out;transition: all 1.3s ease-in-out;
  271. }
  272. #navlinks a {
  273. display:block;
  274. width:100px;
  275. height:25px;
  276. font-size:9px;
  277. text-align:center;
  278. letter-spacing:1px;
  279. border:1px solid {color:border};
  280. text-transform:lowercase;
  281. background-color:{color:Links Bg};
  282. margin-left:20px;
  283. line-height:25px;
  284. -webkit-transition: all 0.6s ease-in-out; -moz-transition: all 0.6s ease-in-out; -o-transition: all 0.6s ease-in-out;
  285. -ms-transition: all 0.6s ease-in-out; transition: all 0.6s ease-in-out; z-index:5;
  286. }
  287. #navlinks a:hover {
  288. font-style:italic;
  289. letter-spacing:1px;
  290. background-color:{color:links bg hover};
  291. }
  292.  
  293. /**POST TYPES**/
  294.  
  295. #question {
  296. font-weight:normal;
  297. font-size:12px;
  298. letter-spacing:1px;
  299. padding:10px;
  300. background-color:{color:Ask And Link BG};
  301. -moz-border-radius-topright: 10px; -moz-border-radius-bottomright: 10px; -moz-border-radius-bottomleft: 10px; -webkit-border-radius: 10px 10px 10px 10px; border-radius: 10px 10px 10px 10px;
  302. }
  303.  
  304. #triangle {
  305. font-size:45px;
  306. margin-top:-20px;
  307. margin-left:18px;
  308. color:{color:Ask And Link BG}
  309. }
  310.  
  311. #asker {
  312. text-align: left;
  313. font-size:13px;
  314. letter-spacing:1px;
  315. padding-bottom:10px;
  316. margin-top:-20px;
  317. }
  318.  
  319. #asker img {
  320. vertical-align:left;
  321. float:left;
  322. margin-left:60px;
  323. margin-right:10px;
  324. margin-top:-10px;
  325. border:2px solid {color:Border};
  326. }
  327.  
  328. #linkposts {
  329. margin-bottom:5px;
  330. padding-bottom:10px;
  331. padding-top:10px;
  332. font-family:book antiqua;
  333. font-size:16px;
  334. border:2px dotted {color:Border};
  335. background-color:{color:Ask And Link BG}
  336. }
  337.  
  338. .album {position:absolute; margin-top:0px; {block:ifnotposts400}width:100px; height:100px;{/block:ifnotposts400} {block:ifposts400}width:75px; height:75px; {/block:ifposts400}}
  339. .album img {{block:ifnotposts400}width:100px; height:100px;{/block:ifnotposts400} {block:ifposts400}width:75px; height:75px; {/block:ifposts400}}
  340. .audio {display:block; position:absolute; width:100px; height:425px; {block:ifnotposts400}margin-left:148px{/block:ifnotposts400}; {block:ifposts400}margin-left:85px;{/block:ifposts400}}
  341. .audiobox {height:100px;z-index:-1; margin-left:100px;}
  342. .audiotext {text-align:center; padding-top:50px; max-width:200px;overflow:hidden;font-family:cambria;{block:ifPosts400}width:400px;{/block:ifPosts400} {block:ifnotPosts400}width:500px;{/block:ifnotPosts400} }
  343. .pc {padding: 8px 13px;height: 13px;float: right;font-family:cambria;font-size: 12px;text-transform: lowercase;z-index:-1}
  344. .pc a {text-decoration: none;}
  345.  
  346. .chat {border-left: 5px solid {color:border};margin: 3px 3px 0 3px;font-size: 11px;font-family:georgia;}
  347. .chat .lines {margin-left: 1px;}
  348. .chat .lines .line {background-color: {color:chat1};margin-bottom: 1px;padding: 3px 5px;}
  349. .chat .lines .line.even {background-color: {color:chat2}; }
  350.  
  351. #imagebar {
  352. position:fixed;
  353. background-color:{color:imagebar};
  354. background-image:url('{image:imagebar bg}');
  355. width:155px;
  356. height:100%;
  357. right:0px;
  358. top:0px;
  359. }
  360. .imagebar1 img {
  361. height:135px;
  362. width:135px;
  363. border-radius:50%;
  364. margin-left:10px;
  365. margin-top:45px;
  366. }
  367. .imagebar2 img {
  368. height:135px;
  369. width:135px;
  370. border-radius:50%;
  371. margin-left:10px;
  372. margin-top:45px
  373. }
  374. .imagebar3 img {
  375. height:135px;
  376. width:135px;
  377. border-radius:50%;
  378. margin-left:10px;
  379. margin-top:45px;
  380. }
  381.  
  382. /**PLEASE DO NOT EDIT, THANK YOU**/
  383. #credit {position:fixed;font-size:8px;font-weight:normal;line-height:150%;letter-spacing:0px;right:10px;bottom:10px;text-transform:normal;text-align:center;}
  384. #credit a {padding:3px;color:{color:body};background-color:{color:post};-moz-transition-duration:0.5s;-webkit-transition-duration:0.5s;-o-transition-duration:0.5s;}
  385. #credit a:hover {color:{color:post};background-color:{color:body};}
  386.  
  387. {CustomCSS}</style>
  388.  
  389. <link href='https://fonts.googleapis.com/css?family=Pacifico' rel='stylesheet' type='text/css'>
  390. <link href='https://fonts.googleapis.com/css?family=Montez' rel='stylesheet' type='text/css'>
  391. {block:ifInfiniteScroll}<script type="text/javascript" src="https://codysherman.tumblr.com/tools/infinite-scrolling/code"></script>{/block:ifInfiniteScroll}
  392.  
  393. </head>
  394. <body>
  395. <div id="sidebar">
  396. <div id="title"><a href="/">{Title}</a></div>
  397.  
  398. <center>{block:ifSidebarImage}
  399. <img src="{image:Sidebar}">
  400. {/block:ifSidebarImage}</center>
  401.  
  402. <div id="desc">
  403. <center>{block:Pagination}
  404. <div class="pagi">
  405. {block:PreviousPage}
  406. <a href="{PreviousPage}">«</a>
  407. {/block:PreviousPage}
  408. {block:NextPage}
  409. <a href="{NextPage}">»</a>
  410. {/block:NextPage}
  411. </div><!--pagi-->
  412. {/block:Pagination}</center>
  413. {Description}
  414. </div> <!--desc-->
  415. </div> <!--sidebar-->
  416.  
  417. <div id="entries">
  418.  
  419. {block:TagPage}<div id="tagpage">
  420. Posts tagged "{Tag}"</div>
  421. {/block:TagPage}
  422.  
  423.  
  424. {block:ifInfiniteScroll}<div class = "autopagerize_page_element" >{/block:ifInfiniteScroll}
  425.  
  426. {block:Posts}
  427. <div id="post">
  428.  
  429. {block:Text}
  430. {block:Title}
  431. <h3>{Title}</h3>
  432. {/block:Title}
  433. {Body}
  434. {/block:Text}
  435.  
  436. {block:ifNotPosts400}
  437. {block:Photo}<center>{LinkOpenTag}
  438. <img src="{PhotoURL-500}" alt="{PhotoAlt}">
  439. {LinkCloseTag}</center>
  440. {block:Caption}{Caption}{/block:Caption}
  441. {/block:Photo}
  442. {/block:ifNotPosts400}
  443. {block:ifPosts400}
  444. {block:Photo}<center>{LinkOpenTag}
  445. <img src="{PhotoURL-400}" alt="{PhotoAlt}">
  446. {LinkCloseTag}</center>
  447. {block:Caption}{Caption}{/block:Caption}
  448. {/block:Photo}
  449. {/block:ifPosts400}
  450.  
  451. {block:ifNotPosts400}
  452. {block:Photoset}<center>{Photoset-500}</center>
  453. {block:Caption}{Caption}{/block:Caption}
  454. {/block:Photoset}
  455. {/block:ifNotPosts400}
  456. {block:ifPosts400}
  457. {block:Photoset}<center>{Photoset-400}</center>
  458. {block:Caption}{Caption}{/block:Caption}
  459. {/block:Photoset}
  460. {/block:ifPosts400}
  461.  
  462. {block:Quote}
  463. <h2>“{Quote}”</h2>
  464. <div align="right">
  465. {block:Source}<h1>-{Source}</h1>{/block:Source}
  466. </div>
  467. {/block:Quote}
  468.  
  469. {block:ifNotPosts400}
  470. {block:Video}{Video-500}
  471. {block:Caption}{Caption}{/block:Caption}{/block:Video}
  472. {/block:ifNotPosts400}
  473. {block:ifPosts400}
  474. {block:Video}{Video-400}
  475. {block:Caption}{Caption}{/block:Caption}{/block:Video}
  476. {/block:ifPosts400}
  477.  
  478. {block:Link}<div id="linkposts">
  479. <a href="{URL}" class="link" {Target}>
  480. <center>{Name} →</center></a><BR>
  481. <center><small><small>{URL}</small></small></center>
  482. </div> <!--linkposts-->
  483. {block:Description}{Description}{/block:Description}
  484. {/block:Link}
  485.  
  486. {block:Chat}
  487. {block:Title}<h3>{Title}</h3>{/block:Title}
  488. <div class="chat">
  489. <div class="lines">
  490. {block:Lines}
  491. <div class="line {Alt}">
  492. {block:Label}<strong>{Label}</strong>{/block:Label}
  493. {Line}</div>
  494. {/block:Lines}
  495. </div>
  496. </div>
  497. {/block:Chat}
  498.  
  499. {block:Audio}
  500. {block:AlbumArt}
  501. <div class="album"><img src="{AlbumArtURL}"></div>
  502. {/block:AlbumArt}
  503. <div class="audio">{AudioPlayerWhite}</div>
  504. <div class="pc">
  505. {block:PlayCount}{PlayCountWithLabel}{/block:PlayCount}
  506. </div>
  507. <center><div class="audiobox">
  508. <div class="audiotext">{block:TrackName}
  509. <i><big><big>"{TrackName}"</big></i>{/block:TrackName}
  510. {block:Artist}<br>by {Artist}{/block:Artist}</big></div>
  511. </div></center>
  512. {block:Caption}{Caption}{/block:Caption}
  513. {/block:Audio}
  514.  
  515. {block:Answer}<div id="question">
  516. <big>{Question}</big></div>
  517. <div id="triangle">◥</div>
  518. <BR>
  519. <div id="asker">
  520. <img src="{AskerPortraitURL-30}">{Asker}</div><BR>
  521. {Answer}{/block:Answer}
  522.  
  523. {block:Date}
  524. <div id="info">
  525. <a href="{Permalink}">{TimeAgo}</a>
  526. {block:NoteCount} · <a href="{Permalink}">
  527. {NoteCountWithLabel} </a>{/block:NoteCount}
  528.  
  529. {block:RebloggedFrom}<a href="{ReblogParentURL}">
  530. · via {ReblogParentName}</a>
  531. {/block:RebloggedFrom}
  532.  
  533. {block:Reblog}<a href="{ReblogRootURL}">
  534. (©{ReblogRootName}</a>)
  535. {/block:Reblog}
  536.  
  537. · <a href="{ReblogURL}" target="_blank"> reblog</a>
  538. </div>{/block:Date}
  539.  
  540. <center>{block:ifShowTags}{block:HasTags} <div id="tags"> {block:Tags}<a href="{TagURL}">#{Tag} </a>{/block:Tags}</div> {/block:HasTags}{/block:IfShowTags}</center>
  541. <div class="note"> {block:PostNotes}{PostNotes}{/block:PostNotes}
  542. </div></div>
  543. {/block:Posts}</div> {block:ifInfiniteScroll}</div>{/block:ifInfiniteScroll}
  544.  
  545. <div id="navigation"><div id="navtitle">navigation</div><div id="navlinks">
  546. <a href="/">home</a>
  547. <a href="/ask">ask</a>
  548. {block:ifLink1}<a href="{text:Link1URL}">{text:Link1}</a>{/block:ifLink1}
  549. {block:ifLink2}<a href="{text:Link2URL}">{text:Link2}</a>{/block:ifLink2}
  550. {block:ifLink3}<a href="{text:Link3URL}">{text:Link3}</a>{/block:ifLink3}
  551. {block:ifLink4}<a href="{text:Link4URL}">{text:Link4}</a>{/block:ifLink4}
  552. {block:ifLink5}<a href="{text:Link5URL}">{text:Link5}</a>{/block:ifLink5}
  553. {block:ifLink6}<a href="{text:Link6URL}">{text:Link6}</a>{/block:ifLink6}
  554. {block:ifLink7}<a href="{text:Link7URL}">{text:Link7}</a>{/block:ifLink7}
  555. {block:HasPages}{block:Pages}<a href="{URL}" class="page">{Label}</a>{/block:Pages}{/block:HasPages}
  556. <a href="/archive">archive</a><BR>
  557. </div></div></div>
  558.  
  559. {block:ifImagebar}
  560. <div id="imagebar">
  561. <div class="imagebar1"><img src="{image:imagebar 1}"></div>
  562. <div class="imagebar2"><img src="{image:imagebar 2}"></div>
  563. <div class="imagebar3"><img src="{image:imagebar 3}"></div>
  564. {/block:ifImagebar}
  565.  
  566. <!--PLEASE DO NOT REMOVE-->
  567. <div id="credit"><a href="https://theghostoflove.tumblr.com">CREDIT</a>
  568. </div>
  569. </body>
  570.  
  571. <!---START OF SPARKLING MOUSE TRAIL--->
  572.  
  573. {block:ifTrailingMouse}<script type="text/javascript">
  574.  
  575. // <![CDATA[
  576. var colour="{color:mouse trail}";
  577. var sparkles=120;
  578.  
  579. /****************************
  580. * Tinkerbell Magic Sparkle *
  581. * (c) 2005 mf2fm web-design *
  582. * https://www.mf2fm.com/rv *
  583. * DON'T EDIT BELOW THIS BOX *
  584. ****************************/
  585. var x=ox=400;
  586. var y=oy=300;
  587. var swide=800;
  588. var shigh=600;
  589. var sleft=sdown=0;
  590. var tiny=new Array();
  591. var star=new Array();
  592. var starv=new Array();
  593. var starx=new Array();
  594. var stary=new Array();
  595. var tinyx=new Array();
  596. var tinyy=new Array();
  597. var tinyv=new Array();
  598.  
  599. window.onload=function() { if (document.getElementById) {
  600. var i, rats, rlef, rdow;
  601. for (var i=0; i<sparkles; i++) {
  602. var rats=createDiv(3, 3);
  603. rats.style.visibility="hidden";
  604. document.body.appendChild(tiny[i]=rats);
  605. starv[i]=0;
  606. tinyv[i]=0;
  607. var rats=createDiv(5, 5);
  608. rats.style.backgroundColor="transparent";
  609. rats.style.visibility="hidden";
  610. var rlef=createDiv(1, 5);
  611. var rdow=createDiv(5, 1);
  612. rats.appendChild(rlef);
  613. rats.appendChild(rdow);
  614. rlef.style.top="2px";
  615. rlef.style.left="0px";
  616. rdow.style.top="0px";
  617. rdow.style.left="2px";
  618. document.body.appendChild(star[i]=rats);
  619. }
  620. set_width();
  621. sparkle();
  622. }}
  623.  
  624. function sparkle() {
  625. var c;
  626. if (x!=ox || y!=oy) {
  627. ox=x;
  628. oy=y;
  629. for (c=0; c<sparkles; c++) if (!starv[c]) {
  630. star[c].style.left=(starx[c]=x)+"px";
  631. star[c].style.top=(stary[c]=y)+"px";
  632. star[c].style.clip="rect(0px, 5px, 5px, 0px)";
  633. star[c].style.visibility="visible";
  634. starv[c]=50;
  635. break;
  636. }
  637. }
  638. for (c=0; c<sparkles; c++) {
  639. if (starv[c]) update_star(c);
  640. if (tinyv[c]) update_tiny(c);
  641. }
  642. setTimeout("sparkle()", 40);
  643. }
  644.  
  645. function update_star(i) {
  646. if (--starv[i]==25) star[i].style.clip="rect(1px, 4px, 4px, 1px)";
  647. if (starv[i]) {
  648. stary[i]+=1+Math.random()*3;
  649. if (stary[i]<shigh+sdown) {
  650. star[i].style.top=stary[i]+"px";
  651. starx[i]+=(i%5-2)/5;
  652. star[i].style.left=starx[i]+"px";
  653. }
  654. else {
  655. star[i].style.visibility="hidden";
  656. starv[i]=0;
  657. return;
  658. }
  659. }
  660. else {
  661. tinyv[i]=50;
  662. tiny[i].style.top=(tinyy[i]=stary[i])+"px";
  663. tiny[i].style.left=(tinyx[i]=starx[i])+"px";
  664. tiny[i].style.width="2px";
  665. tiny[i].style.height="2px";
  666. star[i].style.visibility="hidden";
  667. tiny[i].style.visibility="visible"
  668. }
  669. }
  670.  
  671. function update_tiny(i) {
  672. if (--tinyv[i]==25) {
  673. tiny[i].style.width="1px";
  674. tiny[i].style.height="1px";
  675. }
  676. if (tinyv[i]) {
  677. tinyy[i]+=1+Math.random()*3;
  678. if (tinyy[i]<shigh+sdown) {
  679. tiny[i].style.top=tinyy[i]+"px";
  680. tinyx[i]+=(i%5-2)/5;
  681. tiny[i].style.left=tinyx[i]+"px";
  682. }
  683. else {
  684. tiny[i].style.visibility="hidden";
  685. tinyv[i]=0;
  686. return;
  687. }
  688. }
  689. else tiny[i].style.visibility="hidden";
  690. }
  691.  
  692. document.onmousemove=mouse;
  693. function mouse(e) {
  694. set_scroll();
  695. y=(e)?e.pageY:event.y+sdown;
  696. x=(e)?e.pageX:event.x+sleft;
  697. }
  698.  
  699. function set_scroll() {
  700. if (typeof(self.pageYOffset)=="number") {
  701. sdown=self.pageYOffset;
  702. sleft=self.pageXOffset;
  703. }
  704. else if (document.body.scrollTop || document.body.scrollLeft) {
  705. sdown=document.body.scrollTop;
  706. sleft=document.body.scrollLeft;
  707. }
  708. else if (document.documentElement && (document.documentElement.scrollTop || document.documentElement.scrollLeft)) {
  709. sleft=document.documentElement.scrollLeft;
  710. sdown=document.documentElement.scrollTop;
  711. }
  712. else {
  713. sdown=0;
  714. sleft=0;
  715. }
  716. }
  717.  
  718. window.onresize=set_width;
  719. function set_width() {
  720. if (typeof(self.innerWidth)=="number") {
  721. swide=self.innerWidth;
  722. shigh=self.innerHeight;
  723. }
  724. else if (document.documentElement && document.documentElement.clientWidth) {
  725. swide=document.documentElement.clientWidth;
  726. shigh=document.documentElement.clientHeight;
  727. }
  728. else if (document.body.clientWidth) {
  729. swide=document.body.clientWidth;
  730. shigh=document.body.clientHeight;
  731. }
  732. }
  733.  
  734. function createDiv(height, width) {
  735. var div=document.createElement("div");
  736. div.style.position="absolute";
  737. div.style.height=height+"px";
  738. div.style.width=width+"px";
  739. div.style.overflow="hidden";
  740. div.style.backgroundColor=colour;
  741. return (div);
  742. }
  743. // ]]>
  744.  
  745. </script>{/block:ifTrailingMouse}
  746. <!---END OF SPARKLING MOUSE TRAIL--->
  747.  
  748. </html>
Advertisement
Add Comment
Please, Sign In to add comment