/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// * BACKGROUND START* //baixa o conteudo gerando um container no topo (definir altura em 'height'). if(!document.getElementById("pubTop")){ jQuery("body").prepend("<div id='pubTop' style='height:100px; cursor:pointer'></div>"); //gera a imagem //1 argumento: onde vai ser gerada a imagem de background (normalmente "body") //2 argumento: cor do fundo em formato hexadecimal (normalmente branco = #ffffff) //3 caminho da imagem (normalmente fazer upload para o campo $flash) //4 argumento: alinhamento vertical da imagem (normalmente top) //5 argumento: alinhamento horizontal da imagem (normalmente center); //6 argumento: alinhamento do BG via scroll: Pode ser "scroll" ou "fixed" ZAHIR$sitio.BGimage("body", "#ffffff", "$flash", "top", "center", "scroll"); //REMOVE o Half Banner (só em takeovers totais) //jQuery("#zahirad250").remove(); //Formatação CSS para tornar o aeiou amigavel a takeovers loadSkin(1); //Força a skin default (azul) jQuery("#toolbar").remove(); //remove a barra do aeiou jQuery(".bodyline").attr('style','background: none !important'); jQuery(".footer").css('backgroundColor', '#fff'); jQuery(".contents").css('backgroundColor', '#fff'); jQuery('#header').css('width','980px'); jQuery('#header').css('margin','auto'); jQuery('.bodyline').css('width','980px'); jQuery('.bodyline').css('margin','auto'); jQuery('#hbot').css('backgroundColor', '#fff'); //Gera os divs laterais e colcoa os links //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. ZAHIR$sitio.BGclick("#hbot"); }; // * BACKGROUND END*