Advertisement
booksinvolved

redirect theme 01

Jun 15th, 2014
989
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.86 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.  
  4.  
  5. <head>
  6.  
  7. <!--- theme by jasnahdavar
  8. ------ do not steal or remove credit! please ask me if you want to use as a base code i swear i'm nice
  9. ------ the image will resize to 400px wide, max height is 200px! (you can remove it too without affecting the code)
  10. ------ the description in the second box is the same as your blog description. you can edit it directly from your customize page
  11. ------ to REMOVE the description just click the button that says show description and it's gone
  12. ------ when writing your url do NOT write the full url (http://url.tumblr.com) but JUST the url (eg: jasnahdavar, booksinvolved, etc) otherwise the link will not work
  13. ------ EVERYTHING can be edited from the customize page without editing the html
  14. ------ that's it i guess my askbox is always open
  15. --->
  16.  
  17. <title>{Title}</title>
  18. <link rel="shortcut icon" href="{Favicon}">
  19. <link rel="alternate" type="application/rss+xml" href="{RSS}">
  20. {block:Description}<meta name="description" content="{MetaDescription}" />{/block:Description}
  21.  
  22. <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
  23.  
  24.  
  25. <script type="text/javascript">
  26. function unhide(divID) {
  27. var item = document.getElementById(divID);
  28. if (item) {
  29. item.className=(item.className=='hidden')?'unhidden':'unhidden';
  30. }
  31. }
  32. </script>
  33.  
  34. <script type="text/javascript">
  35. function hide(divID) {
  36. var item = document.getElementById(divID);
  37. if (item) {
  38. item.className=(item.className=='unhidden')?'hidden':'hidden';
  39. }
  40. }
  41. </script>
  42.  
  43. <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js" type="text/javascript"></script>
  44. <script src="http://static.tumblr.com/iuw14ew/VSQma1786/jquery.style-my-tooltips.js" type="text/javascript"></script>
  45. <script type="text/javascript">// <![CDATA[
  46. (function($){
  47.  
  48. $(document).ready(function(){
  49.  
  50. $("a[title]").style_my_tooltips({
  51.  
  52. tip_follows_cursor:true,
  53.  
  54. tip_delay_time:30,
  55.  
  56. tip_fade_speed:300,
  57.  
  58. attribute:"title"
  59.  
  60. });
  61.  
  62. });
  63.  
  64. })(jQuery);
  65. // ]]></script>
  66.  
  67. <meta name="color:background" content="#fff">
  68. <meta name="color:text" content="#999">
  69. <meta name="color:link" content="#ff0066">
  70. <meta name="color:link hover" content="#000">
  71. <meta name="color:box border" content="#cfcfcf">
  72.  
  73. <meta name="text:url" content="your url here">
  74.  
  75. <meta name="image:image" content="http://37.media.tumblr.com/10c5f308faf86d3b86da80aaca97423b/tumblr_mxyl2cOdYO1si19q8o2_500.gif">
  76.  
  77. <meta name="if:show description" content="1">
  78.  
  79. <style type="text/css">
  80. ::-webkit-scrollbar-thumb:vertical {
  81. background-color:#cfcfcf; /*scrollbar color*/
  82. height:100px;
  83. }
  84.  
  85. ::-webkit-scrollbar-thumb:horizontal {
  86. background-color:#cfcfcf; /*scrollbar color*/
  87. height:100px !important;
  88. }
  89.  
  90. ::-webkit-scrollbar {
  91. height:10px;
  92. width:8px;
  93. background-color:#eeeeee; /*scrollbar bg color*/
  94. }
  95.  
  96. ::selection {
  97. background:#000;
  98. color:#fff;
  99. }
  100.  
  101.  
  102.  
  103. /*----------------- TOOLTIP -----------------*/
  104. #s-m-t-tooltip{
  105. font-size:10px;
  106. position:absolute;
  107. margin-top: 15px;
  108. margin-left:15px;
  109. letter-spacing:1px;
  110. z-index:9999;
  111. background:white;
  112. color:#666;
  113. text-transform:uppercase;
  114. padding:2px 3px 2px 3px;
  115. -webkit-transition:all 0.3s;
  116. -moz-transition:all 0.3s;
  117. -ms-transition:all 0.3s;
  118. -o-transition:all 0.3s;
  119. transition:all 0.3s;
  120. border:2px solid #999;
  121. }
  122.  
  123.  
  124. body {
  125. background:{color:background};
  126. margin:0px;
  127. color:{color:text};
  128. font-family:cambria;
  129. font-size:11px;
  130. line-height:100%;
  131. font-style: none;
  132. }
  133.  
  134.  
  135.  
  136.  
  137.  
  138. a:link, a:visited, a:active {
  139. color:{color:link};
  140. text-decoration: none;
  141. font-weight: normal;
  142. -webkit-transition: .6s;
  143. -moz-transition: .6s;
  144. transition: .6s;
  145. }
  146.  
  147. a:hover {
  148. color:{color:link hover};
  149. text-decoration: none;
  150. font-weight: normal;
  151. -webkit-transition: .6s;
  152. -moz-transition: .6s;
  153. transition: .6s;
  154. }
  155.  
  156. .hidden {
  157. display:none;
  158. }
  159.  
  160. .unhidden {
  161. display:block;
  162. }
  163.  
  164. /*---------- CIRCLES --------*/
  165.  
  166. #circles {
  167. position:fixed;
  168. top:50%;
  169. left:50%;
  170. margin-left:220px;
  171. width:20px;
  172. height:200px;
  173. display:inline;
  174. text-align:right;
  175. }
  176.  
  177. .tab {
  178. color:transparent;
  179. border:1px solid {color:box border};
  180. width:20px;
  181. height:20px;
  182. border-radius:20px;
  183. -webkit-border-radius:20px;
  184. -moz-border-radius:20px;
  185. text-align:right;
  186. display:inline-block;
  187. margin-bottom:10px;
  188. }
  189.  
  190. .tab:hover {
  191. background:{color:box border};
  192. }
  193.  
  194. /*--------- CONTAINER -----------------*/
  195.  
  196. #box1 {
  197. position:fixed;
  198. width:380px;
  199. height:180px;
  200. padding:10px;
  201. left:50%;
  202. top:50%;
  203. margin-left:-200px;
  204. border:1px solid {color:box border};
  205. border-style:double;
  206. border-width:5px;
  207. box-shadow:5px 5px 0px #eee;
  208. }
  209.  
  210. #box2 {
  211. position:fixed;
  212. width:380px;
  213. height:180px;
  214. padding:10px;
  215. left:50%;
  216. top:50%;
  217. margin-left:-200px;
  218. border:1px solid {color:box border};
  219. border-style:double;
  220. border-width:5px;
  221. box-shadow:5px 5px 0px #eee;
  222. }
  223.  
  224. /* box 1 */
  225.  
  226. .nowat {
  227. text-align:center;
  228. text-transform:uppercase;
  229. font-size:14px;
  230. margin-top:50px;
  231. }
  232.  
  233. .newurl {
  234. text-align:center;
  235. font-family:arial;
  236. font-size:30px;
  237. text-transform:lowercase;
  238. margin-top:20px;
  239. }
  240.  
  241. /*----- IMAGE --------*/
  242.  
  243. #image {
  244. position:fixed;
  245. top:50%;
  246. left:50%;
  247. width:400px;
  248. height:200px;
  249. margin-top:-200px;
  250. margin-left:-200px;
  251. }
  252.  
  253. #image img {
  254. width:400px;
  255. max-height:200px;
  256. }
  257.  
  258. /*box 2*/
  259.  
  260. .desc {
  261. margin-top:50px;
  262. font-family:helvetica;
  263. line-height:120%;
  264. text-align:Center;
  265. }
  266.  
  267. {CustomCSS}</style>
  268.  
  269.  
  270. </head><body>
  271.  
  272. <div id="image">
  273. <img src="{image:image}">
  274. </div>
  275. <div id="circles">
  276. {block:ifshowdescription}
  277. <a href="javascript:unhide('box1');hide('box2');" title="new url"><div class="tab"></div></a>
  278.  
  279. <a href="javascript:unhide('box2');hide('box1');" title="+ more"><div class="tab"></div></a>{/block:ifshowdescription}
  280. <a href="http://jasnahdavar.tumblr.com" target="_blank" title="credit"><div class="tab"></div></a>
  281. </div>
  282.  
  283. <div id="box1" class="unhidden">
  284. <div class="nowat">now at</div>
  285. <div class="newurl"><a href="http://{text:url}.tumblr.com">{text:url}</a></div>
  286. </div>
  287. <div id="box2" class="hidden"><div class="desc">{description}
  288. </div></div>
  289.  
  290.  
  291. </body></html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement