Advertisement
themesbycelina

Warrior Theme

Apr 18th, 2014
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.44 KB | None | 0 0
  1. <!--
  2.  
  3. DO NOT REMOVE THIS!
  4.  
  5. Warrior Theme
  6.  
  7. Base Code are not mine, just saw it on theme-hunter.tumblr.com
  8. Customized and enchanced by trappedinyoursoul
  9.  
  10. RULES!
  11.  
  12. Like/Reblog if you're going to use it.
  13. Do not remove the credits.
  14. Do not redistribute and claim it as your own.
  15. Do not re-use this as a base code. You can use the Base Code I used. Here's the link -> http://pastebin.com/raw.php?i=37k9U4r3
  16.  
  17. !-->
  18.  
  19. <html lang="en">
  20.  
  21. <head>
  22.  
  23. <link href='http://fonts.googleapis.com/css?family={text:Font}' rel='stylesheet' type='text/css'>
  24. <link href='http://fonts.googleapis.com/css?family=Anonymous+Pro' rel='stylesheet' type='text/css'>
  25.  
  26. <meta name="color:Background" content="#000"/>
  27. <meta name="color:Text" content="#555"/>
  28. <meta name="color:Link" content="#00ff7f"/>
  29. <meta name="color:Link Hover" content="#ffd700"/>
  30. <meta name="text:Font" content=""/>
  31. <meta name="image:Sidebar" content=""/>
  32. <meta name="text:Link1 Url" content="/" />
  33. <meta name="text:Link1 Title" content="Link 1" />
  34. <meta name="text:Link2 Url" content="/" />
  35. <meta name="text:Link2 Title" content="Link 2" />
  36. <meta name="text:Link3 Url" content="/" />
  37. <meta name="text:Link3 Title" content="Link 3" />
  38. <meta name="text:Link4 Url" content="/" />
  39. <meta name="text:Link4 Title" content="Link 4" />
  40. <meta name="text:Link5 Url" content="/" />
  41. <meta name="text:Link5 Title" content="Link 5" />
  42.  
  43. <script src="http://static.tumblr.com/whx9ghv/lq0m3ktlh/modernizr.custom.34978.js"></script>
  44. <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
  45. <script type="text/javascript" src="http://static.tumblr.com/7qjmkr5/IUmmdsy41/jquery.style-my-tooltips.js"></script>
  46. <script>
  47. (function($){
  48. $(document).ready(function(){
  49. $("[title]").style_my_tooltips();
  50. });
  51. })(jQuery);
  52. </script>
  53.  
  54. <style type="text/css">
  55.  
  56. #s-m-t-tooltip
  57. {
  58. display: block;
  59. background-color: {color:Link};
  60. font-family: {text:Font};
  61. font-size: 10px;
  62. color: #000;
  63. font-weight: bold;
  64. letter-spacing: 1px;
  65. line-height: 1.50em;
  66. text-align: center;
  67. text-transform: uppercase;
  68. margin-left: 20px;
  69. padding: 5px;
  70. min-width: 50px;
  71. z-index: 888;
  72. }
  73.  
  74. iframe#tumblr_controls
  75. {
  76. right: 0px !important;
  77. position: fixed !important;
  78. -webkit-filter: invert(100%);
  79. opacity: 0.8;
  80. z-index: 999999;
  81. }
  82.  
  83. body
  84. {
  85. background-color: {color:Background};
  86. font-family: {text:Font};
  87. font-size: 12px;
  88. color: {color:Text};
  89. letter-spacing: 1px;
  90. line-height: 1.50em;
  91. text-align: left;
  92. text-transform: normal;
  93. cursor: url(http://media.tumblr.com/534c06354311ec54ed5aa8601b5dd33d/tumblr_inline_mf915wGOVX1qcvlhg.png), auto;
  94. }
  95.  
  96. a
  97. {
  98. color: {color:Link};
  99. text-decoration: none;
  100. cursor: url(https://31.media.tumblr.com/tumblr_m2umkyg2IP1qfamg6.gif), progress;
  101. transition-duration: 0.8;
  102. -moz-transition-duration: 0.8s;
  103. -webkit-transition-duration: 0.8s;
  104. -o-transition-duration: 0.8s;
  105. }
  106.  
  107. a:hover
  108. {
  109. color: {color:Link Hover};
  110. text-decoration: none;
  111. -webkit-transition: all 0.3s linear;
  112. -moz-transition: all 0.3s linear;
  113. transition: all 0.3s linear;
  114. }
  115.  
  116. #cunt
  117. {
  118. width: 250px;
  119. height: auto;
  120. }
  121. {block:PermalinkPage}
  122. width: 410px;
  123. {/block:PermalinkPage}
  124. }
  125.  
  126. #center
  127. {
  128. padding-top: 3px;
  129. padding-bottom: 3px;
  130. position: fixed !important;
  131. width: 250px;
  132. height: 207px;
  133. background-color: #fff;
  134. {block:PermalinkPage}
  135. width: 410px;
  136. height: 207px;
  137. {/block:PermalinkPage}
  138. }
  139.  
  140. #posts
  141. {
  142. float: center;
  143. {block:indexpage}
  144. width: 600px;
  145. {/block:indexpage}
  146. {block:permalinkpage}
  147. width: 750px;
  148. margin-top: 40px;
  149. {/block:permalinkpage}
  150. margin-left: 450px;
  151. margin-top: 0px;
  152. z-index:9999;
  153. }
  154.  
  155. #sidebarimg
  156. {
  157. margin-bottom: 3px;
  158. padding: 10px;
  159. }
  160.  
  161. #sidebarimg img
  162. {
  163. max-width: 272px;
  164. height: auto;
  165. }
  166.  
  167. #sidebar
  168. {
  169. width: 284px;
  170. margin-left: 50px;
  171. height: auto;
  172. margin-top: 70px;
  173. position: fixed;
  174. overflow: hidden;
  175. background-color: {color:Sidebar};
  176. padding: 10px;
  177. }
  178.  
  179. #title
  180. {
  181. font-family: 'Anonymous Pro';
  182. font-size: 18px;
  183. color: {color:Link};
  184. font-weight: bold;
  185. letter-spacing: 1px;
  186. line-height: 1.50em;
  187. text-align: center;
  188. text-transform: normal;
  189. margin-bottom: 5px;
  190. }
  191.  
  192. #links
  193. {
  194. font-family: 'Calibri';
  195. font-size: 11px;
  196. color: {color:Link};
  197. letter-spacing: 1px;
  198. line-height: 1.50em;
  199. text-align: center;
  200. text-transform: uppercase;
  201. width: 262px;
  202. padding: 5px;
  203. }
  204.  
  205. #description
  206. {
  207. font-family: {text:Font};
  208. font-size: 12px;
  209. color: {color:Text};
  210. letter-spacing: 1px;
  211. line-height: 1.50em;
  212. text-align: center;
  213. text-transform: normal;
  214. margin-bottom: 2px;
  215. padding: 5px;
  216. }
  217.  
  218. askk
  219. {
  220. font-family: {text:Font};
  221. font-size: 12px;
  222. color: {color:Text};
  223. letter-spacing: 1px;
  224. line-height: 1.50em;
  225. text-align: center;
  226. text-transform: normal;
  227. z-index:1;
  228. }
  229.  
  230. #entry
  231. {
  232. font-family: {text:Font};
  233. font-size: 12px;
  234. color: {color:Text};
  235. letter-spacing: 1px;
  236. line-height: 1.50em;
  237. text-align: left;
  238. text-transform: normal;
  239. z-index: 9999;
  240. float: left;
  241. width: 490px;
  242. height: auto;
  243. {block:PermalinkPage}
  244. width: 418px;
  245. height: auto;
  246. {/block:PermalinkPage}
  247. margin: 20px;
  248. overflow: hidden;
  249. padding: 6px;
  250. padding: 8px;
  251. padding: 7px;
  252. padding-bottom: 4px;
  253. }
  254.  
  255. #entry .perma a
  256. {
  257. color: {color:Link};
  258. }
  259.  
  260. #entry .perma
  261. {
  262. background-color: #fff;
  263. font-family: 'Cambria';
  264. font-size: 14px;
  265. letter-spacing: 1px;
  266. line-height: 1.50em;
  267. text-align: center;
  268. text-transform: lowercase;
  269. width: 500px;
  270. height: 15px;
  271. position: absolute;
  272. overflow: hidden;
  273. opacity: 0.0;
  274. margin-top: -10px;
  275. margin-left: 0px;
  276. padding-bottom: 1px;
  277. padding: 3px;
  278. padding: 5px;
  279. border-radius: 0px;
  280. -webkit-transition:opacity 0.5s linear; opacity: 0.0;
  281. -webkit-transition: all 0.5s linear;
  282. -moz-transition: all 0.5s linear;
  283. transition: all 0.5s linear;
  284. }
  285.  
  286. #entry:hover .perma
  287. {
  288. overflow: visible;
  289. margin-top: 0px;
  290. border-top-right-radius: 0px;
  291. border-bottom-left-radius: 0px;
  292. -webkit-transition: all 0.5s linear; opacity: 1;
  293. -webkit-transition: all 0.5s linear;
  294. -moz-transition: all 0.5s linear;
  295. transition: all 0.5s linear;
  296. }
  297.  
  298. .permalinktext
  299. {
  300. font-family: 'Cambria';
  301. font-size: 14px;
  302. color: {color:Link};
  303. letter-spacing: 1px;
  304. line-height: 1.50em;
  305. text-align: left;
  306. display: block;
  307. padding: 1px;
  308. margin: 0px 0px 0px 0px;
  309. -webkit-transition: color 0.5s ease-out;
  310. -moz-transition: color 0.5s ease-out;
  311. }
  312.  
  313. .title
  314. {
  315. font-family: 'Anonymous Pro';
  316. font-size: 18px;
  317. color: {color:Link};
  318. font-weight: bold;
  319. letter-spacing: 1px;
  320. line-height: 1.50em;
  321. text-align: left;
  322. text-transform: normal;
  323. padding: 0px 0px 0px 0px;
  324. }
  325.  
  326. #postnotes
  327. {
  328. text-align: left;
  329. }
  330.  
  331. #postnotes blockquote
  332. {
  333. border: 1px;
  334. }
  335.  
  336. blockquote
  337. {
  338. padding: 0px 0px 2px 5px;
  339. margin: 0px 0px 2px 10px;
  340. border-left: 1px solid #555555;
  341. }
  342.  
  343. ul, ol, li
  344. {
  345. list-style: none;
  346. margin: 0px;
  347. padding: 0px
  348. }
  349.  
  350. .like-button
  351. {
  352. display: inline-block;
  353. float: right;
  354. padding: 5px 0 0 10px;
  355. margin: -3px 0 0 0;
  356. }
  357.  
  358. .reblog-button
  359. {
  360. display: inline-block;
  361. float: right;
  362. padding: 3px 5px 0 5px;
  363. }
  364.  
  365. ::-webkit-scrollbar-thumb:vertical
  366. {
  367. background-color: {color:Link};
  368. height: 100px;
  369. }
  370.  
  371. ::-webkit-scrollbar
  372. {
  373. background-color: {color:Background};
  374. height: 10px;
  375. width: 10px;
  376. }
  377.  
  378. .user_1 .label, .user_2 .label, .user_3 .label, .user_4 .label, .user_5 .label, .user_6 .label,
  379. .user_7 .label, .user_8 .label, .user_9 .label
  380. {color: {color:Title};
  381. }
  382.  
  383. </style>
  384. <title>{title}</title>
  385. <link rel="shortcut icon" href="{favicon}">
  386. <link rel="alternate" type="application/rss+xml" title="RSS" href="{RSS}" />
  387. <meta name="viewport" content="width=720" />
  388. </head>
  389. <body onkeydown="return false">
  390. <div id="center">
  391. <div id="content">
  392. <div id="under">
  393. </div>
  394.  
  395. </div>
  396.  
  397. <div id="sidebar">
  398. <div id="title">{Title}</div>
  399. <div id="sidebarimg"><center><img src="{image:Sidebar}"/></center></div>
  400. <div id="links"><a href="{text:Link1 Url}">{text:Link1 Title}</a> · <a href="{text:Link2 Url}">{text:Link2 Title}</a> · <a href="{text:Link3 Url}">{text:Link3 Title}</a> · <a href="{text:Link4 Url}">{text:Link4 Title}</a> · <a href="{text:Link5 Url}">{text:Link5 Title}</a></div>
  401. <div id="description">{block:Description}<br>{Description}{/block:Description}</div></div>
  402.  
  403. <div id="posts">
  404. {block:Posts}
  405. <div id="entry">
  406.  
  407. {block:Text}
  408. {block:Title}<span class="title">{Title}</span>{/block:Title}
  409. <span class="entrytext">{Body}</span>
  410. <div class="permalinktext"> <a href="{permalink}">{DayOfMonth}{DayOfMonthSuffix} of {Month} &middot;</a><font color="#aaa"></font><a href="{permalink}"> {NoteCountwithlabel}</a><div class="like-button">{LikeButton size="14"}</div><div class="reblog-button">{ReblogButton size="14"}</div></div>
  411. {/block:Text}
  412.  
  413. {block:Link}
  414. <a href="{URL}" class="title">{Name} &rarr;</a>
  415. <br>
  416. {block:Description}{Description}{/block:Description}
  417. <br>
  418. <div class="permalinktext"> <a href="{permalink}">{DayOfMonth}{DayOfMonthSuffix} of {Month} &middot;</a><font color="#aaa"></font><a href="{permalink}"> {NoteCountwithlabel}</a><div class="like-button">{LikeButton size="14"}</div><div class="reblog-button">{ReblogButton size="14"}</div></div>
  419. {block:Link}
  420.  
  421. {block:Photo}{block:IndexPage}
  422. <div class="perma">
  423. <a href="{permalink}">{DayOfMonth}{DayOfMonthSuffix} of {Month} &middot;</a><font color="#aaa"></font><a href="{permalink}"> {NoteCountwithlabel}</a><a href="{ReblogURL}" target="_blank"> &middot; Reblog? </a></span></div>
  424. {/block:IndexPage}
  425. {block:IndexPage}<img src="{PhotoURL-500}" alt="{PhotoAlt}" width=500px /></a>{/block:IndexPage}{block:PermalinkPage}{LinkOpenTag}<img src="{PhotoURL-500}" alt="{PhotoAlt}"width=500px/>{LinkCloseTag}{/block:PermalinkPage}
  426. {/block:Photo}
  427.  
  428. {block:Photoset}
  429. {block:IndexPage}
  430. <div class="perma">
  431. <a href="{permalink}">{DayOfMonth}{DayOfMonthSuffix} of {Month} &middot;</a><font color="#aaa"></font><a href="{permalink}"> {NoteCountwithlabel}</a><a href="{ReblogURL}" target="_blank"> &middot; Reblog? </a></span></div>
  432. <center>
  433.  
  434. {Photoset-500}</center>
  435. {/block:IndexPage}
  436. {block:PermalinkPage}
  437. <center>
  438. {Photoset-500}</center>
  439. {/block:PermalinkPage}
  440. {/block:Photoset}
  441.  
  442. {block:Quote}
  443. <span class="title">&ldquo;{Quote}&rdquo;</span>
  444. {block:Source}<p>&mdash;{Source}</p>{/block:Source}
  445. <div class="permalinktext"> <a href="{permalink}">{DayOfMonth}{DayOfMonthSuffix} of {Month} &middot;</a><font color="#aaa"></font><a href="{permalink}"> {NoteCountwithlabel}</a><div class="like-button">{LikeButton size="14"}</div><div class="reblog-button">{ReblogButton size="14"}</div></div>
  446. {/block:Quote}
  447.  
  448. {block:Chat}
  449. {block:Title}<span class="title">{Title}</span>{/block:Title}
  450. <br>
  451. <br>
  452. <ul class="chat">
  453. {block:Lines}
  454. <li class="user_{UserNumber}">
  455. {block:Label}
  456. <span class="label">{Label}</span>
  457. {/block:Label}
  458. {Line}
  459. </li>
  460. {/block:Lines}
  461. <br>
  462. </ul>
  463. <div class="permalinktext"> <a href="{permalink}">{DayOfMonth}{DayOfMonthSuffix} of {Month} &middot;</a><font color="#aaa"></font><a href="{permalink}"> {NoteCountwithlabel}</a><div class="like-button">{LikeButton size="14"}</div><div class="reblog-button">{ReblogButton size="14"}</div></div>
  464. {/block:Chat}
  465.  
  466.  
  467. {block:Audio}
  468. <center><div style="width:300px; height:28px;"><div style="float:left">{AudioPlayerGrey}</div><div style="margin-top:10px; float:left;">
  469. {block:ExternalAudio}{/block:ExternalAudio}</div></div></center><br>
  470. <div class="permalinktext"> <a href="{permalink}">{DayOfMonth}{DayOfMonthSuffix} of {Month} &middot;</a><font color="#aaa"></font><a href="{permalink}"> {NoteCountwithlabel}</a><div class="like-button">{LikeButton size="14"}</div><div class="reblog-button">{ReblogButton size="14"}</div></div>
  471. {/block:Audio}
  472.  
  473. {block:Video}<center>
  474. <div style="padding-top:0px; padding-bottom:2px;">
  475. {Video-250}</div>
  476. <div style="padding-bottom:5px;">{block:Caption}{Caption}{/block:Caption}</div>
  477. <div class="permalinktext"> <a href="{permalink}">{DayOfMonth}{DayOfMonthSuffix} of {Month} &middot;</a><font color="#aaa"></font><a href="{permalink}"> {NoteCountwithlabel}</a><div class="like-button">{LikeButton size="14"}</div><div class="reblog-button">{ReblogButton size="14"}</div></div>
  478. {block:Video}
  479.  
  480. {block:Answer}
  481. <br>
  482. <div style="border-radius:5px; margin: 3px; margin-top: -2px; min-height:30px; padding: 3px;">
  483. <img src="{AskerPortraitURL-30}" width="30" align="left" style="margin-right:3px; border-radius: 3px;"/>
  484. <askk>{Asker}</askk> asked: {Question}<br></div>
  485. <div style="font-family: {text:Font}; font-size: 12px;">
  486. {Answer}
  487. </div>
  488. <div class="permalinktext"> <a href="{permalink}">{DayOfMonth}{DayOfMonthSuffix} of {Month} &middot;</a><font color="#aaa"></font><a href="{permalink}"> {NoteCountwithlabel}</a><div class="like-button">{LikeButton size="14"}</div><div class="reblog-button">{ReblogButton size="14"}</div></div>
  489. {/block:Answer}
  490.  
  491. {block:PostNotes}<div align="middle">{caption}</div>
  492.  
  493. {block:HasTags}
  494. tagged {block:Tags}<a href="{TagURL}">#{Tag} </a>{/block:Tags}{/block:HasTags} with {block:NoteCount}{NoteCountWithLabel}<br>{/block:NoteCount}
  495. {block:RebloggedFrom}
  496. reblogged from <a href="{ReblogParentURL}">{ReblogParentName}</a> and
  497. posted by <a href="{ReblogRootURL}">{ReblogRootName}</a>
  498. {/block:RebloggedFrom}
  499. </span>
  500. <br>
  501. <br>
  502. <br>
  503. <div id="postnotes">{PostNotes}</div><br>
  504.  
  505. <center>{block:ContentSource}
  506. <br><a href="{SourceURL}">
  507. {lang:Source}:
  508. {block:SourceLogo}
  509. <img src="{BlackLogoURL}" width="{LogoWidth}"
  510. height="{LogoHeight}" alt="{SourceTitle}" />
  511. {/block:SourceLogo}
  512. {block:NoSourceLogo}
  513. {SourceLink}
  514. {/block:NoSourceLogo}
  515. </a>
  516. {/block:ContentSource}</center>
  517.  
  518. {/block:PostNotes}
  519. </div>
  520. {/block:Posts}
  521. </div></div>
  522.  
  523. {block:indexpage}
  524. {block:NextPage}<div id="page-nav"><a href="{NextPage}"></a></div>{/block:NextPage}
  525. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
  526. <script type="text/javascript" src="http://static.tumblr.com/bswe8t6/UFVlryaq2/jquerymsnryv2.js"></script>
  527. <script type="text/javascript">
  528. $(window).load(function(){
  529. var $wall = $('#posts');
  530. $wall.imagesLoaded(function(){
  531. $wall.masonry({
  532. itemSelector: '#entry, #entry_photo',
  533. isAnimated : false
  534. });
  535. });
  536.  
  537. $wall.infinitescroll({
  538. navSelector : '#page-nav',
  539. nextSelector : '#page-nav a',
  540. itemSelector : '#entry, #entry_photo',
  541. bufferPx : 2000,
  542. debug : false,
  543. errorCallback: function() {
  544. $('#infscr-loading').fadeOut('normal');
  545. }},
  546. function( newElements ) {
  547. var $newElems = $( newElements );
  548. $newElems.hide();
  549. $newElems.imagesLoaded(function(){
  550. $wall.masonry( 'appended', $newElems,{isAnimated: false}, function(){$newElems.fadeIn('slow');} );
  551. });
  552. }); $('#content').show(500);
  553. });
  554. </script>
  555. {/block:indexpage}
  556.  
  557. <BODY onselectstart="return false;" ondragstart="return false;">
  558.  
  559. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
  560. <script type="text/javascript">//** jQuery Scroll to Top Control script- (c) I made this script myself (Kyle Monk) and it is hosted on my personal site so would appreciate if you followed my blog at kylemonk.tumblr.com if you use it or for details on how to change the location.
  561. //** Graphic originally from tumbler dashboard, for details on how to change graphic colour, contact me at kylemonk.tumblr.com
  562. //** v1.1 (April 7th, 10'):
  563. //** 1) Adds ability to scroll to an absolute position (from top of page) or specific element on the page instead.
  564. //** 2) Fixes scroll animation not working in Opera.
  565.  
  566.  
  567. var scrolltotop={
  568. //startline: Integer. Number of pixels from top of doc scrollbar is scrolled before showing control
  569. //scrollto: Keyword (Integer, or "Scroll_to_Element_ID"). How far to scroll document up when control is clicked on (0=top).
  570. setting: {startline:100, scrollto: 0, scrollduration:1000, fadeduration:[500, 100]},
  571. controlHTML: '<img src="https://24.media.tumblr.com/2727c483b55cb56d1712661c4ff98cc2/tumblr_mq8uqyCpnF1qklunfo2_100.png" style="filter:alpha(opacity=70); -moz-opacity:0.7; margin-bottom:-10px;" width=""/>', //HTML for control, which is auto wrapped in DIV w/ ID="topcontrol"
  572. controlattrs: {offsetx:10, offsety:10}, //offset of control relative to right/ bottom of window corner
  573. anchorkeyword: '#top', //Enter href value of HTML anchors on the page that should also act as "Scroll Up" links
  574.  
  575. state: {isvisible:false, shouldvisible:false},
  576.  
  577. scrollup:function(){
  578. if (!this.cssfixedsupport) //if control is positioned using JavaScript
  579. this.$control.css({opacity:0}) //hide control immediately after clicking it
  580. var dest=isNaN(this.setting.scrollto)? this.setting.scrollto : parseInt(this.setting.scrollto)
  581. if (typeof dest=="string" && jQuery('#'+dest).length==1) //check element set by string exists
  582. dest=jQuery('#'+dest).offset().top
  583. else
  584. dest=0
  585. this.$body.animate({scrollTop: dest}, this.setting.scrollduration);
  586. },
  587.  
  588. keepfixed:function(){
  589. var $window=jQuery(window)
  590. var controlx=$window.scrollLeft() + $window.width() - this.$control.width() - this.controlattrs.offsetx
  591. var controly=$window.scrollTop() + $window.height() - this.$control.height() - this.controlattrs.offsety
  592. this.$control.css({left:controlx+'px', top:controly+'px'})
  593. },
  594.  
  595. togglecontrol:function(){
  596. var scrolltop=jQuery(window).scrollTop()
  597. if (!this.cssfixedsupport)
  598. this.keepfixed()
  599. this.state.shouldvisible=(scrolltop>=this.setting.startline)? true : false
  600. if (this.state.shouldvisible && !this.state.isvisible){
  601. this.$control.stop().animate({opacity:1}, this.setting.fadeduration[0])
  602. this.state.isvisible=true
  603. }
  604. else if (this.state.shouldvisible==false && this.state.isvisible){
  605. this.$control.stop().animate({opacity:0}, this.setting.fadeduration[1])
  606. this.state.isvisible=false
  607. }
  608. },
  609.  
  610. init:function(){
  611. jQuery(document).ready(function($){
  612. var mainobj=scrolltotop
  613. var iebrws=document.all
  614. mainobj.cssfixedsupport=!iebrws || iebrws && document.compatMode=="CSS1Compat" && window.XMLHttpRequest //not IE or IE7+ browsers in standards mode
  615. mainobj.$body=(window.opera)? (document.compatMode=="CSS1Compat"? $('html') : $('body')) : $('html,body')
  616. mainobj.$control=$('<div id="topcontrol">'+mainobj.controlHTML+'</div>')
  617. .css({position:mainobj.cssfixedsupport? 'fixed' : 'absolute', bottom:mainobj.controlattrs.offsety, right:mainobj.controlattrs.offsetx, opacity:0, cursor:'pointer'})
  618. .attr()
  619. .click(function(){mainobj.scrollup(); return false})
  620. .appendTo('body')
  621. if (document.all && !window.XMLHttpRequest && mainobj.$control.text()!='') //loose check for IE6 and below, plus whether control contains any text
  622. mainobj.$control.css({width:mainobj.$control.width()}) //IE6- seems to require an explicit width on a DIV containing text
  623. mainobj.togglecontrol()
  624. $('a[href="' + mainobj.anchorkeyword +'"]').click(function(){
  625. mainobj.scrollup()
  626. return false
  627. })
  628. $(window).bind('scroll resize', function(e){
  629. mainobj.togglecontrol()
  630. })
  631. })
  632. }
  633. }
  634.  
  635. scrolltotop.init()</script>
  636. </body>
  637. <div style="position: fixed; bottom: 10px; left: 10px;">
  638. <a href="http://trappedinyoursoul.tumblr.com" title="Themes by Celina">TBC</a>
  639.  
  640. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement