Advertisement
IAmAmelia

Theme 2

Oct 7th, 2012
10,629
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.65 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.  
  3. <!--
  4.  
  5. ♡ THEME BY CYBERSITY.TUMBLR.COM ♡
  6. IF YOU ARE GOING TO REMOVE THE CREDIT BOX, PLEASE PUT CREDIT ELSEWHERE
  7. I DON'T MIND WHERE AS LONG AS IT'S SOMEWHERE THANK YOU
  8.  
  9. -->
  10.  
  11. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  12. <head>
  13.  
  14. <script type="text/javascript" src="http://codysherman.com/tools/infinite-scrolling/code"></script>
  15.  
  16. <title>{Title}</title>
  17. <link rel="shortcut icon" href="{Favicon}">
  18. <link rel="alternate" type="application/rss+xml" href="{RSS}">
  19. <meta name="font:Font" content="Arial" />
  20. <meta name="font:Title" content=""/>
  21. <meta name="color:Background" content=""/>
  22. <meta name="color:Links" content=""/>
  23. <meta name="image:Background" content=""/>
  24. <meta name="image:Permalink" content=""/>
  25. <meta name="image:Header" content=""/>
  26. <meta name="if:Maximised Background Image" content="0">
  27. <meta name="if:Rainbow Links" content=""/>
  28. <meta name="if:Show Header Image" content="0">
  29. <meta name="if:Show Captions" content="0">
  30. <meta name="if:Transparent Posts" content="0">
  31. <meta name="if:Rounded Corners" content="0">
  32. <meta name="color:Post Background" content="0">
  33. <meta name="color:Link Box" content="">
  34. <meta name="color:Link Box Hover" content="">
  35.  
  36. <meta name="text:Link One Title" content="link" />
  37. <meta name="text:Link One" content="" />
  38. <meta name="text:Link Two Title" content="link" />
  39. <meta name="text:Link Two" content="" />
  40. <meta name="text:Link Three Title" content="link" />
  41. <meta name="text:Link Three" content="" />
  42. <meta name="text:Link Four Title" content="link" />
  43. <meta name="text:Link Four" content="" />
  44. <meta name="text:Link Five Title" content="link" />
  45. <meta name="text:Link Five" content="" />
  46. <meta name="text:Link Six Title" content="link" />
  47. <meta name="text:Link Six" content="" />
  48.  
  49. {block:Description}<meta name="description" content="{MetaDescription}" />{/block:Description}
  50.  
  51. {block:ifRainbowLinks}
  52. <script type='text/javascript'>
  53.  
  54. //<![CDATA[
  55.  
  56. var rate = 20;
  57.  
  58. if (document.getElementById)
  59. window.onerror=new Function("return true")
  60.  
  61. var objActive; // The object which event occured in
  62. var act = 0; // Flag during the action
  63. var elmH = 0; // Hue
  64. var elmS = 128; // Saturation
  65. var elmV = 255; // Value
  66. var clrOrg; // A color before the change
  67. var TimerID; // Timer ID
  68.  
  69. if (document.all) {
  70. document.onmouseover = doRainbowAnchor;
  71. document.onmouseout = stopRainbowAnchor;
  72. }
  73. else if (document.getElementById) {
  74. document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT);
  75. document.onmouseover = Mozilla_doRainbowAnchor;
  76. document.onmouseout = Mozilla_stopRainbowAnchor;
  77. }
  78.  
  79. function doRainbow(obj)
  80. {
  81. if (act == 0) {
  82. act = 1;
  83. if (obj)
  84. objActive = obj;
  85. else
  86. objActive = event.srcElement;
  87. clrOrg = objActive.style.color;
  88. TimerID = setInterval("ChangeColor()",100);
  89. }
  90. }
  91.  
  92. function stopRainbow()
  93. {
  94. if (act) {
  95. objActive.style.color = clrOrg;
  96. clearInterval(TimerID);
  97. act = 0;
  98. }
  99. }
  100.  
  101. function doRainbowAnchor()
  102. {
  103. if (act == 0) {
  104. var obj = event.srcElement;
  105. while (obj.tagName != 'A' && obj.tagName != 'BODY') {
  106. obj = obj.parentElement;
  107. if (obj.tagName == 'A' || obj.tagName == 'BODY')
  108. break;
  109. }
  110.  
  111. if (obj.tagName == 'A' && obj.href != '') {
  112. objActive = obj;
  113. act = 1;
  114. clrOrg = objActive.style.color;
  115. TimerID = setInterval("ChangeColor()",100);
  116. }
  117. }
  118. }
  119.  
  120. function stopRainbowAnchor()
  121. {
  122. if (act) {
  123. if (objActive.tagName == 'A') {
  124. objActive.style.color = clrOrg;
  125. clearInterval(TimerID);
  126. act = 0;
  127. }
  128. }
  129. }
  130.  
  131. function Mozilla_doRainbowAnchor(e)
  132. {
  133. if (act == 0) {
  134. obj = e.target;
  135. while (obj.nodeName != 'A' && obj.nodeName != 'BODY') {
  136. obj = obj.parentNode;
  137. if (obj.nodeName == 'A' || obj.nodeName == 'BODY')
  138. break;
  139. }
  140.  
  141. if (obj.nodeName == 'A' && obj.href != '') {
  142. objActive = obj;
  143. act = 1;
  144. clrOrg = obj.style.color;
  145. TimerID = setInterval("ChangeColor()",100);
  146. }
  147. }
  148. }
  149.  
  150. function Mozilla_stopRainbowAnchor(e)
  151. {
  152. if (act) {
  153. if (objActive.nodeName == 'A') {
  154. objActive.style.color = clrOrg;
  155. clearInterval(TimerID);
  156. act = 0;
  157. }
  158. }
  159. }
  160.  
  161.  
  162. function ChangeColor()
  163. {
  164. objActive.style.color = makeColor();
  165. }
  166.  
  167. function makeColor()
  168. {
  169. // Don't you think Color Gamut to look like Rainbow?
  170.  
  171. // HSVtoRGB
  172. if (elmS == 0) {
  173. elmR = elmV; elmG = elmV; elmB = elmV;
  174. }
  175. else {
  176. t1 = elmV;
  177. t2 = (255 - elmS) * elmV / 255;
  178. t3 = elmH % 60;
  179. t3 = (t1 - t2) * t3 / 60;
  180.  
  181. if (elmH < 60) {
  182. elmR = t1; elmB = t2; elmG = t2 + t3;
  183. }
  184. else if (elmH < 120) {
  185. elmG = t1; elmB = t2; elmR = t1 - t3;
  186. }
  187. else if (elmH < 180) {
  188. elmG = t1; elmR = t2; elmB = t2 + t3;
  189. }
  190. else if (elmH < 240) {
  191. elmB = t1; elmR = t2; elmG = t1 - t3;
  192. }
  193. else if (elmH < 300) {
  194. elmB = t1; elmG = t2; elmR = t2 + t3;
  195. }
  196. else if (elmH < 360) {
  197. elmR = t1; elmG = t2; elmB = t1 - t3;
  198. }
  199. else {
  200. elmR = 0; elmG = 0; elmB = 0;
  201. }
  202. }
  203.  
  204. elmR = Math.floor(elmR).toString(16);
  205. elmG = Math.floor(elmG).toString(16);
  206. elmB = Math.floor(elmB).toString(16);
  207. if (elmR.length == 1) elmR = "0" + elmR;
  208. if (elmG.length == 1) elmG = "0" + elmG;
  209. if (elmB.length == 1) elmB = "0" + elmB;
  210.  
  211. elmH = elmH + rate;
  212. if (elmH >= 360)
  213. elmH = 0;
  214.  
  215. return '#' + elmR + elmG + elmB;
  216. }
  217.  
  218. //]]>
  219.  
  220. </script>
  221. {/block:ifrainbowlinks}
  222.  
  223. <style type="text/css">
  224.  
  225. a:link {
  226. text-decoration:none;
  227. transition-duration: 0.50s;
  228. -moz-transition-duration: 0.50s;
  229. -webkit-transition-duration: 0.50s;
  230. -o-transition-duration: 0.50s;
  231. }
  232.  
  233. body {
  234. background: {color:Background} url('{image:Background}') top left fixed repeat;
  235. margin: 0;
  236. padding: 0;
  237. font-family: '{Font:font}';
  238. font-size: 11px;
  239. text-align: center;
  240. }
  241. body a {
  242. color: {color:links};
  243. }
  244. img{border:none;}
  245. blockquote{padding-left:5px; border-left:1px dashed #C7C7C7;}
  246. blockquote blockquote{padding-left:5px; border-left:1px dashed #C7C7C7;}
  247. #left{padding:10px; width:500px; margin-left: auto;
  248. margin-right: auto;}
  249. #entry{width:500px; margin-bottom: 60px; {block:IfNotTransparentPosts}background-color: {Color:post background}; padding:7px;{/block:IfNotTransparentPosts} font-family: {font:font}; {block:IfRoundedCorners}
  250. -moz-border-radius: 10px; -webkit-border-radius: 10px;
  251. {/block:IfRoundedCorners};}
  252. #description{font-family: {font:font}; color: #000; text-align:center;}
  253. #title{font-size: 27px; font-family: {font:title}; color {color:links};
  254. font-weight:bold; text-align:center;}
  255.  
  256. .image{
  257. opacity:0;
  258. position:absolute;
  259. float:left;
  260. margin-left:520px;
  261. padding-left:15px;
  262.  
  263. }
  264. #entry:hover .image{
  265. -moz-transition: all 0.3s ease-out;
  266. -o-transition: all 0.3s ease-out;
  267. -webkit-transition: all 0.3s ease-out;
  268. transition: all 0.3s ease-out;
  269. opacity:1;
  270. }
  271.  
  272. #by {
  273. width: 100px;
  274. padding: 2px;
  275. line-height: 15px;
  276. bottom: 2px;
  277. background: white;
  278. position: fixed;
  279. opacity: .9;
  280. right: 2px;
  281. font-size: 7px;
  282. letter-spacing: 1px;
  283. font-family: {font:font};
  284. }
  285.  
  286. {block:IfMaximisedBackgroundImage}
  287. #bg img {
  288. z-index:-1;
  289. position:fixed;
  290. top:0;
  291. left:0;
  292. height:100%;
  293. width:100%;
  294. }
  295. {block:IfMaximisedBackgroundImage}
  296.  
  297. #links {
  298. margin-top: 4px;
  299. color: {Color:Links};
  300. width: auto;
  301. background-color: {Color:Link Box};
  302. display: inline-block;
  303. padding: 6px;
  304. font-family: {font:font};
  305. font-size:13px;
  306. line-height: 8px;
  307. height: 10px;
  308. {block:IfRoundedCorners}
  309. -moz-border-radius: 10px; -webkit-border-radius: 5px;
  310. {/block:IfRoundedCorners}
  311. text-align:center;
  312. -webkit-transition: all 0.4s ease-in;
  313. font-family: {font:font};
  314. }
  315.  
  316. #links:hover{
  317. -webkit-transition: all 0.4s ease-in;
  318. background-color: {Color:Link Box Hover};
  319. }
  320.  
  321. </style>
  322.  
  323.  
  324.  
  325. </head><body>
  326.  
  327.  
  328. {block:IfMaximisedBackgroundImage}<div id="bg"><img src="{image:Background}"></div>{/block:IfMaximisedBackgroundImage}
  329.  
  330.  
  331. <br>
  332. {block:IfShowHeaderImage}<a href="/"><img src="{image:header}"></a>{/block:IfShowHeaderImage}
  333. {block:IfNotShowHeaderImage}<div id="title"><a href="/">{Title}</a></div><br>{/block:IfNotShowHeaderImage}
  334. <div id="description">{Description}</div><br><div id="links"><a href="{text:Link One}">{text:Link One Title}</a></div>
  335. {/block:ifLinkOneTitle}
  336. {block:ifLinkTwoTitle}
  337. <div id="links"><a href="{text:Link Two}">{text:Link Two Title}</a></div>
  338. {/block:ifLinkTwoTitle}
  339. {block:ifLinkThreeTitle}
  340. <div id="links"><a href="{text:Link Three}">{text:Link Three Title}</a></div>
  341. {/block:ifLinkThreeTitle}
  342. {block:ifLinkFourTitle}
  343. <div id="links"><a href="{text:Link Four}">{text:Link Four Title}</a></div>
  344. {/block:ifLinkFourTitle}
  345. {block:ifLinkFiveTitle}
  346. <div id="links"><a href="{text:Link Five}">{text:Link Five Title}</a></div>
  347. {/block:ifLinkFiveTitle}
  348. {block:ifLinkSixTitle}
  349. <div id="links"><a href="{text:Link Six}">{text:Link Six Title}</a></div>
  350. {/block:ifLinkSixTitle}
  351. </div><br><br>
  352. <div id="left"><div class="autopagerize_page_element">{block:Posts}<div id="entry">
  353.  
  354. {block:IndexPage}<div class="image"><a href="{Permalink}"><img src="{image:Permalink}"></a></div>{/block:IndexPage}
  355.  
  356. {block:Text}{block:Title}{Title}{/block:Title}{Body}{/block:Text}
  357.  
  358. {block:Photo}{LinkOpenTag}<a href="{permalink}"><img src="{PhotoURL-500}"></a>{LinkCloseTag}{block:IfShowCaptions}{block:Caption}<div class="copy">{Caption}</div>{/block:Caption}{/block:IfShowCaptions}{block:PermalinkPage}{block:IfNotShowCaptions}{block:Caption}<div class="copy">{Caption}</div>{/block:Caption}{/block:IfNotShowCaptions}{TimeAgo}<br>{NoteCount} notes{/block:PermalinkPage}{/block:Photo}
  359.  
  360. {block:Photoset}{Photoset-500}{block:IfShowCaptions}{block:Caption}<div class="copy">{Caption}</div>{/block:Caption}{/block:IfShowCaptions}{block:PermalinkPage}{block:IfNotShowCaptions}{block:Caption}<div class="copy">{Caption}</div>{/block:Caption}{/block:IfNotShowCaptions}{TimeAgo}<br>{NoteCount} notes{/block:PermalinkPage}{/block:Photoset}
  361.  
  362. {block:Quote}{Quote}{block:Source} —{Source}{/block:Source}{/block:Quote}
  363.  
  364. {block:Link}<t><a href="{URL}" {Target}><big>{Name}</big></a></t>{block:Description}{Description}{/block:Description}{/block:Link}
  365.  
  366. {block:Chat}{block:Title}<t>{Title}</t>{/block:Title}{block:Lines}{block:Label}<b>{Label}</b>{/block:Label} {Line}<br>{/block:Lines}{/block:Chat}
  367.  
  368. {block:Audio}{AudioPlayerWhite}{block:Caption}{Caption}{/block:Caption}{/block:Audio}
  369.  
  370. {block:Video}{VideoEmbed-500}{block:IfShowCaptions}{block:Caption}<div class="copy">{Caption}</div>{/block:Caption}{/block:IfShowCaptions}{block:PermalinkPage}{block:IfNotShowCaptions}{block:Caption}<div class="copy">{Caption}</div>{/block:Caption}{/block:IfNotShowCaptions}{TimeAgo}<br>{NoteCount} notes{/block:PermalinkPage}{/block:Video}
  371.  
  372. {block:Answer}<i>{Asker}: {Question}</i><br>{Answer}{/block:Answer}
  373.  
  374. </div>{/block:Posts}</div>
  375. {block:PermalinkPage}{block:PostNotes}{PostNotes}{/block:PostNotes}{/block:PermalinkPage}
  376. </div>
  377.  
  378.  
  379.  
  380.  
  381. </body><div id="by">
  382. <center>THEME BY <a href="http://CYBERSITY.tumblr.com">CYBERSITY</a></center></div></html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement