Advertisement
helpdesigns

Theme reforma #2 | 23/08/2014 #juh

Aug 23rd, 2014
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.23 KB | None | 0 0
  1.  
  2. <html>
  3.  
  4. <script type="text/javascript"
  5. src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"></script>
  6. <script>
  7. $(document).ready(function() {
  8. //
  9. //When you click on a link with class of poplight and the href starts with a #
  10.  
  11. $('a.poplight[href^=#]').click(function() {
  12.  
  13. var popID = $(this).attr('rel'); //Get Popup Name
  14.  
  15. var popURL = $(this).attr('href'); //Get Popup href to define size
  16.  
  17. //Pull Query & Variables from href URL
  18.  
  19. var query= popURL.split('?');
  20.  
  21. var dim= query[1].split('&');
  22.  
  23. var popWidth = dim[0].split('=')[1]; //Gets the first query string value
  24.  
  25. //Fade in the Popup and add close button
  26.  
  27. $('#' + popID).fadeIn().css({ 'width': Number( popWidth ) }).prepend('<a href="#" class="close"><img src="http://static.tumblr.com/w5ebxu1/spJmust9t/botao.png" class="btn_close" title="Close Window" alt="Close" /></a>');
  28.  
  29. //Define margin for center alignment (vertical horizontal) - we add 80px to the height/width to accomodate for the padding and border width defined in the css
  30.  
  31. var popMargTop = ($('#' + popID).height() + 80) / 2;
  32.  
  33. var popMargLeft = ($('#' + popID).width() + 80) / 2;
  34.  
  35. //Apply Margin to Popup
  36.  
  37. $('#' + popID).css({
  38.  
  39. 'margin-top' : -popMargTop,
  40.  
  41. 'margin-left' : -popMargLeft
  42.  
  43. });
  44.  
  45. //Fade in Background
  46.  
  47. $('body').append('<div id="fade"></div>'); //Add the fade layer to bottom of the body tag.
  48.  
  49. $('#fade').css({'filter' : 'alpha(opacity=80)'}).fadeIn(); //Fade in the fade layer - .css({'filter' : 'alpha(opacity=80)'}) is used to fix the IE Bug on fading transparencies
  50.  
  51. return false;
  52.  
  53. });
  54.  
  55.  
  56. //Close Popups and Fade Layer
  57.  
  58. $('a.close, #fade').live('click', function() { //When clicking on the close or fade layer...
  59.  
  60. $('#fade , .popup_block').fadeOut(function() {
  61.  
  62. $('#fade, a.close').remove(); //fade them both out
  63. });
  64. return false;
  65. });
  66.  
  67. });
  68. </script>
  69.  
  70. <head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# blog: http://ogp.me/ns/blog#">
  71. <style type="text/css">
  72.  
  73. body {background-color:#fff; font-family: verdana; color: ; text-align: center; font-size: 11px; background-image:url('http://static.tumblr.com/fyc2dbo/ch9narm0g/3.png'); background-attachment: fixed; overflow-y:hidden;
  74. 5.
  75. overflow-x:hidden;}
  76.  
  77. a {color: #fff; text-decoration: none; text-transform: none;}
  78. a:hover {color: #fff; background-color: transparent; text-decoration: none;}
  79.  
  80. #header {background: url('http://static.tumblr.com/fyc2dbo/InBnarq1l/3.png'); background-repeat: repeat-x; width:843px; margin-top: 50px; height:519px; margin-left: 250px;}
  81.  
  82. #ask {width:561px; margin-top: -250px; height:351px; margin-left: 392px;background:;}
  83.  
  84. #descre {width:465px;height:90px;background:;color:#fff;margin-top:-450px;font-family:visitor;font-size:13px;margin-left:436px;padding: 3px;line-height: 16px;text-shadow:1px 1px 0px #e5e5e5;}
  85.  
  86. @font-face {src: url('http://static.tumblr.com/fyc2dbo/m0xmxriah/visitor2.ttf'); font-family: visitor;}
  87.  
  88. /* Menu Arco-íris #2 exclusivo HD feito por Yara Jaine (d-epreessiva)*/
  89. #arco3 {width:355px; height: 7px; float: left; margin-left: 790px; margin-top:-110px; padding: 0px; text-align: center; z-index:9999; opacity:0.9; z-index:99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999; opacity:0.9}
  90. #arco3 a {display: inline-block;float: left; margin-left: 1px; font-family:PF Arma Five; font-size: 8px; text-align: center; margin-top: 1px; height:15px; width: 15px; color:TRANSPARENT; line-height: 14px; text-transform: uppercase; -webkit-transition: all .5s ease-out; -moz-transition: all .5s ease-out; font-style: normal; background-color: #fff; opacity:1;}
  91. #arco3 a:hover{-webkit-animation: doidaya2 3s alternate infinite ease;-moz-animation: doidaya2 3s alternate infinite ease;color:#eee;background: #a3bece;width: 35px;}
  92.  
  93. @font-face {src: url('http://static.tumblr.com/08l8cbl/bxDmeztw0/pf_arma_five.ttf'); font-family: PF Arma Five;}
  94.  
  95.  
  96.  
  97. /*************** FIM DO CÓD. LEMBRE-SE PLAGIO É CRIME ! ************/
  98.  
  99.  
  100.  
  101. </style>
  102.  
  103.  
  104. <body>
  105.  
  106. <div id="header"> </div>
  107. <div id="ask"><iframe frameborder="0" scrolling="no" width="84%" height="190" src="http://www.tumblr.com/ask_form/SEUTUMBLR.tumblr.com" style="background-color:transparent; overflow:hidden;" id="ask_form"></iframe>
  108. </div>
  109.  
  110.  
  111. <div id="descre">Descreva-se aqui, coloque a sua descrição aqui, fale sobre oque quiser, pelo que desativou, escolha a sua descrição ok ...Descreva-se aqui, coloque a sua descrição aqui, fale sobre oque quiser, pelo que desativou, escolha a sua descrição ok ...Descreva-se aqui, coloque a sua descrição aqui, fale sobre oque quiser, pelo que desativou, escolha a sua descrição ok .... E onde tem SEUTUMBLR coloca sua url para o povo mandar ask
  112. </div>
  113.  
  114.  
  115. <div id="arco3">
  116. <a href="">Link 1</a>
  117. <a href="">Link 2</a>
  118. <a href="">Link 3</a>
  119. <a href="">Link 4</a>
  120. <a href="">Link 5</a>
  121. </div>
  122.  
  123. </body>
  124. <div style="position: fixed; font-size:12px;font-family:visitor; bottom: 0px; left: 0px; background: ''; padding: 2px; left: 2px; top: 20px;text-shadow:1px 1px 0px #e5e5e5;">
  125. <a href="http://helpdesigns.tumblr.com/" target="_blank" title="Theme por helpdesigns | Originally not copy.">@ HD</a></div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement