Advertisement
sofiiayala

Theme 15 by Sofi for Tumblr

Jan 25th, 2014
2,469
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.31 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  3. <head><title>{Title}</title>
  4. <link rel="shortcut icon" href="{Favicon}">
  5. <link rel="alternate" type="application/rss+xml" href="{RSS}">
  6. {block:Description}<meta name="description" content="{MetaDescription}" />{/block:Description}
  7.  
  8. <!----Theme 15 by castiiel. DON'T STEAL NOR COVER THE CREDIT, CUSTOMIZE IT AS MUCH AS YOU WANT BUT DON'T STEAL IT, IT'S ILLEGAL --->
  9.  
  10. <meta name="color:Background" content="#ffffff"/>
  11. <meta name="color:Text" content="#838282"/>
  12. <meta name="color:Link" content="#b8b8b8"/>
  13. <meta name="color:border" content="#ccc"/>
  14. <meta name="color:scrollbar" content="#999"/>
  15.  
  16. <meta name="image:sidebar" content=""/>
  17. <meta name="image:background" content=""/>
  18.  
  19. <meta name="if:500px posts" content="0"/>
  20. <meta name="if:infinite scroll" content="0">
  21. <meta name="if:credit on the left" content="0"/>
  22. <meta name="if:repeat background" content="0"/>
  23. <meta name="if:info on hover" content="0"/>
  24. <meta name="if:tags on hover" content="1"/>
  25. <meta name="if:show notes on click" content="0"/>
  26. <meta name="if:show via and source" content="0"/>
  27.  
  28. <meta name="text:link 1" content="Link 1"/>
  29. <meta name="text:link 1 url" content="/"/>
  30. <meta name="text:link 2" content="Link 2"/>
  31. <meta name="text:link 2 url" content="/"/>
  32. <meta name="text:link 3" content="Link 3"/>
  33. <meta name="text:link 3 url" content="/"/>
  34. <meta name="text:link 4" content="Link 4"/>
  35. <meta name="text:link 4 url" content="/"/>
  36.  
  37. {block:IfInfiniteScroll}
  38. <script type="text/javascript" src="http://codysherman.com/tools/infinite-scrolling/code"></script>
  39. {/block:IfInfiniteScroll}
  40.  
  41. {block:ifShownotesonclick}
  42. <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
  43.  
  44. <script src="jquery.js"></script>
  45. <script>
  46. $(document).ready(function(){
  47. $("#notes").click(function(){
  48. $("ol.notes").slideToggle("slow");
  49. });
  50. });
  51. </script>
  52. {/block:ifShownotesonclick}
  53.  
  54. <script type="text/javascript">
  55. WebFontConfig = {
  56. google: { families: [ 'Lato:300,400:latin' ] }
  57. };
  58. (function() {
  59. var wf = document.createElement('script');
  60. wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +
  61. '://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
  62. wf.type = 'text/javascript';
  63. wf.async = 'true';
  64. var s = document.getElementsByTagName('script')[0];
  65. s.parentNode.insertBefore(wf, s);
  66. })(); </script>
  67.  
  68.  
  69. <style type="text/css">
  70.  
  71. #dhtmltooltip{
  72. position: absolute;
  73. padding:7px;
  74. padding-bottom: 4px;
  75. padding-top: 4px;
  76. margin-left:70px;
  77. margin-top: -7px;
  78. border: 1px solid {color:border};
  79. background: {color:background}; /* change the background color */
  80. font-family:helvetica; /* change the font */
  81. font-size:7px; /* change the font size */
  82. letter-spacing:1px; /* change the letter spacing */
  83. text-transform:uppercase; /* can be uppercase, lowercase, none*/
  84. font-style: bold;
  85. color:{color:text}; /* change the text color */
  86. visibility: hidden;
  87. z-index: 100;
  88. /*Remove below line to remove shadow. Below line should always appear last within this CSS*/
  89. filter: progid:DXImageTransform.Microsoft.Shadow(color=gray,direction=135);
  90. }
  91.  
  92. ::-webkit-scrollbar {width: 4px; height: 4px; background: {color:background}; }
  93. ::-webkit-scrollbar-thumb { background-color: {color:scrollbar}; -webkit-border-radius: 0ex; }
  94.  
  95. body {
  96. background:{color:background};
  97. margin:0px;
  98. color:{color:text};
  99. font-family:'Lato', sans-serif;
  100. letter-spacing: 0.8px;
  101. line-height: 130%;
  102. font-size:10px;
  103. background-image:url("{image:background}");
  104. background-size:cover;
  105. {block:ifRepeatbackground}
  106. background-size:auto;
  107. background-repeat: repeat;
  108. {block:ifRepeatbackground}
  109. background-attachment:fixed;
  110. background-position: top left;
  111. }
  112.  
  113. body, a, a:hover {cursor: url(http://media.tumblr.com/tumblr_lqs4idHqTZ1qfoi4t.png), auto;}
  114.  
  115. a {
  116. text-decoration:none;
  117. outline:none;
  118. -moz-outline-style:none;
  119. color:{color:link};
  120. }
  121.  
  122. img {
  123. border:none;
  124. }
  125.  
  126. p {
  127. margin-left: 0px;
  128. margin-right: 0px;
  129. word-wrap: break-word;
  130. }
  131.  
  132. pre {
  133. white-space: pre-wrap;
  134. white-space: -moz-pre-wrap;
  135. white-space: -pre-wrap;
  136. white-space: -o-pre-wrap;
  137. word-wrap: break-word;
  138. }
  139.  
  140. blockquote {
  141. padding-left:5px;
  142. border-left:1px solid;
  143. margin-left: 0px;
  144. margin-right: 0px;
  145. }
  146.  
  147. h1 {
  148. font-size:17px;
  149. font-family:'Lato', sans-serif;
  150. font-weight: 300;
  151. letter-spacing: 1.5px;
  152. line-height:130%;
  153. text-align: left;
  154. }
  155.  
  156. h2 {
  157. font-size:15px;
  158. font-family:'Lato', sans-serif;
  159. font-weight: 300;
  160. letter-spacing: 1.5px;
  161. line-height:130%;
  162. text-align: left;
  163. }
  164.  
  165. #entries {
  166. width:400px;
  167. {block:if500pxposts}
  168. width:500px;
  169. {/block:if500pxposts}
  170. margin-left:550px;
  171. margin-top:70px;
  172. margin-bottom:30px;
  173. }
  174.  
  175. #post {
  176. width:400px;
  177. {block:if500pxposts}
  178. width:500px;
  179. {/block:if500pxposts}
  180. margin-top: 80px;
  181. margin-bottom: 50px;
  182. }
  183.  
  184. #post:hover #tags {
  185. opacity: 1;
  186. margin-right:0px;
  187. transition: all 0.3s linear;
  188. -webkit-transition: opacity 0.3s linear;
  189. -webkit-transition: all 0.3s linear;
  190. -moz-transition: all 0.3s linear;
  191. {block:ifInfoonhover}
  192. -webkit-transition-delay: 0.2s; /* Safari */
  193. transition-delay: 0.2s;
  194. {/block:ifInfoonhover}
  195. }
  196.  
  197. #post:hover #info {
  198. opacity: 1;
  199. margin-right:0px;
  200. transition: all 0.3s linear;
  201. -webkit-transition: opacity 0.3s linear;
  202. -webkit-transition: all 0.3s linear;
  203. -moz-transition: all 0.3s linear;
  204. }
  205.  
  206. .textp img{
  207. max-width:400px;
  208. height:auto;
  209. {block:if500pxposts}
  210. max-width:500px;
  211. {/block:if500pxposts}
  212. }
  213.  
  214. #sidebar {
  215. width:200px;
  216. position:fixed;
  217. margin-left:250px;
  218. margin-top:80px;
  219. text-align:center;
  220. }
  221.  
  222. #sidebarimage {
  223. width 200px;
  224. }
  225.  
  226. #sidebarimage img {
  227. width:200px;
  228. margin-bottom: 20px;
  229. }
  230.  
  231. #description {
  232. width: 200px;
  233. font-size: 9px;
  234. width:180px;
  235. margin-left:10px;
  236. letter-spacing: 1.5px;
  237. color: {color:text};
  238. line-height: 180%;
  239. text-align: center;
  240. font-family: 'Lato', sans-serif;
  241. padding-top:6px;
  242. }
  243.  
  244. #links {
  245. width: 200px;
  246. background-color: transparent;
  247. letter-spacing: 1px;
  248. font-size: 9px;
  249. padding-bottom: 6px;
  250. letter-spacing:2px;
  251. border-bottom: double {color:border}; 4px;
  252. text-transform: uppercase;
  253. }
  254.  
  255. #links a {
  256. margin-left: 5px;
  257. margin-right: 5px;
  258. }
  259.  
  260. #links a:hover {
  261. text-decoration:line-through;
  262. }
  263.  
  264. #pagination {
  265. width:400px;
  266. {block:if500pxposts}
  267. width:500px;
  268. {/block:if500pxposts}
  269. margin-left:550px;
  270. padding-top: 5px;
  271. line-height: 130%;
  272. text-align:center;
  273. font-size:10px;
  274. bottom:0px;
  275. padding-bottom: 40px;
  276. color:{color:text};
  277. letter-spacing: 2px;
  278. font-weight:bolder;
  279. font-family: 'Lato', sans-serif;
  280. -webkit-transition: opacity 0.3s linear;
  281. -webkit-transition: all 0.3s linear;
  282. -moz-transition: all 0.3s linear;
  283. transition: all 0.3s linear;
  284. }
  285.  
  286. #pagination a {
  287. color:{color:text};
  288. border-bottom: 1px solid {color:background};
  289. padding-bottom: 3px;
  290. opacity: 1;
  291. -webkit-transition: opacity 0.3s linear;
  292. -webkit-transition: all 0.3s linear;
  293. -moz-transition: all 0.3s linear;
  294. transition: all 0.3s linear;
  295. }
  296.  
  297. #pagination a:hover {
  298. border-bottom: 1px solid {color:border};
  299. padding-bottom: 3px;
  300. opacity: 1;
  301. -webkit-transition: opacity 0.3s linear;
  302. -webkit-transition: all 0.3s linear;
  303. -moz-transition: all 0.3s linear;
  304. transition: all 0.3s linear;
  305. }
  306.  
  307. #info {
  308. text-align:right;
  309. letter-spacing:0.5px;
  310. margin-top:15px;
  311. font-family:'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;
  312. opacity:1;
  313. {block:ifInfoonhover}
  314. opacity:0;
  315. margin-right:20px;
  316. {block:permalinkpage}
  317. opacity: 1;
  318. margin-right:0px;
  319. {/block:permalinkpage}
  320. {/block:ifInfoonhover}
  321. -webkit-transition: opacity 0.3s linear;
  322. -webkit-transition: all 0.3s linear;
  323. -moz-transition: all 0.3s linear;
  324. transition: all 0.3s linear;
  325. }
  326.  
  327. .question{
  328. text-align: center;
  329. margin-bottom:10px;
  330. padding: 8px 0px;
  331. border-bottom: 1px solid {color:border};
  332. }
  333.  
  334. .answer{
  335. text-align: left;
  336. }
  337.  
  338. .asker a {
  339. color: {color:text};
  340. }
  341.  
  342. .sources
  343. {
  344. filter:alpha(opacity=0);
  345. opacity:0;
  346. font-size: 0px;
  347. }
  348.  
  349. #quote {
  350. font-size:17px;
  351. font-family:'Lato', sans-serif;
  352. font-weight: 300;
  353. letter-spacing: 1.5px;
  354. line-height:130%;
  355. text-align: center;
  356. }
  357.  
  358. #cover {
  359. position: relative;
  360. z-index: 1;
  361. height: 80px;
  362. float:left;
  363. margin:4px;
  364. box-shadow:0px 0px 5px {color:shadow};
  365. }
  366.  
  367. #button {
  368. width:20px;
  369. height:30px;
  370. overflow: hidden;
  371. position: relative;
  372. z-index: 99;
  373. margin: 15px 24px 13px 16px;
  374. }
  375.  
  376. #buttons {
  377. background-color: #fff;
  378. position: absolute;
  379. z-index: 99;
  380. margin-top: 15px;
  381. margin-left: 15px;
  382. opacity: 0;
  383. -webkit-transition: opacity 0.5s linear;
  384. -webkit-transition: all 0.5s linear;
  385. -moz-transition: all 0.5s linear;
  386. -o-transition: all 0.5s linear;
  387. }
  388.  
  389. #post:hover #buttons {
  390. opacity:0.5;
  391. }
  392.  
  393. #musicinfo {
  394. margin-left: 110px;
  395. font-size:10px;
  396. min-height:70px;
  397. text-align:left;
  398. position: relative;
  399. }
  400.  
  401. #notes {
  402. text-transform: uppercase;
  403. font-size:12px;
  404. font-family:'Lato', sans-serif;
  405. letter-spacing:1.6px;
  406. font-weight:bolder;
  407. border-bottom: solid 1px {color:border};
  408. text-align:left;
  409. padding-bottom:7px;
  410. {block:ifShownotesonclick}
  411. cursor:help!Important;
  412. {/block:ifShownotesonclick}
  413. }
  414.  
  415. ol.notes {
  416. padding: 0px;
  417. margin: 15px 0px;
  418. list-style-type: none;
  419. width:400px;
  420. {block:if500pxposts}
  421. width:500px;
  422. {/block:if500pxposts}
  423. {block:ifShownotesonclick}
  424. display:none;
  425. {/block:ifShownotesonclick}
  426. }
  427.  
  428. ol.notes li.note {
  429. padding: 5px 0px;
  430. }
  431.  
  432. ol.notes li.note img.avatar {
  433. vertical-align: -8px;
  434. margin-right: 10px;
  435. width: 16px;
  436. height: 16px;
  437. padding:2px;
  438. border:1px solid {color:border};
  439. border-radius: 100%;
  440. }
  441.  
  442. ol.notes li.note .answer_content {
  443. font-weight: normal;
  444. padding: 2px 8px;
  445. margin: 10px 0px 0px 25px;
  446. display:block;
  447. border-left:1px solid;
  448. }
  449.  
  450. ol.notes li.note blockquote {
  451. padding: 2px 8px;
  452. margin: 10px 0px 0px 25px;
  453. }
  454.  
  455. ol.notes li.note blockquote a {
  456. text-decoration: none;
  457. }
  458.  
  459. #credit {
  460. font-size:12px;
  461. font-family: Helvetica, sans-serif;
  462. letter-spacing:1.5px;
  463. line-height: 100%;
  464. z-index:99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999;
  465. position:fixed;
  466. {block:ifnotCreditontheleft}
  467. right:-100px;
  468. {/block:ifnotCreditontheleft}
  469. {block:ifCreditontheleft}
  470. left:-100px;
  471. {/block:ifCreditontheleft}
  472. bottom:10px;
  473. transition: all 0.9s linear;
  474. -webkit-transition: opacity 0.9s linear;
  475. -webkit-transition: all 0.9s linear;
  476. -moz-transition: all 0.9s linear;
  477. }
  478.  
  479. #credit a {
  480. color:{color:text};
  481. {block:ifnotCreditontheleft}
  482. margin-left:15px;
  483. {/block:ifnotCreditontheleft}
  484. {block:ifCreditontheleft}
  485. margin-right:18px;
  486. {/block:ifCreditontheleft}
  487. transition: all 0.9s linear;
  488. -webkit-transition: opacity 0.9s linear;
  489. -webkit-transition: all 0.9s linear;
  490. -moz-transition: all 0.9s linear;
  491. }
  492.  
  493. #credit:hover {
  494. {block:ifnotCreditontheleft}
  495. right:10px;
  496. {/block:ifnotCreditontheleft}
  497. {block:ifCreditontheleft}
  498. left:10px;
  499. {/block:ifCreditontheleft}
  500. transition: all 0.9s linear;
  501. -webkit-transition: opacity 0.9s linear;
  502. -webkit-transition: all 0.9s linear;
  503. -moz-transition: all 0.9s linear;
  504. }
  505.  
  506. #tags {
  507. font-size: 9px;
  508. margin-top: 5px;
  509. text-align: right;
  510. font-weight:400;
  511. {block:ifTagsonhover}
  512. opacity: 0;
  513. margin-right:20px;
  514. {/block:ifTagsonhover}
  515. font-family:'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;
  516. letter-spacing: 0.5px;
  517. transition: all 0.3s linear;
  518. -webkit-transition: opacity 0.3s linear;
  519. -webkit-transition: all 0.3s linear;
  520. -moz-transition: all 0.3s linear;
  521. {block:permalinkpage}
  522. opacity: 1;
  523. margin-right:0px;
  524. {/block:permalinkpage}
  525. }
  526.  
  527. #tags a {
  528. color: {color:text};
  529. margin-left: 10px;
  530. }
  531.  
  532. #tags a:hover {
  533. color: {color:link};
  534. transition: all 0.3s linear;
  535. -webkit-transition: opacity 0.3s linear;
  536. -webkit-transition: all 0.3s linear;
  537. -moz-transition: all 0.3s linear;
  538. }
  539.  
  540. {CustomCSS}</style></head><body>
  541.  
  542. <div id="sidebar">
  543.  
  544. <div id="sidebarimage"><img src="{image:sidebar}"></div>
  545.  
  546. <div id="links">
  547. <a href="{text:link 1 url}">{text:link 1}</a>
  548. <a href="{text:link 2 url}">{text:link 2}</a>
  549. <a href="{text:link 3 url}">{text:link 3}</a>
  550. <a href="{text:link 4 url}">{text:link 4}</a>
  551. </div>
  552.  
  553. <div id="description">{Description}</div>
  554.  
  555. </div>
  556.  
  557. <div id="entries">
  558. <div class="autopagerize_page_element">
  559. {block:Posts}
  560.  
  561. {block:ContentSource}
  562.  
  563. <!--{SourceURL}{block:SourceLogo}<img src="{BlackLogoURL}"
  564.  
  565. width="{LogoWidth}" height="{LogoHeight}" alt="{SourceTitle}" />
  566.  
  567. {/block:SourceLogo}
  568.  
  569. {block:NoSourceLogo}{SourceLink}{/block:NoSourceLogo}-->
  570.  
  571. {/block:ContentSource}{block:ReblogParent}{/block:ReblogParent}
  572.  
  573. <div id="post">
  574.  
  575. {block:Text}<span class="textp"><h1>{block:Title}{Title}{/block:Title}</h1>{Body}</span>{/block:Text}
  576.  
  577. {block:ifnot500pxposts}
  578. {block:Photo}{LinkOpenTag}<center><img src="{PhotoURL-400}"></center>{LinkCloseTag}{block:Caption}{Caption}{/block:Caption}{/block:Photo}
  579. {/block:ifnot500pxposts}
  580.  
  581. {block:if500pxposts}
  582. {block:Photo}{LinkOpenTag}<center><img src="{PhotoURL-500}"></center>{LinkCloseTag}{block:Caption}{Caption}{/block:Caption}{/block:Photo}
  583. {/block:if500pxposts}
  584.  
  585. {block:ifnot500pxposts}
  586. {block:Photoset}{Photoset-400}{block:Caption}{Caption}{/block:Caption}{/block:Photoset}
  587. {/block:ifnot500pxposts}
  588.  
  589. {block:if500pxposts}
  590. {block:Photoset}{Photoset-500}{block:Caption}{Caption}{/block:Caption}{/block:Photoset}
  591. {/block:if500pxposts}
  592.  
  593. {block:Quote}{block:Source}<b><div style="font-family: courier new; font-size: 13px; text-align: center;">{Source}</div><br><br></b>{/block:Source}<div id="quote">"{Quote}"</div>{/block:Quote}
  594.  
  595. {block:Link}<h1><a href="{URL}" {Target}>{Name}</a></h1>{block:Description}{Description}{/block:Description}{/block:Link}
  596.  
  597. {block:Chat}{block:Title}<h1>{Title}</h1>{/block:Title}{block:Lines}{block:Label}<b>{Label}</b>{/block:Label} {Line}<br><br>{/block:Lines}{/block:Chat}
  598.  
  599. {block:Audio}
  600. <div id="buttons"><div id="button">{block:AudioPlayer}{AudioPlayerWhite}{/block:AudioPlayer}</div></div>
  601. {block:AlbumArt}<img src="{AlbumArtURL}" id="cover">{/block:AlbumArt}
  602. <div id="musicinfo">
  603. {block:TrackName}<div style="padding-top: 12px; text-transform: uppercase; font-size:12px; font-family:'Lato', sans-serif; letter-spacing:1.6px;"><b>{TrackName}</b></div>{/block:Trackname}<br>
  604. {block:Artist}by {Artist}{/block:Artist}<br><br>
  605. {block:PlayCount}►played {PlayCount} times{/block:PlayCount}
  606. </div>
  607. <div style="margin-top:23px;">{block:caption}{Caption}{/block:caption}</div>
  608. {/block:Audio}
  609.  
  610. {block:ifnot500pxposts}
  611. {block:Video}{Video-400}{block:Caption}{Caption}{/block:Caption}{/block:Video}
  612. {/block:ifnot500pxposts}
  613.  
  614. {block:if500pxposts}
  615. {block:Video}{Video-500}{block:Caption}{Caption}{/block:Caption}{/block:Video}
  616. {/block:if500pxposts}
  617.  
  618. {block:Answer}
  619. <div class="question" style="margin-bottom:-3px;"><span class="asker"><b>{Asker}</b></span>: {Question}</div><div class="answer">{Answer}</div>{/block:Answer}
  620.  
  621. <div id="info">
  622. <span style="padding-top: 3px;">{block:ifShowviaandsource}{block:RebloggedFrom}<a href="{ReblogRootURL}"style="color:{color:text};">source</a> · <a href="{ReblogParentURL}" style="color:{color:text};">via</a>{/block:RebloggedFrom}{/block:ifShowviaandsource} (<span style="color:#e17e66;">♥</span><a href="{Permalink}">{NoteCount}</a>) {block:Date}{DayOfMonthWithZero}-{MonthNumberWithZero}-{ShortYear}{/block:Date}</span>
  623. </div>
  624.  
  625. <div id="tags">{block:HasTags}{block:Tags}<a href="{TagURL}">#{Tag}</a>{/block:Tags}{/block:HasTags}</div>
  626.  
  627. </div>
  628.  
  629. {block:PostNotes}
  630. <div id="notes">notes</div>
  631. {PostNotes}
  632. {/block:PostNotes}
  633.  
  634. {/block:Posts}</div></div>
  635.  
  636. {block:IfNotInfiniteScroll}
  637. <div id="pagination">
  638. {block:Pagination}{block:PreviousPage}<a href="{PreviousPage}">GO BACK</a>{/block:PreviousPage} -
  639. {block:NextPage}<a href="{NextPage}">PROCEED</a>{/block:NextPage}{/block:Pagination}
  640. </div>
  641. {/block:IfNotInfiniteScroll}
  642.  
  643. {block:ifnotCreditontheleft}
  644. <div id="credit" style="font-size:14px">©<a href="http://castiiel.tumblr.com" style="font-size:7px; text-transform: uppercase;">theme by castiiel</a></div>
  645. {/block:ifnotCreditontheleft}
  646.  
  647. {block:ifCreditontheleft}
  648. <div id="credit" style="font-size:14px"><a href="http://castiiel.tumblr.com" style="font-size:7px; text-transform: uppercase;">theme by castiiel</a>©</div>
  649. {/block:ifCreditontheleft}
  650.  
  651. </div>
  652.  
  653. {block:ifInfinitescroll}
  654. {block:NextPage}<div id="page-nav"><a href="{NextPage}"></a></div>{/block:NextPage}
  655. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
  656. <script type="text/javascript" src="http://static.tumblr.com/bswe8t6/UFVlryaq2/jquerymsnryv2.js"></script>
  657. <script type="text/javascript">
  658. $wall.infinitescroll({
  659. navSelector : '#page-nav',
  660. nextSelector : '#page-nav a',
  661. itemSelector : '#post',
  662. bufferPx : 2000,
  663. debug : false,
  664. errorCallback: function() {
  665. $('#infscr-loading').fadeOut('normal');
  666. }},
  667. function( newElements ) {
  668. var $newElems = $( newElements );
  669. $newElems.hide();
  670. $newElems.imagesLoaded(function(){
  671. $wall.masonry( 'appended', $newElems,{isAnimated: false}, function(){$newElems.fadeIn('slow');} );
  672. });
  673. }); $('#entries').show(500);
  674. });
  675. </script>
  676. {/block:ifInfinitescroll}
  677.  
  678. <div id="dhtmltooltip"></div>
  679.  
  680. <script type="text/javascript">
  681.  
  682. /***********************************************
  683. * Cool DHTML tooltip script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
  684. * This notice MUST stay intact for legal use
  685. * Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
  686. ***********************************************/
  687.  
  688. var offsetxpoint=-60 //Customize x offset of tooltip
  689. var offsetypoint=20 //Customize y offset of tooltip
  690. var ie=document.all
  691. var ns6=document.getElementById && !document.all
  692. var enabletip=false
  693. if (ie||ns6)
  694. var tipobj=document.all? document.all["dhtmltooltip"] : document.getElementById? document.getElementById("dhtmltooltip") : ""
  695.  
  696. function ietruebody(){
  697. return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
  698. }
  699.  
  700. function ddrivetip(thetext, thecolor, thewidth){
  701. if (ns6||ie){
  702. if (typeof thewidth!="undefined") tipobj.style.width=thewidth+"px"
  703. if (typeof thecolor!="undefined" && thecolor!="") tipobj.style.backgroundColor=thecolor
  704. tipobj.innerHTML=thetext
  705. enabletip=true
  706. return false
  707. }
  708. }
  709.  
  710. function positiontip(e){
  711. if (enabletip){
  712. var curX=(ns6)?e.pageX : event.clientX+ietruebody().scrollLeft;
  713. var curY=(ns6)?e.pageY : event.clientY+ietruebody().scrollTop;
  714. //Find out how close the mouse is to the corner of the window
  715. var rightedge=ie&&!window.opera? ietruebody().clientWidth-event.clientX-offsetxpoint : window.innerWidth-e.clientX-offsetxpoint-20
  716. var bottomedge=ie&&!window.opera? ietruebody().clientHeight-event.clientY-offsetypoint : window.innerHeight-e.clientY-offsetypoint-20
  717.  
  718. var leftedge=(offsetxpoint<0)? offsetxpoint*(-1) : -1000
  719.  
  720. //if the horizontal distance isn't enough to accomodate the width of the context menu
  721. if (rightedge<tipobj.offsetWidth)
  722. //move the horizontal position of the menu to the left by it's width
  723. tipobj.style.left=ie? ietruebody().scrollLeft+event.clientX-tipobj.offsetWidth+"px" : window.pageXOffset+e.clientX-tipobj.offsetWidth+"px"
  724. else if (curX<leftedge)
  725. tipobj.style.left="5px"
  726. else
  727. //position the horizontal position of the menu where the mouse is positioned
  728. tipobj.style.left=curX+offsetxpoint+"px"
  729.  
  730. //same concept with the vertical position
  731. if (bottomedge<tipobj.offsetHeight)
  732. tipobj.style.top=ie? ietruebody().scrollTop+event.clientY-tipobj.offsetHeight-offsetypoint+"px" : window.pageYOffset+e.clientY-tipobj.offsetHeight-offsetypoint+"px"
  733. else
  734. tipobj.style.top=curY+offsetypoint+"px"
  735. tipobj.style.visibility="visible"
  736. }
  737. }
  738.  
  739. function hideddrivetip(){
  740. if (ns6||ie){
  741. enabletip=false
  742. tipobj.style.visibility="hidden"
  743. tipobj.style.left="-1000px"
  744. tipobj.style.backgroundColor=''
  745. tipobj.style.width=''
  746. }
  747. }
  748.  
  749. document.onmousemove=positiontip
  750.  
  751. </script>
  752.  
  753. </body></html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement