Jump to content


marciocarvalhorj

Member Since 09/06/2010
Offline Last Active 14/03/2011, 16:08
-----

Topics I've Started

Uma Imagem/Frame Por Dia

13/06/2010, 21:58

Olá galera,

Vi aqui varios tutoriais sobre contagem regressiva mas,

tenho que fazer um banner que deva ter uma imagem a cada dia até chegar na data final.


Exemplo:
O evento ira ser no dia 24 julho e tenho que ter uma imagem acada dia a paratir do dia 11 de julho.



A ideia é que depois de meia noite o banner leia o proximo frame/Imagem.


Obrigadão!

Consegui um baca ...

Mas o ideal seria poder escolher o KEYFRAME em apenas UM .SWF ...


O baca:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR...nsitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script>
function rodarImagens(){
var now = new Date();
var agora = now.getDay();
var hora = now.getHours();
switch (agora){
case 0: //domingo
if(hora >= 0 && hora < 24){ document.write('<embed src="swf/teste.swf" width="800" height="400" /></embed>'); }
break
case 1: //segunda
if(hora >= 20 && hora < 22){ document.write('<embed src="swf/12.swf" width="800" height="800" /></embed>'); }
break
case 2: //terça
if(hora >= 20 && hora < 22){ document.write('<embed src="swf/13.swf" width="800" height="800" /></embed>'); }
break
case 3: //quarta
if(hora >= 20 && hora < 22){ document.write('<embed src="swf/14.swf" width="800" height="800" /></embed>'); }
break
case 4: //quinta
if(hora >= 20 && hora < 22){ document.write('<embed src="swf/15.swf" width="800" height="800" /></embed>'); }
break
case 5: //sexta
if(hora >= 20 && hora < 22){ document.write('<embed src="swf/16.swf" width="800" height="800" /></embed>'); }
break
case 6: //sábado
if(hora >= 20 && hora < 22){ document.write('<embed src="swf/17.swf" width="800" height="800" /></embed>'); }
break
}
}
</script>
</head>

<body>
<script>rodarImagens();</script>
</body>
</html>

IPB Skin By Virteq