Advertisement
nofacesface

Rainbow Redirect

Nov 5th, 2013
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.92 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3.  
  4. <!--PAGE BY NO-FACES-FACE
  5. steal and I'll find you and punch you in the throat (โ—กโ€ฟโ—กโœฟ)
  6. -->
  7.  
  8. <head>
  9.  
  10. <script type='text/javascript'>
  11. //<![CDATA[
  12. var rate = 7;
  13. if (document.getElementById)
  14. window.onerror=new Function("return true")
  15.  
  16. var objActive; // The object which event occured in
  17. var act = 0; // Flag during the action
  18. var elmH = 0; // Hue
  19. var elmS = 128; // Saturation
  20. var elmV = 255; // Value
  21. var clrOrg; // A color before the change
  22. var TimerID; // Timer ID
  23. if (document.all) {
  24. document.onmouseover = doRainbowAnchor;
  25. document.onmouseout = stopRainbowAnchor;
  26. }
  27. else if (document.getElementById) {
  28. document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT);
  29. document.onmouseover = Mozilla_doRainbowAnchor;
  30. document.onmouseout = Mozilla_stopRainbowAnchor;
  31. }
  32. function doRainbow(obj)
  33. {
  34. if (act == 0) {
  35. act = 1;
  36. if (obj)
  37. objActive = obj;
  38. else
  39. objActive = event.srcElement;
  40. clrOrg = objActive.style.color;
  41. TimerID = setInterval("ChangeColor()",100);
  42. }
  43. }
  44. function stopRainbow()
  45. {
  46. if (act) {
  47. objActive.style.color = clrOrg;
  48. clearInterval(TimerID);
  49. act = 0;
  50. }
  51. }
  52. function doRainbowAnchor()
  53. {
  54. if (act == 0) {
  55. var obj = event.srcElement;
  56. while (obj.tagName != 'A' && obj.tagName != 'BODY') {
  57. obj = obj.parentElement;
  58. if (obj.tagName == 'A' || obj.tagName == 'BODY')
  59. break;
  60. }
  61. if (obj.tagName == 'A' && obj.href != '') {
  62. objActive = obj;
  63. act = 1;
  64. clrOrg = objActive.style.color;
  65. TimerID = setInterval("ChangeColor()",100);
  66. }
  67. }
  68. }
  69. function stopRainbowAnchor()
  70. {
  71. if (act) {
  72. if (objActive.tagName == 'A') {
  73. objActive.style.color = clrOrg;
  74. clearInterval(TimerID);
  75. act = 0;
  76. }
  77. }
  78. }
  79. function Mozilla_doRainbowAnchor(e)
  80. {
  81. if (act == 0) {
  82. obj = e.target;
  83. while (obj.nodeName != 'A' && obj.nodeName != 'BODY') {
  84. obj = obj.parentNode;
  85. if (obj.nodeName == 'A' || obj.nodeName == 'BODY')
  86. break;
  87. }
  88. if (obj.nodeName == 'A' && obj.href != '') {
  89. objActive = obj;
  90. act = 1;
  91. clrOrg = obj.style.color;
  92. TimerID = setInterval("ChangeColor()",100);
  93. }
  94. }
  95. }
  96. function Mozilla_stopRainbowAnchor(e)
  97. {
  98. if (act) {
  99. if (objActive.nodeName == 'A') {
  100. objActive.style.color = clrOrg;
  101. clearInterval(TimerID);
  102. act = 0;
  103. }
  104. }
  105. }
  106. function ChangeColor()
  107. {
  108. objActive.style.color = makeColor();
  109. }
  110. function makeColor()
  111. {
  112. // Don't you think Color Gamut to look like Rainbow?
  113. // HSVtoRGB
  114. if (elmS == 0) {
  115. elmR = elmV; elmG = elmV; elmB = elmV;
  116. }
  117. else {
  118. t1 = elmV;
  119. t2 = (255 - elmS) * elmV / 255;
  120. t3 = elmH % 60;
  121. t3 = (t1 - t2) * t3 / 60;
  122. if (elmH < 60) {
  123. elmR = t1; elmB = t2; elmG = t2 + t3;
  124. }
  125. else if (elmH < 120) {
  126. elmG = t1; elmB = t2; elmR = t1 - t3;
  127. }
  128. else if (elmH < 180) {
  129. elmG = t1; elmR = t2; elmB = t2 + t3;
  130. }
  131. else if (elmH < 240) {
  132. elmB = t1; elmR = t2; elmG = t1 - t3;
  133. }
  134. else if (elmH < 300) {
  135. elmB = t1; elmG = t2; elmR = t2 + t3;
  136. }
  137. else if (elmH < 360) {
  138. elmR = t1; elmG = t2; elmB = t1 - t3;
  139. }
  140. else {
  141. elmR = 0; elmG = 0; elmB = 0;
  142. }
  143. }
  144. elmR = Math.floor(elmR).toString(16);
  145. elmG = Math.floor(elmG).toString(16);
  146. elmB = Math.floor(elmB).toString(16);
  147. if (elmR.length == 1) elmR = "0" + elmR;
  148. if (elmG.length == 1) elmG = "0" + elmG;
  149. if (elmB.length == 1) elmB = "0" + elmB
  150. elmH = elmH + rate;
  151. if (elmH >= 360)
  152. elmH = 0;
  153. return '#' + elmR + elmG + elmB;
  154. }
  155. //]]>
  156. </script>
  157.  
  158.  
  159.  
  160. <meta name="color:Link" content="#000"/>
  161. <meta name="color:Background" content="#fcfcfc" />
  162. <meta name="color:Text" content="#000">
  163.  
  164.  
  165.  
  166. <meta name="image:picture" content="http://static.tumblr.com/cbjpgjf/xAEmvt9eo/tumblr_mm95slwg3r1qzgamco1_r1_1280.jpg"/>
  167.  
  168. <meta name="image:picture2" content="http://static.tumblr.com/cbjpgjf/QCDmvt9f1/tumblr_mttlc4sfyn1qzgamco1_1280.jpg"/>
  169.  
  170. <meta name="image:Background" content="http://static.tumblr.com/cbjpgjf/oo2mvt9gc/tumblr_m3hswandi51r0oika.gif" />
  171.  
  172. <meta name="text:New Blog URL" content="" />
  173. <meta name="text:New Blog" content="" />
  174.  
  175. <title>{Title}{block:PostTitle} - {PostTitle}{/block:PostTitle}</title> {block:Description}<meta name="description goes here along with any other codes you want (ex. music codes, hits counter)"
  176. content="{MetaDescription}" />{/block:Description}
  177. <link rel="shortcut icon" href="{Favicon}">
  178.  
  179.  
  180.  
  181.  
  182. <style type="text/css">
  183.  
  184.  
  185. #tumblr_controls {
  186. position: fixed !important;
  187. }
  188.  
  189. iframe#tumblr_controls { white-space:nowrap; -webkit-filter: invert(100%); -moz-filter: invert(100%); -o-filter: invert(100%); -ms-filter: invert(100%); filter: invert(100%); opacity:0.2; right:3px !important; position: fixed !important;-webkit-transition: opacity 0.7s linear;opacity: 0.2;-webkit-transition: all 0.8s ease-out;-moz-transition: all 0.8s ease-out;transition: all 0.8s ease-out;}
  190.  
  191. iframe#tumblr_controls:hover{-webkit-transition: opacity 0.2s linear;opacity: 1;-webkit-transition: all 0.4s ease-out;-moz-transition: all 0.4s ease-out;transition: all 0.4s ease-out;}
  192.  
  193.  
  194.  
  195. /* GENERAL */
  196.  
  197.  
  198. @font-face {
  199. font-family: "b";
  200. src: url('http://static.tumblr.com/cbjpgjf/wPKmv5fe4/slkscr.ttf');
  201. }
  202.  
  203.  
  204.  
  205.  
  206. body {
  207. background-color: {color:Background};
  208.  
  209. background-image: url({image:Background});
  210. margin: 0;
  211. word-wrap: break-word;
  212. background-attachment: fixed;
  213.  
  214. }
  215.  
  216.  
  217. a:link, a:active, a:visited{text-decoration: none;color: {color:Link};
  218. -webkit-transition: all 0.7s ease;transition: all 0.7s ease;
  219. -moz-transition: all 0.7s ease;-o-transition: all 0.7s ease;}
  220.  
  221. a:hover{}
  222.  
  223.  
  224.  
  225.  
  226.  
  227. /* SIDEBAR */
  228.  
  229. #content {
  230. position:relative;
  231. width:300px;
  232. height: 300px;
  233. text-align:center;
  234. margin-left: auto;
  235. margin-right: auto;
  236. margin-top: 180px;}
  237.  
  238. .circle {
  239. border-top-left-radius: 500px ;
  240. border-top-right-radius:500px ;
  241. border-bottom-right-radius: 500px ;
  242. border-bottom-left-radius: 500px ;
  243. z-index: 999;
  244. position:absolute;
  245. background-color: white;
  246. width:126px; height:126px;
  247. margin-top: 87px; margin-left: 85px;
  248. -webkit-transition: all 0.5s ease-in-out;-moz-transition: all 0.5s ease-in-out; -o-transition: all 0.5s ease-in-out; transition: all 0.5s ease-in-out;
  249. }
  250.  
  251. .circle img {
  252. border-top-left-radius: 500px ;
  253. border-top-right-radius:500px ;
  254. border-bottom-right-radius: 500px ;
  255. border-bottom-left-radius: 500px ;
  256. width: 100%;
  257. height: 126px;
  258. }
  259.  
  260. #content:hover .circle {
  261. opacity: 0;
  262. }
  263.  
  264. .circle2 {
  265. overflow: hidden;
  266. opacity: 0;
  267. border-top-left-radius: 500px ;
  268. border-top-right-radius:500px ;
  269. border-bottom-right-radius: 500px ;
  270. border-bottom-left-radius: 500px ;
  271. z-index: 999;
  272. position:absolute;
  273. background-color: white;
  274. width:126px; height:126px;
  275. margin-top: 87px; margin-left: 85px;
  276. -webkit-transition: all 0.5s ease-in-out;-moz-transition: all 0.5s ease-in-out; -o-transition: all 0.5s ease-in-out; transition: all 0.5s ease-in-out;
  277. }
  278.  
  279. .circle2 img {
  280. border-top-left-radius: 500px ;
  281. border-top-right-radius:500px ;
  282. border-bottom-right-radius: 500px ;
  283. border-bottom-left-radius: 500px ;
  284. width: 100%;
  285. height: 126px;
  286. }
  287.  
  288. #content:hover .circle2 {
  289. opacity: 1;
  290. }
  291.  
  292. .textbox {
  293. opacity: 1;
  294. width:105px; height:40px;
  295. margin-top: -90px; margin-left: 10px;
  296. position: absolute;
  297. -webkit-transition: all 0.5s ease-in-out;-moz-transition: all 0.5s ease-in-out; -o-transition: all 0.5s ease-in-out; transition: all 0.5s ease-in-out;
  298.  
  299. }
  300.  
  301. #content:hover .textbox {
  302. opacity: 0;
  303. }
  304.  
  305. .textbox2 {
  306. opacity: 0;
  307. width:105px; height:40px;
  308. margin-top: -90px; margin-left: 10px;
  309. position: absolute;
  310. -webkit-transition: all 0.5s ease-in-out;-moz-transition: all 0.5s ease-in-out; -o-transition: all 0.5s ease-in-out; transition: all 0.5s ease-in-out;
  311. }
  312.  
  313. #content:hover .textbox2 {
  314. opacity: 1;
  315. }
  316.  
  317. .text1 {
  318. background-color: rgba(255,255,255,0.6);
  319. margin-top: 0px;
  320. text-align: center;
  321. font-family:b;
  322. font-size: 8px;
  323. letter-spacing: 4px;
  324. margin-top: 15px;
  325. line-height: 12px;
  326. padding: 2px;
  327. z-index: 999;
  328. color: {color:text};
  329. -webkit-transition: all 0.7s ease-in-out;-moz-transition: all 0.7s ease-in-out; -o-transition: all 0.7s ease-in-out; transition: all 0.7s ease-in-out;}
  330.  
  331. .text2 {
  332. background-color: rgba(255,255,255,0.6);
  333. margin-top: 0px;
  334. text-align: center;
  335. font-family:b;
  336. font-size: 8px;
  337. letter-spacing: 4px;
  338. margin-top: 15px;
  339. line-height: 12px;
  340. padding: 2px;
  341. z-index: 999;
  342. color: {color:text};
  343. -webkit-transition: all 0.7s ease-in-out;-moz-transition: all 0.7s ease-in-out; -o-transition: all 0.7s ease-in-out; transition: all 0.7s ease-in-out;}
  344.  
  345.  
  346. .c img{width:100%;}
  347. .c{position:fixed;right:5px;bottom:5px;
  348. -webkit-transition: 0.5s ease;transition: 0.5s ease;
  349. -o-transition: 0.5s ease;-moz-transition: 0.5s ease;}
  350.  
  351. .cboth:hover .c {
  352. opacity: 0;
  353. }
  354.  
  355. .cr img{width:100%;}
  356. .cr{position:fixed;right:5px;bottom:5px; opacity: 0;
  357. -webkit-transition: 0.5s ease;transition: 0.5s ease;
  358. -o-transition: 0.5s ease;-moz-transition: 0.5s ease;}
  359.  
  360. .cboth:hover .cr {
  361. opacity: 1;
  362. }
  363.  
  364.  
  365.  
  366.  
  367. </style>
  368. </head>
  369. <body>
  370.  
  371. <div id="center">
  372. <div id="content">
  373.  
  374. <div class="circle"><img src="{image:picture}">
  375. <div class="textbox"><div class="text1">moved to</div></div>
  376. </div>
  377.  
  378. <div class="circle2"><img src="{image:picture2}">
  379. <div class="textbox2"><div class="text2"><a href="{text:New Blog URL}">{text:New Blog}</a></div></div>
  380. </div>
  381.  
  382.  
  383.  
  384. </div>
  385. </div>
  386.  
  387. <div class="cboth">
  388. <div class="c">
  389. <img src="http://static.tumblr.com/cbjpgjf/7Bcmvartf/logo2.01.png">
  390. </div>
  391.  
  392. <div class="cr">
  393. <a href="http://nff-themes.tumblr.com">
  394. <img src="http://static.tumblr.com/cbjpgjf/H2jmvat5o/logo2.02.png"></a>
  395. </div>
  396. </div>
  397.  
  398.  
  399. <style type="text/css">body, a:hover {cursor: url(http://cur.cursors-4u.net/others/oth-6/oth589.cur), progress !important;}</style><a href="http://www.cursors-4u.com/cursor/2011/03/03/tiny-hand-10.html" target="_blank" border="0" alt="Tiny Hand" style="position:absolute; top: 0px; right: 0px;" /></a>
  400.  
  401. </body>
  402. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement