Usamos cookies para medir audiência e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento. Veja sobre o iMasters.
Galera como gravo o parametro classe em um cookie para que durante a navegação o usuário mantenha o valor definido apenas quando o usuário mudar o valor da classe ele mude e mantenha...
<head>
.
.
.
<script type="text/javascript">
function mudaFundo(classe) {
document.getElementsByTagName("body")[0].className = classe;
}
</script>
.
.
.
</head>
<body class = "bg1">
.
.
.
<div id = "fundo" class = "grid_16" title = "Mulheres do Bola" align = "right">
<a onclick = "mudaFundo('bg1');"><img src = "<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/outono.png" alt = "Outono" title = "Outono" style = "display = block;"></a>
<a onclick = "mudaFundo('bg2');"><img src = "<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/inverno.png" alt = "Inverno" title = "Inverno" style = "display = block;"></a>
<a onclick = "mudaFundo('bg3');"><img src = "<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/primavera.png" alt = "Primavera" title = "Primavera" style = "display = block;"></a>
<a onclick = "mudaFundo('bg4');"><img src = "<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/verao.png" alt = "Verão" title = "Verão" style = "display = block;"></a>
</div>
.
.
.
Valew....
Carregando comentários...