Advertisement
themesbyhaleigh

icons (page #14)

Sep 13th, 2014
3,573
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.44 KB | None | 0 0
  1. <!-- icons (page #14) by nerdydean. don't remove the credit. -->
  2.  
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4.  
  5. <head>
  6.  
  7. <script src="http://static.tumblr.com/iuw14ew/VSQma1786/jquery.style-my-tooltips.js"></script>
  8. <script>
  9. (function($){
  10. $(document).ready(function(){
  11. $("a[title]").style_my_tooltips({
  12. tip_follows_cursor:true,
  13. tip_delay_time:20,
  14. tip_fade_speed:400,
  15. attribute:"title"
  16. });
  17. });
  18. })(jQuery);
  19. </script>
  20.  
  21. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
  22.  
  23. <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
  24.  
  25. <title>{Title}</title>
  26. <link rel="shortcut icon" href="{Favicon}">
  27. <link rel="alternate" type="application/rss+xml" href="{RSS}">
  28.  
  29. <style type="text/css">
  30.  
  31. #content {
  32. position: absolute;
  33. padding: 0px;
  34. margin-top: 0px;
  35. margin-left: 0px;
  36. overflow: auto;
  37. margin-top:10px;
  38. }
  39.  
  40. #content img {
  41. padding: 5px;
  42. width: 100px;
  43. margin: 3px;
  44. border: 1px solid #ffffff;
  45. background-color: #ffffff;
  46. }
  47.  
  48. #s-m-t-tooltip {
  49. max-width:300px;
  50. padding:2px 2px 2px 2px;
  51. margin:20px 0px 0px 20px;
  52. background:#fff;
  53. border:1px solid #eee;
  54. text-transform:lowercase;
  55. color:#2e2e2e;
  56. z-index:999999999999999999999999999999999999;
  57. text-decoration:bold;
  58. font-family: helvetica;
  59. font-size: 10px;
  60. letter-spacing: 0px;
  61. }
  62.  
  63. ::-webkit-scrollbar {
  64. width: 3px;
  65. height:auto;
  66. background:#fff;
  67. }
  68.  
  69. ::-webkit-scrollbar-corner {
  70. padding:2px;
  71. background:#fff;
  72. }
  73.  
  74. ::-webkit-scrollbar-button:vertical {
  75. height:5px;
  76. display: block;
  77. background:#2e2e2e;
  78. }
  79.  
  80. ::-webkit-scrollbar-button:horizontal {
  81. width: 3px;
  82. height: 5px;
  83. display: block;
  84. background:#2e2e2e;
  85. }
  86.  
  87. ::-webkit-scrollbar-thumb:vertical {
  88. background:#2e2e2e;
  89. }
  90.  
  91. ::-webkit-scrollbar-thumb:horizontal {
  92. background: #fff;
  93. }
  94.  
  95. ::-webkit-scrollbar-thumb {
  96. background: #2e2e2e;
  97. }
  98.  
  99. body {
  100. color:#333;
  101. font-family:calibri;
  102. font-weight:100;
  103. font-size:11px;
  104. text-align:justify;
  105. margin:0;
  106. line-height:18px;
  107. background:#fff;
  108. }
  109.  
  110. a {
  111. color:#000;
  112. text-decoration:none;
  113. }
  114.  
  115. a:hover {
  116. text-decoration:underline;
  117. }
  118.  
  119. img {
  120. border:none;
  121. text-decoration:none;
  122. }
  123.  
  124. p {
  125. margin-top:5px;
  126. margin-bottom:5px;
  127. }
  128.  
  129. #con {
  130. left:50%;
  131. margin-left:-460px;
  132. position:absolute;
  133. }
  134.  
  135. .posts {
  136. width:940px;
  137. background:#fff;
  138. margin:50px 0;
  139. }
  140.  
  141. .l {
  142. background:#fff;
  143. margin-top:0px;
  144. width:940px;
  145. text-align:center;
  146. font-family:calibri;
  147. text-transform:uppercase;
  148. }
  149.  
  150. #title {
  151. font-size:14px;
  152. margin-bottom:12px;
  153. text-align:center;
  154. letter-spacing:1px;
  155. font-family:calibri;
  156. text-transform:uppercase;
  157. color:#000;
  158. background:#fff;
  159. padding:15px;
  160. border-bottom:1px solid #eee;
  161. }
  162.  
  163. .links {
  164. padding-bottom:10px;
  165. border-bottom:1px solid #eee;
  166. }
  167.  
  168. .links a {
  169. margin:0 5px;
  170. padding:2px 5px;
  171. border:none;
  172. }
  173.  
  174. .media {
  175. color: #a1a1a1;
  176. background: #ffffff;
  177. }
  178.  
  179. #filters {
  180. background: #fff;
  181. }
  182.  
  183. #filters a {
  184. margin: 5px;
  185. text-transform: uppercase;
  186. }
  187.  
  188.  
  189. </style>
  190.  
  191. <script type="text/javascript">
  192. $(document).ready(function() {
  193. // Tooltip only Text
  194. $('.masterTooltip').hover(function(){
  195. // Hover over code
  196. var title = $(this).attr('title');
  197. $(this).data('tipText', title).removeAttr('title');
  198. $('<p class="tooltip"></p>')
  199. .text(title)
  200. .appendTo('body')
  201. .fadeIn('slow');
  202. }, function() {
  203. // Hover out code
  204. $(this).attr('title', $(this).data('tipText'));
  205. $('.tooltip').remove();
  206. }).mousemove(function(e) {
  207. var mousex = e.pageX + 20; //Get X coordinates
  208. var mousey = e.pageY + 10; //Get Y coordinates
  209. $('.tooltip')
  210. .css({ top: mousey, left: mousex })
  211. });
  212. });
  213. </script>
  214.  
  215. <script>
  216. $(document).ready(function(){
  217. $(".filters").click(function(e) {
  218. e.preventDefault();
  219. $(".media").not("." + $(this).attr("rel")).hide(500);
  220. $("." + $(this).attr("rel")).show(500);
  221. });
  222. });
  223. </script>
  224.  
  225. <script type="text/javascript">
  226. jQuery(document).ready(function() {
  227. jQuery(".sub").hide();
  228. //toggle the componenet with class msg_body
  229. jQuery(".cthrough").click(function()
  230. {
  231. jQuery(this).next(".sub").slideToggle(500);
  232. });});
  233. </script>
  234.  
  235. </head>
  236.  
  237. <link href="#s-m-t-tooltip" rel="stylesheet" type="text/css" />
  238.  
  239. <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
  240.  
  241. <script src="http://static.tumblr.com/iuw14ew/VSQma1786/jquery.style-my-tooltips.js"></script>
  242.  
  243. <script>
  244. (function($){
  245. $(document).ready(function(){
  246. $("a[title]").style_my_tooltips({
  247. tip_follows_cursor:true,
  248. tip_delay_time:90,
  249. tip_fade_speed:600,
  250. attribute:"title"
  251. });
  252. });
  253. })(jQuery);
  254. </script>
  255.  
  256. <body>
  257.  
  258. <div id="con">
  259.  
  260. <div class="l">
  261. <!-- this is your title -->
  262. <div id="title">[your] icons
  263. <br><b><small><small>
  264. <!-- these are your links -->
  265. <a href="/">home</a>
  266. <a href="/ask">request</a>
  267. <a href="/">link3</a>
  268. <!-- please don't remove this, as this is the credit. -->
  269. <a href="http://hellish.co.vu" title="theme by nerdydean">cr.</a>
  270. </b><br>
  271. <!-- this is your description -->
  272. feel free to use them and request c:
  273. <br></small></small>
  274. </div>
  275.  
  276. <div class="links">
  277. <div id="filters">
  278. <!--
  279.  
  280. these are your basic filters. they're your main ones, like show titles or whatever. i'll explain how these work.
  281.  
  282. <a href="#" rel="media" class="filters"><b>all</b></a>
  283. this is the first filter. you can't change much about this one without messing up the whole code. the only part you can change is this part:
  284.  
  285. <b>all</b>
  286.  
  287. you can change it to say something else or get rid of the bold text. but like i said, if you change anything else, it'll mess everything up.
  288.  
  289. now i'll show you a better example of a filter that you can mess around with! here's a filter i use for my supernatural icons:
  290.  
  291. <a href="#" rel="spn" class="filters">supernatural</a>
  292.  
  293. what you can change on the filters is what it says in quotations after rel= (in this case, "spn") and, of course, the name of the filter that everyone will see, which, in this case, is supernatural.
  294.  
  295. the <a href="#" is what creates the "link" that makes the icons under this filter show up.
  296.  
  297. the rel="spn" indicates what icons you want to show up. in this case, it's all the icons i've marked with "spn", which you'll see how to do below. WARNING: YOU CAN'T MAKE THIS MORE THAN ONE WORD, OR IT'LL MESS IT UP.
  298.  
  299. the class="filters" is another part that just generally makes the icons show up. and, of course, what you put after class="filters"> is the name of the filter that those using your page will see.
  300.  
  301. you can have as many of these as you want, or as few as you want. but, remember, you have to have the one that says all, or else nothing will show up.
  302.  
  303. i have a basic little structure for my page, you can use it of course, or do whatever. i left in my filters just so that you can see how it looks, and so that the page will work as an example. feel free to delete them/change them/whatever to make your own page!
  304.  
  305. -->
  306. <a href="#" rel="media" class="filters"><b>all</b></a> - <a href="#" rel="spn" class="filters">supernatural</a> - <a href="#" rel="ob" class="filters">orphan black</a> - <a href="#" rel="cap" class="filters">captain america</a> - <a href="#" rel="hp" class="filters">harry potter</a> - <a href="#" rel="ppl" class="filters">people</a>
  307. <br><div id="bx">
  308. <!--
  309.  
  310. these are the collapsable sub-filters that i included in this page. if you don't want them, then you can just delete this whole section. these are filters for smaller things like characters and colors and stuff, or at least that's what i use them for. they work the same as the filters above.
  311.  
  312. now, this is the broad category name that is going to show up on the page. this is what the users are going to click on to make the sub-filters show up.
  313.  
  314. i left my name so you can see how it works, and, like i said above, just so this page can work as an example for you.
  315.  
  316. -->
  317. <a href="#" class="cthrough">characters/people</a>
  318. <div class="sub">
  319. <!--
  320.  
  321. here is where you put the sub-filters. like i said, it works the same as the filters i showed you how to do above. i left a few for an example.
  322.  
  323. -->
  324. <a href="#" rel="balthazar" class="filters">balthazar</a>
  325. <a href="#" rel="charlie" class="filters">charlie bradbury</a>
  326. <a href="#" rel="dean" class="filters">dean winchester</a>
  327. <a href="#" rel="felix" class="filters">felix dawkins</a>
  328. <a href="#" rel="hermione" class="filters">hermione granger</a>
  329. <a href="#" rel="karen" class="filters">karen gillan</a>
  330. <a href="#" rel="meg" class="filters">meg masters</a>
  331. <a href="#" rel="sarah" class="filters">sarah manning</a>
  332. </div>
  333. <br>
  334. <!-- here is another title for a sub-filter. do the same as above or delete it if you don't want it. -->
  335. <a href="#" class="cthrough">colors</a>
  336. <div class="sub">
  337. <!-- here are the sub-filters. do the same as above or delete it if you don't want it. i left a few for an example. -->
  338. <a href="#" rel="red" class="filters">red</a>
  339. <a href="#" rel="orange" class="filters">orange</a>
  340. <a href="#" rel="yellow" class="filters">yellow</a>
  341. <a href="#" rel="green" class="filters">green</a>
  342. <a href="#" rel="blue" class="filters">blue</a>
  343. <a href="#" rel="purple" class="filters">purple</a>
  344. <a href="#" rel="pink" class="filters">pink</a>
  345. <a href="#" rel="white" class="filters">white</a>
  346. <a href="#" rel="neutral" class="filters">neutral/not specifically focused on one color</a>
  347. <a href="#" rel="gray" class="filters">gray</a>
  348. <a href="#" rel="black" class="filters">black</a>
  349. <a href="#" rel="bw" class="filters">black & white</a>
  350. </div>
  351. </div>
  352. </div>
  353.  
  354. </div></div>
  355.  
  356. <div id="content">
  357. <div id="posts">
  358.  
  359. <center>
  360.  
  361. <!--
  362.  
  363. now here's where the actual icons go! now, i'm going to teach you how to add an icon. i'll use one of mine as an example.
  364.  
  365. <span class="media spn charlie red 7"><img src="http://i.imgur.com/rqgr2C0.png"></span>
  366.  
  367. first off, you have to start with <span class= , which is what activates your filters. in the quotation marks, first you write "media" so that this icon will show up when the users click on your "all" filter. next, this is where you write the rest of your filters! this is where you put all of the stuff you wrote under rel= , seperated simply by spaces. i wrote "media spn charlie red 7" because i want this icon to show up under the all, supernatural, charlie, red, and season 7 filters.
  368.  
  369. once you write in all of your filters, then you put in the actual icon! first you put <img src= so that the page knows you're putting in an image. now, you need to upload your icon somewhere and paste the link to it after <img src=" . i highly recommend:
  370.  
  371. http://imgur.com
  372.  
  373. or, you can upload it through tumblr static:
  374.  
  375. https://www.tumblr.com/themes/upload_static_file
  376.  
  377. either way, these places will give you a link to the image. just place the link after the quotation marks and you're good to go!
  378.  
  379. do this for all of your icons, and you'll be good!
  380.  
  381. the icons show up in order of how you paste them, so if you want to do it in some sort of order, you can. i did mine in rainbow order, but of course you can do it however.
  382.  
  383. you can put as many icons as you want here, in whatever order you want, and in as many filters as you want!
  384.  
  385. i left a few of mine below as an example. please don't use them on your page and claim them as yours.
  386.  
  387. and that's pretty much anything! if you have any questions, feel free to ask me!
  388.  
  389. http://hellish.co.vu/askbox
  390.  
  391. -->
  392. <span class="media spn charlie red 7"><img src="http://i.imgur.com/rqgr2C0.png"></span>
  393. <span class="media ob sarah yellow"><img src="http://i.imgur.com/MuQxaIE.png"></span>
  394. <span class="media spn dean orange 6"><img src="http://i.imgur.com/euJTSIb.png"></span>
  395. <span class="media spn balthazar green 6"><img src="http://i.imgur.com/mR6iLgP.png"></span>
  396. <span class="media spn dean blue 6"><img src="http://i.imgur.com/cbMDV4K.png"></span>
  397. <span class="media spn meg purple 7"><img src="http://i.imgur.com/A4ktf8f.png"></span>
  398. <span class="media ob sarah pink"><img src="http://i.imgur.com/aM6tqjQ.png"></span>
  399. <span class="media ob felix white"><img src="http://i.imgur.com/hzxCV2P.png"></span>
  400. <span class="media hp hermione neutral"><img src="http://i.imgur.com/ruImNGk.png"></span>
  401. <span class="media ppl karen gray"><img src="http://i.imgur.com/PYqmDKD.png"></span>
  402. <span class="media spn dean black 6"><img src="http://i.imgur.com/Uk1w0SB.png"></span>
  403. <span class="media spn dean bw 7"><img src="http://i.imgur.com/JBsG3J2.png"></span>
  404.  
  405.  
  406. </center>
  407.  
  408. </div>
  409.  
  410. </body>
  411. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement