Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <head>
- <!-----
- buttonmasher theme by sam @classroom.tumblr.com
- basecode by animecharacter
- another header theme! enjoy
- feel free to customize/edit as much as you want, you can change the credit pixel if it's not working right/it doesn't fit your aesthetic BUT otherwise don't touch it thx
- *DO NOT REMOVE THE CREDIT OR USE AS A BASECODE!!! I WILL CONFRONT YOU*
- lmk if there are any problems or u have a question
- ----->
- {block:ifrainbowlink}
- <script type='text/javascript'>
- //<![CDATA[
- var rate = 50;
- if (document.getElementById)
- window.onerror=new Function("return true")
- var objActive; // The object which event occured in
- var act = 0; // Flag during the action
- var elmH = 0; // Hue
- var elmS = {text:rainbow saturation}; // Saturation
- var elmV = 255; // Value
- var clrOrg; // A color before the change
- var TimerID; // Timer ID
- if (document.all) {
- document.onmouseover = doRainbowAnchor;
- document.onmouseout = stopRainbowAnchor;
- }
- else if (document.getElementById) {
- document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT);
- document.onmouseover = Mozilla_doRainbowAnchor;
- document.onmouseout = Mozilla_stopRainbowAnchor;
- }
- function doRainbow(obj)
- {
- if (act == 0) {
- act = 1;
- if (obj)
- objActive = obj;
- else
- objActive = event.srcElement;
- clrOrg = objActive.style.color;
- TimerID = setInterval("ChangeColor()",100);
- }
- }
- function stopRainbow()
- {
- if (act) {
- objActive.style.color = clrOrg;
- clearInterval(TimerID);
- act = 0;
- }
- }
- function doRainbowAnchor()
- {
- if (act == 0) {
- var obj = event.srcElement;
- while (obj.tagName != 'A' && obj.tagName != 'BODY') {
- obj = obj.parentElement;
- if (obj.tagName == 'A' || obj.tagName == 'BODY')
- break;
- }
- if (obj.tagName == 'A' && obj.href != '') {
- objActive = obj;
- act = 1;
- clrOrg = objActive.style.color;
- TimerID = setInterval("ChangeColor()",100);
- }
- }
- }
- function stopRainbowAnchor()
- {
- if (act) {
- if (objActive.tagName == 'A') {
- objActive.style.color = clrOrg;
- clearInterval(TimerID);
- act = 0;
- }
- }
- }
- function Mozilla_doRainbowAnchor(e)
- {
- if (act == 0) {
- obj = e.target;
- while (obj.nodeName != 'A' && obj.nodeName != 'BODY') {
- obj = obj.parentNode;
- if (obj.nodeName == 'A' || obj.nodeName == 'BODY')
- break;
- }
- if (obj.nodeName == 'A' && obj.href != '') {
- objActive = obj;
- act = 1;
- clrOrg = obj.style.color;
- TimerID = setInterval("ChangeColor()",100);
- }
- }
- }
- function Mozilla_stopRainbowAnchor(e)
- {
- if (act) {
- if (objActive.nodeName == 'A') {
- objActive.style.color = clrOrg;
- clearInterval(TimerID);
- act = 0;
- }
- }
- }
- function ChangeColor()
- {
- objActive.style.color = makeColor();
- }
- function makeColor()
- {
- // Don't you think Color Gamut to look like Rainbow?
- // HSVtoRGB
- if (elmS == 0) {
- elmR = elmV; elmG = elmV; elmB = elmV;
- }
- else {
- t1 = elmV;
- t2 = (255 - elmS) * elmV / 255;
- t3 = elmH % 60;
- t3 = (t1 - t2) * t3 / 60;
- if (elmH < 60) {
- elmR = t1; elmB = t2; elmG = t2 + t3;
- }
- else if (elmH < 120) {
- elmG = t1; elmB = t2; elmR = t1 - t3;
- }
- else if (elmH < 180) {
- elmG = t1; elmR = t2; elmB = t2 + t3;
- }
- else if (elmH < 240) {
- elmB = t1; elmR = t2; elmG = t1 - t3;
- }
- else if (elmH < 300) {
- elmB = t1; elmG = t2; elmR = t2 + t3;
- }
- else if (elmH < 360) {
- elmR = t1; elmG = t2; elmB = t1 - t3;
- }
- else {
- elmR = 0; elmG = 0; elmB = 0;
- }
- }
- elmR = Math.floor(elmR).toString(16);
- elmG = Math.floor(elmG).toString(16);
- elmB = Math.floor(elmB).toString(16);
- if (elmR.length == 1) elmR = "0" + elmR;
- if (elmG.length == 1) elmG = "0" + elmG;
- if (elmB.length == 1) elmB = "0" + elmB
- elmH = elmH + rate;
- if (elmH >= 360)
- elmH = 0;
- return '#' + elmR + elmG + elmB;
- }
- //]]>
- </script>
- {/block:ifrainbowlink}
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
- <script src="https://static.tumblr.com/iuw14ew/VSQma1786/jquery.style-my-tooltips.js"></script>
- <script>
- (function($){
- $(document).ready(function(){
- $("a[title]").style_my_tooltips({
- tip_follows_cursor:true,
- tip_delay_time:90,
- tip_fade_speed:600,
- attribute:"title"
- });
- });
- })(jQuery);
- </script>
- <meta charset="utf-8">
- <meta https-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
- {block:Description}
- <meta name="description" content="{MetaDescription}" />
- {/block:Description}
- <title>{Title}</title>
- <link rel="shortcut icon" href="{Favicon}">
- <link rel="alternate" type="application/rss+xml" href="{RSS}">
- <link rel="stylesheet" href="https://static.tumblr.com/qxrkgx6/RWPmgn2qa/normalize.min.css">
- <script src="https://static.tumblr.com/qxrkgx6/LuRmgn2rm/modernizr-2.6.2.min.js"></script>
- <meta name="image:header image" content="">
- <meta name="image:background image" content="">
- <meta name="image:left side image" content="">
- <meta name="image:right side image" content="">
- <meta name="image:pixel 1" content="">
- <meta name="image:pixel 2" content="">
- <meta name="image:pixel 3" content="">
- <meta name="color:background" content="#fff">
- <meta name="color:text" content="#000">
- <meta name="color:link" content="#ccc">
- <meta name="color:link hover" content="#eee">
- <meta name="if:center align" content="">
- <meta name="if:left align" content="">
- <meta name="if:description" content="">
- <meta name="if:caption" content="">
- <meta name="if:cover background" content="">
- <meta name="if:rainbow link" content="">
- <meta name="if:glow" content="">
- <meta name="if:brackets" content="">
- <meta name="if:no brackets" content="">
- <meta name="text:header size" content="200">
- <meta name="text:post size" content="400">
- <meta name="text:font" content="verdana">
- <meta name="text:font size" content="19">
- <meta name="text:rainbow saturation" content="128">
- <meta name="text:pixel 1" content="home">
- <meta name="text:pixel 1 url" content="/">
- <meta name="text:pixel 2" content="ask">
- <meta name="text:pixel 2 url" content="/ask">
- <meta name="text:pixel 3" content="about">
- <meta name="text:pixel 3 url" content="/about">
- <style type="text/css">
- ::-webkit-scrollbar {width: 0px; height: 3px; background: {color:Background};}
- ::-webkit-scrollbar-thumb {background-color:{color:Background} ;}
- .tooltip{
- display: inline;
- position: relative;
- }
- #s-m-t-tooltip {
- max-width:300px; /*how big the tooltip can be at most*/
- border-radius: 0px; /*change your border radius*/
- padding:3px 4px 5px 4px; /*padding inside tooltip*/
- margin:20px 7px -2px 20px; /*distance from word*/
- background:transparent; /*background color*/
- font-family:{text:Font}; /*tooltip font*/
- font-size:{text:Font Size}px; /*tooltip font size*/
- letter-spacing:1px; /*tooltip letter spacing*/
- text-transform:lowercase; /*makes the tooltip title uppercase*/
- color:{color:Text}; /*tooltip font color*/
- z-index:999999999999999999999999999999999999;
- }
- /*
- general text styles, fonts and colours
- */
- body {
- margin:0px;
- background:{color:background} url({image:background image});
- background-image: url('{image:background image}');
- background-attachment: fixed;
- background-position: top left;
- background-size: {block:ifcoverbackground}cover{/block:ifcoverbackground};
- font-family: {text:font};
- font-size:{text:font size}px;
- line-height:140%;
- color: {color:text};
- {block:ifglow}
- text-shadow:0 0 10px;
- {/block:ifglow}
- }
- p{
- margin:0 0 10px 0;
- padding:0;
- }
- pre {
- white-space: pre-wrap;
- white-space: -moz-pre-wrap;
- white-space: -pre-wrap;
- white-space: -o-pre-wrap;
- word-wrap: break-word;
- }
- a{
- text-decoration:none;
- color:{color:link};
- }
- a:hover{
- text-decoration:none;
- color:{color:link hover};
- }
- li{
- margin-left:-15px;
- }
- /*
- containers etc
- */
- #wrapper{
- width:{text:post size}px;
- margin:50px auto;
- }
- #header{
- position:float;
- {block:ifcenteralign}
- text-align:center;
- {/block:ifcenteralign}
- {block:ifleftalign}
- margin-left:-450px;
- {/block:ifleftalign}
- }
- #header img{
- width:{text:header size}px;
- }
- #content{
- width:{text:post size}px;
- overflow:hidden;
- {block:ifcenteralign}
- text-align:center;
- {/block:ifcenteralign}
- {block:ifleftalign}
- margin-left:-450px;
- {/block:ifleftalign}
- }
- #pixel{
- {block:ifcenteralign}
- text-align:center;
- {/block:ifcenteralign}
- {block:ifleftalign}
- margin-left:-450px;
- {/block:ifleftalign}
- }
- .post{
- width:{text:post size}px;
- margin:0 0 50px 0;
- overflow:hidden;
- margin-top:20px;
- {block:ifcenteralign}
- text-align:center;
- {/block:ifcenteralign}
- {block:ifleftalign}
- text-align:left;
- {/block:ifleftalign}
- }
- #header img, .post img{
- max-width:100%;
- }
- #nav{
- margin:50px 0 0 0;
- }
- /*
- content in the body of the posts - quotes, asks, etc
- "media" contains photos, photosets, videos, audio posts
- */
- .media{
- margin:0 0 10px 0;
- }
- .title{
- font-weight:normal;
- font-size:18px;
- margin:0 0 10px 0;
- }
- .quote{
- font-weight:normal;
- font-size:16px;
- font-style:italic;
- margin:0 0 10px 0;
- }
- .question{
- margin-bottom:10px;
- }
- blockquote{
- margin:0 0 10px 10px;
- padding:0 0 0 10px;
- border-left:dashed 1px {color:text};
- }
- /*
- post footers - date, tags, via and source
- */
- .post .footer{
- margin:0;
- {block:ifcenteralign}
- text-align:center;
- {/block:ifcenteralign}
- {block:ifleftalign}
- text-align:left;
- {/block:ifleftalign}
- }
- /*
- post notes
- */
- ol.notes{
- list-style-type:none;
- padding:0;
- margin:0;
- }
- ol.notes li.note img{
- width:16px;
- height:16px;
- }
- ol.notes li.note{
- margin:0px;
- }
- {CustomCSS}
- </style>
- </head>
- <body>
- <div id="side image">
- <img style="position: fixed; left: 0; bottom: 0;" src="{image:left side image}">
- <img style="position: fixed; right: 0; bottom: 0;" src="{image:right side image}">
- </div>
- <div id="wrapper">
- <div id="header">
- <a title="{title}" href="/"> <img src="{image:header image}"> </a>
- {block:ifDescription}
- <p>{Description}</p>
- {/block:ifDescription}
- </div>
- <p>
- <div id="pixel">
- <a title="{text:pixel 1}" href="{text:pixel 1 url}"><img src="{image:pixel 1}"></a>
- <a title="{text:pixel 2}" href="{text:pixel 2 url}"><img src="{image:pixel 2}"></a>
- <a a title="{text:pixel 3}" href="{text:pixel 3 url}"><img src="{image:pixel 3}"></a>
- <p>
- {block:HasPages}
- {block:Pages}
- <a href="{URL}">{Label}</a><br>
- {/block:Pages}
- {/block:HasPages}
- </div>
- <div id="content">
- {block:Posts}
- <!-- {block:NoRebloggedFrom}
- {block:RebloggedFrom}{ReblogParentName}{/block:RebloggedFrom}
- {/block:NoRebloggedFrom} -->
- {block:ContentSource}<!-- {SourceURL}
- {block:SourceLogo}<img src="{BlackLogoURL}"width="{LogoWidth}" height="{LogoHeight}" alt="{SourceTitle}" />{/block:SourceLogo}
- {block:NoSourceLogo}{SourceLink}{/block:NoSourceLogo} -->
- {/block:ContentSource}
- <div class="post">
- {block:Text}
- {block:Title}
- <div class="title">{Title}</div>
- {/block:Title}
- {Body}
- {/block:Text}
- {block:Photo}
- <div class="media">{LinkOpenTag}<img src="{PhotoURL-500}" alt="{PhotoAlt}"/>{LinkCloseTag}</div>
- {block:ifCaption}<div class="caption">{Caption}</div>{/block:ifCaption}
- {/block:Photo}
- {block:Photoset}
- <div class="media">{Photoset-400}</div>
- {block:ifCaption}<div class="caption">{Caption}</div>{/block:ifCaption}
- {/block:Photoset}
- {block:Quote}
- <div class="quote">"{Quote}"</div>
- {block:Source}
- <div class="quotesource">{Source}</div>
- {/block:Source}
- {/block:Quote}
- {block:Link}
- <div class="title"><a href="{URL}">{Name}</a></div>
- {block:Description}
- <div class="description">{Description}</div>
- {/block:Description}
- {/block:Link}
- {block:Chat}
- {block:Title}
- <div class="title">{Title}</div>
- {/block:Title}
- {block:Lines}
- <div class="{Alt} user_{UserNumber}">
- {block:Label}
- <b>{Label}</b>{/block:Label}
- {Line}
- </div>
- {/block:Lines}
- {/block:Chat}
- {block:Video}
- <div class="media">{Video-400}</div>
- {block:ifCaption}<div class="caption">{Caption}</div>{/block:ifCaption}
- {/block:Video}
- {block:Audio}
- <div class="media">
- {block:AlbumArt}<img src="{AlbumArtURL}">{/block:AlbumArt}
- {AudioPlayerWhite}
- {block:TrackName}{TrackName}<br>{/block:TrackName}
- {block:Artist}{Artist}<br>{/block:Artist}
- {block:Album}{Album}{/block:Album}
- </div>
- {block:ifCaption}{Caption}{/block:ifCaption}
- {/block:Audio}
- {block:Answer}
- <div class="question">{Asker}: {Question}</div>
- <div class="caption">{Answer}</div>
- {/block:Answer}
- {block:Date}
- <div class="footer">
- {block:ifnobrackets}<a href="{Permalink}">{block:NoteCount} {NoteCountWithLabel}{/block:NoteCount}</a>{/block:ifnobrackets}
- {block:ifbrackets}<a href="{Permalink}">{block:NoteCount} [{NoteCountWithLabel}]{/block:NoteCount}</a>{/block:ifbrackets}
- {block:HasTags}<br>{block:Tags}<a href="{TagURL}">#{Tag}</a> {/block:Tags}{/block:HasTags}
- </div>
- {block:PermalinkPage}
- {block:NoteCount}
- {block:PostNotes}{PostNotes}{/block:PostNotes}
- {/block:NoteCount}
- {/block:PermalinkPage}
- {/block:Date}
- </div>
- {/block:Posts}
- {block:Pagination}
- <div id="nav">
- {block:PreviousPage}<a href="{PreviousPage}">⇇ prev</a>{/block:PreviousPage}
- {block:NextPage}<a href="{NextPage}">next ⇉</a>{/block:NextPage}
- </div>
- {/block:Pagination}
- </div>
- </div>
- </div>
- <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
- <script>window.jQuery || document.write('<script src="https://static.tumblr.com/qxrkgx6/q6kmgn2w2/jquery-1.8.3.min.js"><\/script>')</script>
- <!-----
- *ONLY CHANGE THE PIXEL! DONT REMOVE I WILL NOTICE*
- ------>
- <div style="position:fixed;bottom:10px;opacity:1;right:20px;padding:px;font-size:8px;font-weight:normal;"><a title="theme"href="https
- ://classroom.tumblr.com/"><img src="https://78.media.tumblr.com/292ed3c97f3cca46180ab84fe1f7d3f2/tumblr_inline_p7tm2v1prp1v2qfml_500.png"></a></div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement