Advertisement
themesbyhaleigh

icons #3

Feb 14th, 2015
1,605
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.35 KB | None | 0 0
  1. <!-- icon page #3 by nerdydean. don't remove the credit. -->
  2.  
  3. <!DOCTYPE html>
  4. <head>
  5.  
  6. <title>{Title}</title>
  7. <link rel="shortcut icon" href="{Favicon}">
  8.  
  9.  
  10. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
  11.  
  12. <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
  13.  
  14.  
  15. <style type="text/css">
  16.  
  17. body {
  18. font-family:arial;
  19. }
  20.  
  21. #s-m-t-tooltip {
  22. font-size: 9px;
  23. max-width:300px;
  24. padding:3px 4px 2px 5px;
  25. margin:20px 0px 0px 20px;
  26. background:#fff;
  27. border:1px solid #000;
  28. font-family:calibri;
  29. letter-spacing:1px;
  30. text-transform:uppercase;
  31. color:#000;
  32. z-index:999999999999999999999999999999999999;
  33. box-shadow:2px 2px rgba(51,51,51,.1);
  34. }
  35.  
  36. ::-webkit-scrollbar {
  37. height:03px;
  38. width:12px;
  39. background-color:#fff;
  40. }
  41.  
  42. ::-webkit-scrollbar-thumb {
  43. background-color:#000;
  44. border: 5px solid #ffffff;
  45. }
  46.  
  47. a {
  48. text-decoration:none;
  49. -webkit-transition-duration:.6s;
  50. -moz-transition-duration:.6s;
  51. -o-transition-duration:.6s;
  52. -ms-transition-duration:.6s;
  53. color:#000;
  54. }
  55.  
  56. a:hover {
  57. -webkit-transition-duration:.6s;
  58. -moz-transition-duration:.6s;
  59. -o-transition-duration:.6s;
  60. -ms-transition-duration:.6s;
  61. }
  62.  
  63. #content {
  64. margin:10px auto;
  65. width:900px;
  66. }
  67.  
  68. #content img {
  69. margin-left:5px;
  70. width:100px;
  71. padding:10px;
  72. border:1px solid #eee;
  73. box-shadow:2px 2px rgba(51,51,51,.1);
  74. padding:5px;
  75. margin:5px 5px 5px 5px;
  76. }
  77.  
  78.  
  79. #title {
  80. font-size:40px;
  81. font-weight:bold;
  82. width:900px;
  83. margin:0 auto;
  84. margin-top:30px;
  85. margin-bottom:10px;
  86. font-family:calibri;
  87. letter-spacing:1px;
  88. text-transform:uppercase;
  89. color:#000;
  90. border:1px solid #eee;
  91. padding:10px;
  92. box-shadow:2px 2px rgba(51,51,51,.1);
  93. }
  94.  
  95. .media {
  96. color: #a1a1a1;
  97. background: #ffffff;
  98. }
  99.  
  100. #filters {
  101. background: #fff;
  102. }
  103.  
  104. #filters a {
  105. margin: 5px;
  106. text-transform: uppercase;
  107. }
  108.  
  109.  
  110. </style>
  111.  
  112. <script type="text/javascript">
  113. $(document).ready(function() {
  114. // Tooltip only Text
  115. $('.masterTooltip').hover(function(){
  116. // Hover over code
  117. var title = $(this).attr('title');
  118. $(this).data('tipText', title).removeAttr('title');
  119. $('<p class="tooltip"></p>')
  120. .text(title)
  121. .appendTo('body')
  122. .fadeIn('slow');
  123. }, function() {
  124. // Hover out code
  125. $(this).attr('title', $(this).data('tipText'));
  126. $('.tooltip').remove();
  127. }).mousemove(function(e) {
  128. var mousex = e.pageX + 20; //Get X coordinates
  129. var mousey = e.pageY + 10; //Get Y coordinates
  130. $('.tooltip')
  131. .css({ top: mousey, left: mousex })
  132. });
  133. });
  134. </script>
  135.  
  136. <script>
  137. $(document).ready(function(){
  138. $(".filters").click(function(e) {
  139. e.preventDefault();
  140. $(".media").not("." + $(this).attr("rel")).hide(500);
  141. $("." + $(this).attr("rel")).show(500);
  142. });
  143. });
  144. </script>
  145.  
  146. <script type="text/javascript">
  147. jQuery(document).ready(function() {
  148. jQuery(".sub").hide();
  149. //toggle the componenet with class msg_body
  150. jQuery(".cthrough").click(function()
  151. {
  152. jQuery(this).next(".sub").slideToggle(500);
  153. });});
  154. </script>
  155.  
  156. </head>
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163. </head>
  164. <body>
  165.  
  166. <!-- this is your title. -->
  167. <div id="title">[your] icons.
  168. <small><small><small><small><small>
  169. <!-- these are your links. -->
  170. <a href="/">home.</a>
  171. <a href="/ask">ask.</a>
  172. <a href="/">link3.</a>
  173. <!-- please don't remove this -->
  174. <a href="http://hellish.co.vu">cr.</a>
  175. <br><small>
  176. <div id="filters">
  177. <!--
  178.  
  179. these are your basic filters. they're your main ones, like show titles or whatever. i'll explain how these work.
  180.  
  181. <a href="#" rel="media" class="filters"><b>all</b></a>
  182. 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:
  183.  
  184. <b>all</b>
  185.  
  186. 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.
  187.  
  188. 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:
  189.  
  190. <a href="#" rel="spn" class="filters">supernatural</a>
  191.  
  192. 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.
  193.  
  194. the <a href="#" is what creates the "link" that makes the icons under this filter show up.
  195.  
  196. 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.
  197.  
  198. 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.
  199.  
  200. 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.
  201.  
  202. 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!
  203.  
  204. -->
  205. <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="hp" class="filters">harry potter</a> - <a href="#" rel="ppl" class="filters">people</a>
  206.  
  207. </small></small></small></small></small></small></div></div>
  208.  
  209.  
  210. <div id="content">
  211.  
  212. <!--
  213.  
  214. 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.
  215.  
  216. <span class="media spn charlie red 7"><img src="http://i.imgur.com/rqgr2C0.png"></span>
  217.  
  218. 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.
  219.  
  220. 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:
  221.  
  222. http://imgur.com
  223.  
  224. or, you can upload it through tumblr static:
  225.  
  226. https://www.tumblr.com/themes/upload_static_file
  227.  
  228. 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!
  229.  
  230. do this for all of your icons, and you'll be good!
  231.  
  232. 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.
  233.  
  234. you can put as many icons as you want here, in whatever order you want, and in as many filters as you want!
  235.  
  236. i left a few of mine below as an example. please don't use them on your page and claim them as yours.
  237.  
  238. and that's pretty much anything! if you have any questions, feel free to ask me!
  239.  
  240. http://hellish.co.vu/askbox
  241.  
  242. -->
  243.  
  244. <span class="media spn charlie red 7"><img src="http://i.imgur.com/rqgr2C0.png"></span>
  245. <span class="media ob sarah yellow"><img src="http://i.imgur.com/MuQxaIE.png"></span>
  246. <span class="media spn dean orange 6"><img src="http://i.imgur.com/euJTSIb.png"></span>
  247. <span class="media spn balthazar green 6"><img src="http://i.imgur.com/mR6iLgP.png"></span>
  248. <span class="media spn dean blue 6"><img src="http://i.imgur.com/cbMDV4K.png"></span>
  249. <span class="media spn meg purple 7"><img src="http://i.imgur.com/A4ktf8f.png"></span>
  250. <span class="media ob sarah pink"><img src="http://i.imgur.com/aM6tqjQ.png"></span>
  251. <span class="media ob felix white"><img src="http://i.imgur.com/hzxCV2P.png"></span>
  252. <span class="media hp hermione neutral"><img src="http://i.imgur.com/ruImNGk.png"></span>
  253. <span class="media ppl karen gray"><img src="http://i.imgur.com/PYqmDKD.png"></span>
  254. <span class="media spn dean black 6"><img src="http://i.imgur.com/Uk1w0SB.png"></span>
  255. <span class="media spn dean bw 7"><img src="http://i.imgur.com/JBsG3J2.png"></span>
  256.  
  257.  
  258.  
  259. </div>
  260.  
  261.  
  262. </body>
  263. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement