[ZAHIR] AEIOU HP - Background


/ 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. if(!document.getElementById("pubTop")){
  5. jQuery("body").prepend("<div id='pubTop' style='height:100px; cursor:pointer'></div>");
  6.  
  7.  
  8. //gera a imagem
  9. //1 argumento: onde vai ser gerada a imagem de background (normalmente "body")
  10. //2 argumento: cor do fundo em formato hexadecimal (normalmente branco = #ffffff)
  11. //3 caminho da imagem (normalmente fazer upload para o campo $flash)
  12. //4 argumento: alinhamento vertical da imagem (normalmente top)
  13. //5 argumento: alinhamento horizontal da imagem (normalmente center);
  14. //6 argumento: alinhamento do BG via scroll: Pode ser "scroll" ou "fixed"
  15.  
  16. ZAHIR$sitio.BGimage("body", "#ffffff", "$flash", "top", "center", "scroll");
  17.  
  18. //REMOVE o Half Banner (só em takeovers totais)
  19. //jQuery("#zahirad250").remove();
  20.  
  21.  
  22. //Formatação CSS para tornar o aeiou amigavel a takeovers
  23. loadSkin(1); //Força a skin default (azul)
  24. jQuery("#toolbar").remove(); //remove a barra do aeiou
  25. jQuery(".bodyline").attr('style','background: none !important');
  26. jQuery(".footer").css('backgroundColor', '#fff');
  27. jQuery(".contents").css('backgroundColor', '#fff');
  28. jQuery('#header').css('width','980px');
  29. jQuery('#header').css('margin','auto');
  30. jQuery('.bodyline').css('width','980px');
  31. jQuery('.bodyline').css('margin','auto');
  32. jQuery('#hbot').css('backgroundColor', '#fff');
  33.  
  34.  
  35. //Gera os divs laterais e colcoa os links
  36. //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.
  37. ZAHIR$sitio.BGclick("#hbot");
  38. };
  39. // * BACKGROUND END*

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.