[ZAHIR] Expresso Backround (tem de ser servido na tag 300x250)


/ Published in: JavaScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. // * BACKGROUND START*
  2.  
  3. //baixa o conteudo gerando um container no topo (definir altura em 'height').
  4.  
  5. if(!document.getElementById("pubTop")){
  6. jQuery("body").prepend("<div id='pubTop' style='height:100px; cursor:pointer'></div>");
  7.  
  8. jQuery("body").css('textAlign','center');
  9. jQuery("#exwrapper").css('width','990px');
  10. jQuery("#exwrapper").css('padding','0px 5px');
  11. jQuery("#exwrapper").css('textAlign','left');
  12. jQuery("#exwrapper").css('margin','auto');
  13. jQuery("#exwrapper").css('backgroundColor','#fff');
  14.  
  15.  
  16. jQuery("#exwrapper").prepend("<div id='publabel'>PUBLICIDADE</div>");
  17. jQuery("#publabel").css({
  18. backgroundColor: '#fff',
  19. color: '#333',
  20. textAlign: 'left',
  21. width: '980px',
  22. fontSize: '8px',
  23. margin: 'auto'
  24. });
  25. };
  26.  
  27.  
  28. //gera a imagem
  29. //1 argumento: onde vai ser gerada a imagem de background (normalmente "body")
  30. //2 argumento: cor do fundo em formato hexadecimal (normalmente branco = #ffffff)
  31. //3 caminho da imagem (normalmente fazer upload para o campo $flash)
  32. //4 argumento: alinhamento vertical da imagem (normalmente top)
  33. //5 argumento: alinhamento horizontal da imagem (normalmente center);
  34. //6 argumento: alinhamento do BG via scroll: Pode ser "scroll" ou "fixed"
  35.  
  36. ZAHIR$sitio.BGimage("body", "#ffffff", "$flash", "top", "center", "scroll");
  37.  
  38.  
  39. //Gera os divs laterais e colcoa os links
  40. //1��??��?���º argumento: O div prim��??��?���¡rio da estrutura do website (usar firebug para analisar o dito) o prefixo '#' indica id, e o prefixo '.' indica classe.
  41. ZAHIR$sitio.BGclick("#exwrapper");
  42.  
  43.  
  44. //Remove a barra do aeiou- D��??��?���¡ jeito quando existe um container de topo
  45. jQuery("#tb_aeiou").remove();
  46.  
  47.  
  48.  
  49.  
  50. // * BACKGROUND END*

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.