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(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyGSDGjAdCrh6NVInv98-mW_Ubj6jKvTjyxyu8jSJ1hxWmN9FtkZXIVdAehSsIdB8fQO3VCEO_ypIjkT3258xDx4eiroXlkc-zUQx4HeES6Ei4oQ07XMTvLPk54IsII2ZYHH39m3rhelk/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(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiedOcmFJyb9DwH9jWyYMxIREZSCZCeRyjnFFxu-KBz4ExDrUsIaHnn6So5oxu9J1iCfUm_r6lU5Gg7u_Xe2lFCPq1jE-iY8xaWGuz0puLSL8xuA7z5LH7UReO36oIIegldz3wk9JpyUbw/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(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhY0oKlF4g9pQ12iGoUo23WhST5K6vunR9PAvPxZDGn9Nxj8qDc2F-8Y5gdzFIbrh381EzKVfhj5rRQPXdvT6K6hj1VOjqcBfqKSWNAGEsI7-C6IhAKP9rc3U9aXrEN-e1Z24rw4WP0P_w/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 --> |