TPBLOGGER
STYLE APRENDIZ
PARA COLOCAR O FUNDO ADICIONE ESSE CODIGO EM Adicionar um Gadget > HTML/JavaScript
<!-- Script New Date--> | |
<script language="JavaScript" type="text/javascript"> | |
var horario = new Date(); | |
var hora = horario.getHours(); | |
var exibe = "<style type='text/css'>body{background: #000000 url(http://i.imgur.com/RFN1rVo.jpg) fixed no-repeat top center;background-attachment:fixed;background-size:cover;}</style>"; | |
if ((hora >= 8) && (hora < 12)) { | |
exibe = "<style type='text/css'>body{background: #000000 url(http://i.imgur.com/YyzsscX.jpg) fixed no-repeat top center;background-attachment:fixed;background-size:cover;}</style>"; | |
} else if ((hora >= 12) && (hora < 18)) { | |
exibe = "<style type='text/css'>body{background: #000000 url(http://i.imgur.com/1YKQaAT.jpg) fixed no-repeat top center;background-attachment:fixed;background-size:cover;}</style>"; | |
} else if ((hora >= 18) && (hora < 20)) { | |
exibe = "<style type='text/css'>body{background: #000000 url(http://i.imgur.com/XNmlilY.jpg) fixed no-repeat top center;background-attachment:fixed;background-size:cover;}</style>"; | |
} else if ((hora >= 20) && (hora < 24)) { | |
exibe = "<style type='text/css'>body{background: #000000 url(http://i.imgur.com/brmgBtc.jpg) fixed no-repeat top center;background-attachment:fixed;background-size:cover;}</style>"; | |
} else if ((hora >= 0) && (hora < 6)) { | |
exibe = "<style type='text/css'>body{background: #000000 url(http://i.imgur.com/PvVB1vI.jpg) fixed no-repeat top center;background-attachment:fixed;background-size:cover;}</style>"; | |
} | |
document.write(exibe); | |
</script> | |
<!-- Fim Script New Date--> | |
<!-- Script New Banner --> | |
<script language="JavaScript" type="text/javascript"> | |
var horario = new Date(); | |
var hora = horario.getHours(); | |
var exibe = "<style type='text/css'>#header-wrapper{background: url(http://3.bp.blogspot.com/-md3ZFzU6NoA/UrujK1WGCfI/AAAAAAAAHsM/wUf0yZCyjyY/s1600/banner1-ds3.png) no-repeat top center;width:1040px;margin: auto;height:390px;overflow:hidden;position: relative;}}</style>"; | |
if ((hora >= 0) && (hora < 8)) { | |
exibe = "<style type='text/css'>#header-wrapper{background: url(http://2.bp.blogspot.com/-kBELUoOuACw/UrujLArz1pI/AAAAAAAAHsQ/IK8RKDh9Nco/s1600/banner2-ds3.png) no-repeat top center;width:1040px;margin: auto;height:390px;overflow:hidden;position: relative;}}</style>"; | |
} else if ((hora >= 8) && (hora < 16)) { | |
exibe = "<style type='text/css'>#header-wrapper{background: url(http://2.bp.blogspot.com/-la_ZUmtmlTI/Urur_a9SjKI/AAAAAAAAHsk/Xu9ev_wuMqI/s1600/banner3-ds3.png) no-repeat top center;width:1040px;margin: auto;height:390px;overflow:hidden;position: relative;}}</style>"; | |
} | |
document.write(exibe); | |
</script> | |
<!-- Fim Script New Banner --> |