Advertisement
destiel

Blogroll Base Code

Sep 3rd, 2013
3,914
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.79 KB | None | 0 0
  1. <!--
  2.  
  3. BLOGROLL BASE CODE BY DESTIEL.COM
  4.  
  5. No credit is required and you may edit this code as much as you'd like. All I ask is that if someone asks you about the theme that you politely refer them back to me. Also, please don't just take this code and redistribute it. Thanks and enjoy!
  6.  
  7. -->
  8.  
  9. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  10.  
  11. <head>
  12.  
  13. <script src="http://static.tumblr.com/iuw14ew/VSQma1786/jquery.style-my-tooltips.js"></script>
  14. <script>
  15. (function($){
  16. $(document).ready(function(){
  17. $("a[title]").style_my_tooltips({
  18. tip_follows_cursor:true,
  19. tip_delay_time:20,
  20. tip_fade_speed:400,
  21. attribute:"title"
  22. });
  23. });
  24. })(jQuery);
  25. </script>
  26.  
  27. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
  28.  
  29. <!------
  30.  
  31. YOU CAN CHANGE THE TITLE OF YOUR TAB IF WANTED. REPLACE "BLOGROLL" WITH YOUR DESIRED TITLE.
  32.  
  33. ------>
  34.  
  35. <title>Blogroll</title>
  36. <link rel="shortcut icon" href="{Favicon}">
  37. <link rel="alternate" type="application/rss+xml" href="{RSS}">
  38.  
  39. <style type="text/css">
  40.  
  41. <!------
  42.  
  43. YOU CAN CHANGE THE BACKGROUND TO AN IMAGE.
  44. TO DO THIS REPLACE "IMAGEURL" WITH THE URL OF YOUR IMAGE.
  45.  
  46. ------>
  47.  
  48. body {
  49. background-color: #ffffff;
  50. background-image: url('IMAGEURL');
  51. background-repeat: repeat;
  52. margin-left: -50px;
  53. background-attachment: fixed;}
  54.  
  55. <!------
  56.  
  57. THIS IS THE LAYOUT.
  58.  
  59. ------>
  60.  
  61. #content {
  62. position: absolute;
  63. padding: 0px;
  64. margin-top: 0px;
  65. margin-left: 0px;
  66. overflow: auto;}
  67.  
  68. /* --
  69.  
  70. THIS IS WHO YOU'RE FOLLOWING.
  71.  
  72. -- */
  73.  
  74. #content img {
  75. padding: 0px;
  76. width: 55px;
  77. margin: 3px;
  78. border: 1px solid #ffffff;
  79. background-color: #ffffff;}
  80.  
  81. </style>
  82.  
  83. <script type="text/javascript">
  84. $(document).ready(function() {
  85. // Tooltip only Text
  86. $('.masterTooltip').hover(function(){
  87. // Hover over code
  88. var title = $(this).attr('title');
  89. $(this).data('tipText', title).removeAttr('title');
  90. $('<p class="tooltip"></p>')
  91. .text(title)
  92. .appendTo('body')
  93. .fadeIn('slow');
  94. }, function() {
  95. // Hover out code
  96. $(this).attr('title', $(this).data('tipText'));
  97. $('.tooltip').remove();
  98. }).mousemove(function(e) {
  99. var mousex = e.pageX + 20; //Get X coordinates
  100. var mousey = e.pageY + 10; //Get Y coordinates
  101. $('.tooltip')
  102. .css({ top: mousey, left: mousex })
  103. });
  104. });
  105. </script>
  106.  
  107. </head>
  108.  
  109. <link href="#s-m-t-tooltip" rel="stylesheet" type="text/css" />
  110.  
  111. <body>
  112.  
  113. <!--
  114.  
  115. THIS IS THE ICONS OF WHO YOU'RE FOLLOWING.
  116.  
  117. --!>
  118.  
  119. <div id="content">
  120.  
  121. <center>
  122. {block:Following}{block:Followed}<a target='_blank' href='{FollowedURL}'><img border='1' src='{FollowedPortraitURL-96}' />{/block:Followed}{/block:Following}
  123. </center>
  124.  
  125. </div>
  126. </body>
  127. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement