Advertisement
poeta-inepta

TEMA 57

Mar 20th, 2014
1,035
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.97 KB | None | 0 0
  1. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  2. <head>
  3.  
  4.  
  5. <!-------------------------------------------------------
  6. | THEME POR MARYGLEICE (EMENDAREI) |
  7. | PLAGIO É CRIME, SE FOR USAR DETALHE CREDITE! |
  8. -------------------------------------------------------->
  9.  
  10. <meta name="image:background" content="" />
  11. <meta name="text:frase" content="Because, I love you" />
  12. <meta name="color:frase" content="#e0bac0" />
  13. <meta name="color:text" content="#9c9c9c" />
  14. <meta name="color:bgnotes" content="#fff"/>
  15. <meta name="color:scrollbar" content="#eee" />
  16. <meta name="color:background" content="/" />
  17. <meta name="image:sidebar" content=""/>
  18. <meta name="color:askbg" content="#b8c3d8"/>
  19. <meta name="color:askcolor" content="#fff"/>
  20. <meta name="text:Link1" content="/" />
  21. <meta name="text:Link1 Title" content="link" />
  22. <meta name="text:Link2" content="/" />
  23. <meta name="text:Link2 Title" content="link" />
  24. <meta name="text:Link3" content="/" />
  25. <meta name="text:Link3 Title" content="link" />
  26. <meta name="text:Link4" content="/" />
  27. <meta name="text:Link4 Title" content="link" />
  28. <meta name="text:Link5" content="/" />
  29. <meta name="text:Link5 Title" content="link" />
  30.  
  31.  
  32. <title>{Title}</title>
  33. <link rel="shortcut icon" href="{Favicon}">
  34. <link rel="alternate" type="application/rss+xml" href="{RSS}">
  35. {block:Description}
  36. <meta name="description" content="{MetaDescription}" />
  37. {/block:Description}
  38.  
  39. <meta name="if:one columns" content="0"/>
  40.  
  41. <link href='http://fonts.googleapis.com/css?family=Cookie' rel='stylesheet' type='text/css'>
  42.  
  43. <link href='http://fonts.googleapis.com/css?family=Baumans' rel='stylesheet' type='text/css'>
  44.  
  45. <style type="text/css">
  46.  
  47.  
  48. body {background:{color:background};opacity:1.0;text-align:justify;color: {color:text};font-family:cambria; font-size:12px; background-image:url('{image:background}'); background-attachment:fixed;background-repeat: no-repeat;background-size:100% 100%;line-height: 16px;background-color: transparent;}}
  49. a {color: {color:link}; text-decoration: none; text-transform: none;}
  50. a:hover {color: {color:lhover}; background-color: transparent; text-decoration: none;}
  51. p {margin: 6px 0 0 0}
  52.  
  53. .tudo { margin-left: auto; margin-right: auto; {block:IndexPage} width: 850px; position: relative; {/block:IndexPage} {block:PermalinkPage} width: 850px; {/block:PermalinkPage} }
  54. #entry {width: 600px;margin-left:85px; margin-top: 30px;}
  55. .posts { top:4px;border:0px solid {color:bordas};overflow: hidden; margin: 3px; float: left; width: 230px; padding: 6px;{block:IndexPage} width: 250px; position: relative; {/block:IndexPage} {block:PermalinkPage} width: 400px; {/block:PermalinkPage};{block:IfOneColumns}width: 500px;{/block:IfOneColumns};{block:PermalinkPage}width:500px; {/block:PermalinkPage};} }
  56.  
  57. h1 {font-family:georgia; font-size: 15px; color: {color:text}; font-weight: normal; line-height: 15px;}
  58. h1 a {text-align:left; font-size: 15px; color: {color:text}; font-weight: normal; line-height: 12px;}
  59. h1 a:hover {text-align: left; font-size: 15px; color: {color:text}; font-weight: normal; line-height:12px;}
  60.  
  61.  
  62. .source {display: none;}
  63.  
  64. .but {border-radius:5px; padding:0px; overflow: hidden; float:left; position:relative; margin:1px;{block:indexpage} width: 250px;{/block:indexpage}{block:PermalinkPage}width:480px;{/block:PermalinkPage};}
  65. .extra1 {text-indent: 5px; margin-bottom: 2px; padding-left: 7px; padding-top: 5px; padding-bottom: 4px; padding-right: 5px; margin-left:-4px; margin-right:-2px; border-bottom:1px #f3f3f3 solid;line-height:30px;}
  66. ol.notes {list-style: none; width:400px; margin-left:-50px;}
  67. ol.notes li.note {margin-bottom: 2px; padding-left: 7px; padding-top: 5px; padding-bottom: 4px; padding-right: 5px;text-transform: lowercase; line-height: 25px; border-bottom:1px #eee solid; width:500px;}
  68. ol.notes li.note img.avatar {display:inline; width:16px; height:16px; border-radius:30px;}
  69. ol.notes li.note .answer_content {font-weight: normal;}
  70. ol.notes li.note blockquote {display: none;}
  71.  
  72.  
  73.  
  74. .chat {background:transparent; margin: 0; font-size: Tamanho da fontepx; font-family: cambria;}
  75. .chat .lines {margin-left: 0; background: transparent; color:
  76. {color:text}; margin-bottom: 1px; padding: 4px 5px 4px 5px;}
  77. .chat .lines span{font-weight: bold;}
  78. .person1 {color: {color:text}; padding: 2px; }
  79. .person1 .label {font-weight: bold; color:{color:text}}
  80. .person2 {color: {color:text}; padding: 2px; }
  81. .person2 .label {font-weight: bold; color:{color:text}}
  82.  
  83. .player {background-color:{color:bgask}; text-align: left; display:block;}
  84.  
  85. b, strong{color:;}
  86. i, em{color: #aca9a9;}
  87. s{color: #aca9a9;}
  88. u{border-bottom: #aca9a9; color: #aca9a9;}
  89. a:link,a:active,a:visited {color: {color:text}; text-decoration: none;
  90. -webkit-transition-duration: .90s;} a:hover { color: {color:text};}
  91.  
  92. .vsanna {display:none;}
  93.  
  94. .soource {text-transform:uppercase;text-align:center;letter-spacing:1px; font-family:'Baumans';margin-top:-0px;font-size:9px;line-height:30px;height:24px;color:{color:text};-webkit-transition: all 0.6s linear;-moz-transition: all 0.6s linear;transition: all 0.6s linear;}
  95. .posts:hover .soource {margin-left:-1000px;}
  96. .qte {margin:2px;font-family:Century Gothic;margin-top:3px;line-height:20px;}
  97.  
  98.  
  99. .posts .pupu{ width:240px; height: 16px; font-family:calibri; font-size: 9px; text-transform:uppercase; position: absolute; line-height: 15px; text-align:right; opacity: 0; background-color:#ffffff;padding:5px;{block:IfOneColumns}width: 490px;{/block:IfOneColumns}}
  100. .posts:hover .pupu {bottom:-2px; opacity:1;-webkit-transition: all 0.5s linear;-webkit-transition: all 0.5s linear;-moz-transition: all 0.1s linear;}
  101. .rebutton{opacity: 0;position: absolute;-webkit-transition-duration: .50s;}
  102. .posts:hover .rebutton{opacity: 1.0;position: absolute;left:40px; bottom: 15px;-webkit-transition-duration: .50s;}
  103. .heart{ opacity: 0;position: absolute;-webkit-transition-duration: .50s;}
  104. .posts:hover .heart {opacity: 1.0;position: absolute;left:15px; bottom: 15px;-webkit-transition-duration: .50s;}
  105.  
  106. .caixola {opacity:0;position: absolute;text-align: center; height:20px;line-height:20px;text-transform:uppercase;bottom:10px;right:0%;-webkit-transition-duration: 0.9s;z-index:99;-webkit-transition: opacity 0.5s linear; opacity: 0.0;;-webkit-transition:All 1s ease;-moz-transition:All 1s ease;-webkit-transition: all 0.6s ease-out;-o-transition:All 1s ease; font-family:arial;font-size:9px;background:transparent;width:255px; }
  107. .posts:hover .caixola {opacity:1;bottom:4px;}
  108. .caixola a{font-family:Baumans;font-size:9px;text-transform:uppercase;}
  109.  
  110. .caixinha {opacity:0;position: absolute;text-align: center; height:20px;line-height:20px;text-transform:uppercase;bottom:10px;right:0%;-webkit-transition-duration: 0.9s;z-index:99;-webkit-transition: opacity 0.5s linear; opacity: 0.0;;-webkit-transition:All 1s ease;-moz-transition:All 1s ease;-webkit-transition: all 0.6s ease-out;-o-transition:All 1s ease; font-family:arial;font-size:9px;background:{color:background};width:255px;}
  111. .posts:hover .caixinha {opacity:1;bottom:4px;}
  112. .caixinha a{font-family:Baumans;font-size:9px;text-transform:uppercase;}
  113.  
  114.  
  115. ::-webkit-scrollbar-thumb:horizontal {background:{color:Rolagem}; height: 5px;}
  116. ::-webkit-scrollbar {background:{color:Background} Url('{image:Background}'); width:5px; height: 1px}
  117. ::-webkit-scrollbar-thumb:vertical {background:{color:Rolagem}; height: 15px;}
  118.  
  119. .askerft {border-radius:100px;height:24px;width:24px;margin-top:-40px;margin-left:-15px;margin-right:-10px;z-index:100px;}
  120. .asker { background: {color:askbg}; font-weight:normal; padding:6px; margin-bottom: 1px; color:{color:askcolor}; font-size: 10px;text-align:left;font-family: arial;border-radius:4px;margin-top:10px; margin-left:10px;z-index:-100}
  121. #tri{border-top: 8px solid {color:askbg};;border-right:5px solid transparent;border-bottom: 8px solid transparent;
  122. border-left: 5px solid transparent;width: 0px;height: 0px;margin-top:-1px;margin-left:100px; margin-left:17px; }
  123. .asker a{background:#;color:{color:askcolor};font-family:trebuchet ms;font-size:9px;text-transform:uppercase;margin-left:10px;}
  124.  
  125. .resposta { font-weight:normal; padding:10px; margin-bottom: 1px; text-shadow:0 0px 0px #fff;; font-size: 11px; margin-top:-20px; }
  126.  
  127.  
  128.  
  129. #s-m-t-tooltip{
  130. font-size:9px;
  131. color:#fff;
  132. font-family:times;
  133. letter-spacing:1px;
  134. text-transform:uppercase;
  135. max-width:300px;
  136. padding:2px 4px;
  137. margin:0px 0px 0px 15px;
  138. z-index:9999999;
  139. background:#454545;
  140. border:1px solid #eee;
  141. z-index:99998887789999;
  142. }
  143.  
  144. #theme { background-color:transparent; width:700px; margin: 0 auto -12px auto; text-align: center; }
  145. #top { width:500px; height:115px; margin-left:100px;}
  146. .header { width:500px; z-index:9999; text-align:center; position:absolute; margin-left:100px; }
  147. #stuff { width:500px; margin:auto; margin-top:5px; }
  148.  
  149. .description { color:#fff; width:400px; height:auto; padding:3px; margin-top:5px; font-size:12px; overflow:hidden; text-align:left; line-height:17px; margin-left:40px; color:{color:text}; letter-spacing:.5px;}
  150.  
  151. .description b {color:{color:hover}; font-weight:normal;}
  152.  
  153. #bigletter img{ background-color: ; padding: 4px; color:{color:frase}; font-size: 30px; font-family: baskerville; font-style:normal; text-transform:uppercase; font-style: none; float: left; margin-right:7px; margin-top:3px; line-height:15px; padding-right:6px; padding-right:6px;width:60px; height:60px; border-radius:500px; padding:01px;border:1px solid #ddd;}
  154.  
  155. .links { width:500px; height:20px; font-size:12px; font-weight:bold; margin-left:-1px; text-align:center; letter-spacing:.4px; padding:10px text-transform:lowercase; font-family:playfair display; background:transparent;}
  156. .links a {padding:0px 6px; color:{color:text};}
  157. .links a:hover {color:{color:hover};}
  158. .fancy {margin:-5px 0px 0px -0px;}
  159. .sticky {position:fixed; top:0px;}
  160.  
  161. /** CRED **/
  162. #credit {color:{color:text};padding:5px;position:fixed;bottom:35px;right:21px;font-family:cambria;font-size:10px; width: 140px; overflow: hidden; height: 9px; -webkit-transition: all 0.9s ease-out; -moz-transition: all 0.9s ease-out; opacity:0.90;-moz-opacity: 0.90; filter: alpha(opacity=90);}
  163.  
  164. #credit span {color:{color:text links descri};}
  165.  
  166. #credit a{text-transform:lowercase;}
  167.  
  168. </style>
  169.  
  170.  
  171. <body>
  172.  
  173. <div id="theme">
  174. <div id="top">
  175.  
  176. <table id="stuff"><tr>
  177. <td><div class="description"><div id="bigletter"><img src="{image:sidebar}">
  178. </div>{Description}</div></td>
  179.  
  180. </tr></table></div>
  181.  
  182. <div class="header">
  183.  
  184.  
  185. <div class="links">
  186. <a href="{text:Link1}">{text:Link1 Title} </a>
  187. <a href="{text:Link2}">{text:Link2 Title} </a>
  188. <a href="{text:Link3}">{text:Link3 Title} </a>
  189. <a href="{text:Link4}">{text:Link4 Title} </a>
  190. <a href="{text:Link5}">{text:Link5 Title} </a>
  191. </div><!--links-->
  192.  
  193. <div class="fancy"><img src="https://31.media.tumblr.com/264af9b42b95aee959ebbe5bbf9b9608/tumblr_inline_n2j0kficSh1s23v6q.png">
  194. </div><!--fancy-->
  195.  
  196. </div><!--header-->
  197.  
  198.  
  199.  
  200. {block:ifStickyLinks}
  201. <script>
  202. var header = document.querySelector('.header');
  203. var origOffsetY = header.offsetTop;
  204.  
  205. function onScroll(e) {
  206. window.scrollY >= origOffsetY ? header.classList.add('sticky') :
  207. header.classList.remove('sticky');
  208. }
  209.  
  210. document.addEventListener('scroll', onScroll);
  211. </script><!--sticky-->
  212. {/block:ifStickyLinks}
  213.  
  214.  
  215. <div id="entry">
  216. {block:Posts}
  217. <div class="posts">
  218.  
  219.  
  220. {block:Text}
  221. <div class="caixinha">
  222. <a href="{permalink}"> {Month} {DayofMonthWithSuffix}</a> /
  223. <a href="{Permalink}">{NoteCount}</a> /
  224. <a href="{ReblogURL}">Reblog</a>
  225. </div>
  226. {block:Title}<h1>{Title}</h1>{/block:Title}{Body}{/block:Text}
  227.  
  228. <div id="cap">
  229.  
  230.  
  231.  
  232. {block:Photo}
  233. <div class="parol">
  234. {block:IndexPage}{LinkOpenTag}<a href="{permalink}"><div class="photo"><a><a href="{permalink}"><img class="photo"
  235. src="{PhotoURL-HighRes}" alt="{PhotoAlt}"
  236. width="100%"/></a></div>{LinkCloseTag}{/block:IndexPage}
  237. {block:PermalinkPage}{LinkOpenTag}<a href="{permalink}"><img
  238. class="photo" src="{PhotoURL-HighRes}" alt="{PhotoAlt}"
  239. width="495"/></a>{LinkCloseTag}
  240. {/block:PermalinkPage}
  241. {block:IndexPage}
  242. <div class="heart">{LikeButton color="white" size="15"}</div>
  243. <div class="rebutton">{ReblogButton color="white" size="15"}
  244. </div>
  245. {/block:indexpage}
  246. </div>
  247. {/block:Photo}
  248.  
  249.  
  250.  
  251. {block:Photoset}
  252. {block:IfNotOneColumns}{block:IndexPage}{LinkOpenTag}{Photoset-250}{LinkCloseTag}{/block:IndexPage}{block:IfNotOneColumns}
  253. {block:IfOneColumns}{block:IndexPage}{LinkOpenTag}{Photoset-400}{LinkCloseTag}{/block:IndexPage}{block:IfOneColumns}
  254. {block:PermalinkPage}{LinkOpenTag}{Photoset-500}{LinkCloseTag}{/block:PermalinkPage}
  255. {block:Caption}{Caption}{/block:Caption}
  256. {block:IndexPage}
  257. <div class="heart">{LikeButton color="white" size="15"}</div>
  258. <div class="rebutton">{ReblogButton color="white" size="15"}
  259. </div>
  260. {/block:indexpage}
  261. {/block:Photoset}
  262.  
  263. {block:Quote}
  264. <div class="qte">{Quote}</div>
  265. <div class="soource">{Source}</div>
  266. <div class="caixola">
  267. <a href="{permalink}"> {Month} {DayofMonthWithSuffix}</a> /
  268. <a href="{Permalink}">{NoteCount}</a> /
  269. <a href="{ReblogURL}">Reblog</a>
  270. </div>
  271.  
  272. {/block:Quote}
  273.  
  274.  
  275. {block:Link}
  276. <div class="caixinha">
  277. <a href="{permalink}"> {Month} {DayofMonthWithSuffix}</a> /
  278. <a href="{Permalink}">{NoteCount}</a> /
  279. <a href="{ReblogURL}">Reblog</a>
  280. </div>
  281. <h1><a href="{URL}" {Target}>{Name}</a></h1>
  282. {block:Description}{Description}{/block:Description}
  283. {/block:Link}
  284.  
  285. {Block:chat}
  286. <div class="caixinha">
  287. <a href="{permalink}"> {Month} {DayofMonthWithSuffix}</a> /
  288. <a href="{Permalink}">{NoteCount}</a> /
  289. <a href="{ReblogURL}">Reblog</a>
  290. </div>
  291. {block:lines}
  292. <div class="chat"><div class="lines">{block:Label}<span>{Label}</span>
  293. {/block:Label} {Line}</div></div>{/block:lines}{/block:chat}
  294.  
  295. {block:Audio}<div class="caixinha">
  296. <a href="{permalink}"> {Month} {DayofMonthWithSuffix}</a> /
  297. <a href="{Permalink}">{NoteCount}</a> /
  298. <a href="{ReblogURL}">Reblog</a>
  299. </div>
  300. <div class="player">{AudioPlayerBlack}</div>{block:Caption}{Caption}{/block:Caption}{/block:Audio}
  301.  
  302. {block:Video}{block:IndexPage}
  303. <div class="caixinha">
  304. <a href="{permalink}"> {Month} {DayofMonthWithSuffix}</a> /
  305. <a href="{Permalink}">{NoteCount}</a> /
  306. <a href="{ReblogURL}">Reblog</a>
  307. </div>
  308. {/block:IndexPage}
  309. {Video-250}{/block:Video}
  310.  
  311. {block:Answer}{block:IndexPage}
  312. <div class="asker"><img src="{AskerPortraitURL-24}" class="askerft">{Asker}: {Question}</div><div id="tri"></div>
  313. <div class="resposta">{Answer}</div>
  314. {/block:IndexPage}{block:PermalinkPage}<div class="posts2">
  315. <div class="asker"><img src="{AskerPortraitURL-24}" class="askerft">{Asker}: {Question}</div><div id="tri"></div>
  316. <div class="resposta">{Answer}</div>
  317. {/block:PermalinkPage}
  318.  
  319. <div class="caixinha">
  320. <a href="{Permalink}">{NoteCount}</a>
  321. </div>
  322. {/block:Answer}
  323.  
  324.  
  325. </div>
  326. <div class="vsanna">{block:RebloggedFrom}<a href="{ReblogParentURL}">via</a>{/block:RebloggedFrom}
  327. {block:ContentSource}<a href="{SourceURL}">source</a>{/block:ContentSource}</div>
  328. {/block:RebloggedFrom}
  329. </div>
  330.  
  331. <!------ PERMALINKPAGE - CONJUNTAR ------>
  332. {block:PostNotes}
  333. {block:PermalinkPage}
  334. <div class="posts">
  335. <div class="but">{block:Date}
  336. <div class="extra1">
  337. <img src="http://static.tumblr.com/cdfpv33/5oymjxo65/cal.png"> Postado no dia {DayOfMonth},<b> de {Month}</b> de {Year}.</div>{/block:Date}{block:RebloggedFrom}
  338. <div class="extra1">
  339. <img src="http://static.tumblr.com/cdfpv33/XOomjxo5e/perman.png"> Compartilhado de: <a href="{ReblogParentURL}" target="_blank">{ReblogParentName}</a>.</div>
  340. <div class="extra1">
  341. <img src="http://static.tumblr.com/wa79tuo/LApm1iuqc/user.png"> Autoria de: {block:ContentSource}<a href="{SourceURL}" target=blank>{SourceTitle}</a>{/block:ContentSource}.</div>
  342. <div class="extra1">
  343. <img src="http://static.tumblr.com/cdfpv33/2L0mjxo4l/coracao.png"> Com {NoteCountWithLabel}.</div>
  344.  
  345.  
  346.  
  347. {/block:RebloggedFrom}{/block:PermalinkPage}{PostNotes}</div></div>{/block:PostNotes}{/block:Posts}
  348.  
  349.  
  350.  
  351.  
  352. </div></div>
  353.  
  354.  
  355.  
  356. {block:IndexPage}
  357. <div class="column navigation" id="navigation">
  358. {block:Pagination}
  359. {block:PreviousPage}<a href="{PreviousPage}" class="navigate">{/block:PreviousPage}{block:PreviousPage}</a>{/block:PreviousPage}
  360. {block:NextPage}<a href="{NextPage}" class="navigate" id="nextPage">{/block:NextPage}{block:NextPage}</a>{/block:NextPage}{/block:Pagination}
  361. </div>
  362. {/block:IndexPage}
  363.  
  364. </div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
  365.  
  366.  
  367.  
  368. </body>
  369.  
  370.  
  371. <script language="javascript">
  372. function clickIE() {if (document.all) {(mensagem);return false;}}
  373. function clickNS(e) {if
  374. (document.layers||(document.getElementById&&!document.all)) {
  375. if (e.which==2||e.which==3) {alert(mensagem);return false;}}}
  376. if (document.layers)
  377. {document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
  378. else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
  379. document.oncontextmenu=new Function("return false")
  380. </script>
  381. <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
  382. <script src="http://static.tumblr.com/6hsqxdt/vmwm2rb4g/infinitescrolling.js"></script>
  383. <script src="http://static.tumblr.com/6hsqxdt/QBym35odk/jquery.masonry.js"></script>
  384. <script>
  385. $(function(){
  386. var $container = $('#entry');
  387. $container.imagesLoaded(function(){
  388. $container.masonry({
  389. itemSelector: '.posts',
  390. columnWidth: 270
  391. });
  392. });
  393. $container.infinitescroll({
  394. navSelector : "div#navigation",
  395. nextSelector : "div#navigation a#nextPage",
  396. itemSelector : '.posts',
  397. loading: {
  398. finishedMsg: ' ',
  399. img: ' '
  400. }
  401. },
  402. function( newElements ) {
  403. var $newElems = $( newElements ).css({ opacity: 0 });
  404. $newElems.imagesLoaded(function(){
  405. $newElems.animate({ opacity: 1 });
  406. $container.masonry( 'appended', $newElems, true );
  407. });
  408. }
  409. );
  410.  
  411. });
  412. </script>
  413.  
  414.  
  415.  
  416. <script>
  417.  
  418. $(document).ready(function() {
  419.  
  420. //
  421.  
  422. //When you click on a link with class of poplight and the href starts with a #
  423.  
  424.  
  425.  
  426. $('a.poplight[href^=#]').click(function() {
  427.  
  428.  
  429.  
  430. var popID = $(this).attr('rel'); //Get Popup Name
  431.  
  432.  
  433.  
  434. var popURL = $(this).attr('href'); //Get Popup href to define size
  435.  
  436.  
  437.  
  438. //Pull Query & Variables from href URL
  439.  
  440.  
  441.  
  442. var query= popURL.split('?');
  443.  
  444.  
  445.  
  446. var dim= query[1].split('&');
  447.  
  448.  
  449.  
  450. var popWidth = dim[0].split('=')[1]; //Gets the first query string value
  451.  
  452.  
  453.  
  454. //Fade in the Popup and add close button
  455.  
  456.  
  457.  
  458. $('#' + popID).fadeIn().css({ 'width': Number( popWidth ) }).prepend('<a href="" class="close" title="Close" alt="Close"><img src="http://cdn1.iconfinder.com/data/icons/bwpx/icons/symbol_multiplication.gif" class="btn_close" /></a>');
  459.  
  460.  
  461.  
  462. //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
  463.  
  464.  
  465.  
  466. var popMargTop = ($('#' + popID).height() + 80) / 2;
  467.  
  468.  
  469.  
  470. var popMargLeft = ($('#' + popID).width() + 80) / 2;
  471.  
  472.  
  473.  
  474. //Apply Margin to Popup
  475.  
  476.  
  477.  
  478. $('#' + popID).css({
  479.  
  480.  
  481.  
  482. 'margin-top' : -popMargTop,
  483.  
  484.  
  485.  
  486. 'margin-left' : -popMargLeft
  487.  
  488.  
  489.  
  490. });
  491.  
  492.  
  493.  
  494. //Fade in Background
  495.  
  496.  
  497.  
  498. $('body').append('<div id="fade"></div>'); //Add the fade layer to bottom of the body tag.
  499.  
  500.  
  501.  
  502. $('#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
  503.  
  504.  
  505.  
  506. return false;
  507.  
  508.  
  509.  
  510. });
  511.  
  512.  
  513.  
  514.  
  515.  
  516. //Close Popups and Fade Layer
  517.  
  518.  
  519.  
  520. $('a.close, #fade').live('click', function() { //When clicking on the close or fade layer...
  521.  
  522.  
  523.  
  524. $('#fade , .popup_block').fadeOut(function() {
  525.  
  526.  
  527.  
  528. $('#fade, a.close').remove(); //fade them both out
  529.  
  530. });
  531.  
  532. return false;
  533.  
  534. });
  535.  
  536.  
  537.  
  538. });
  539.  
  540.  
  541. </script>
  542.  
  543. <div id="credit"> <a href="http://emendarei.tumblr.com/" title="emendarei"> tema por <b>emendarei</a></b></div>
  544.  
  545. <!-- THEME MARYGLEICE MIRANDA (EMENDAREI) -->
  546. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement