Chamar site por hora e minutos marcado
Olá, sou novo em programação, preciso chamar um site dentro de outro por hora e minutos marcado, já tenho um condigo Javascript bem simples e funcionando, porém ele só chama por hora, eu preciso que aguem da hora também dê para especificar os minutos, por favor alguém me ajude, preciso desse código urgente!
<script language="JavaScript">
d = new Date();
hour = d.getHours();
if(hour < 1)
{
document.write("<iframe frameborder='0' height='40' marginheight='0' marginwidth='0' scrolling='No' src='http://www.site-a-ser-chamado.html' width='1366'></iframe>");
}
else
if(hour < 2)
{
document.write("<iframe frameborder='0' height='40' marginheight='0' marginwidth='0' scrolling='No' src='http://www.site-a-ser-chamado.html' width='1366'></iframe>");
}
else
if(hour < 3)
{
document.write("<iframe frameborder='0' height='40' marginheight='0' marginwidth='0' scrolling='No' src='http://www.site-a-ser-chamado.html' width='1366'></iframe>");
}
else
if(hour < 4)
{
document.write("<iframe frameborder='0' height='40' marginheight='0' marginwidth='0' scrolling='No' src='http://www.site-a-ser-chamado.html' width='1366'></iframe>");
}
else
if(hour < 5)
{
document.write("<iframe frameborder='0' height='40' marginheight='0' marginwidth='0' scrolling='No' src='http://www.site-a-ser-chamado.html' width='1366'></iframe>");
}
else
if(hour < 6)
{
document.write("<iframe frameborder='0' height='40' marginheight='0' marginwidth='0' scrolling='No' src='http://www.site-a-ser-chamado.html' width='1366'></iframe>");
}
else
if(hour < 7)
{
document.write("<iframe frameborder='0' height='40' marginheight='0' marginwidth='0' scrolling='No' src='http://www.site-a-ser-chamado.html' width='1366'></iframe>");
}
else
if(hour < 8)
{
document.write("<iframe frameborder='0' height='40' marginheight='0' marginwidth='0' scrolling='No' src='http://www.site-a-ser-chamado.html' width='1366'></iframe>");
}
else
if(hour < 9)
{
document.write("<iframe frameborder='0' height='40' marginheight='0' marginwidth='0' scrolling='No' src='http://www.site-a-ser-chamado.html' width='1366'></iframe>");
}
else
if(hour < 10)
{
document.write("<iframe frameborder='0' height='40' marginheight='0' marginwidth='0' scrolling='No' src='http://www.site-a-ser-chamado.html' width='1366'></iframe>");
}
else
if(hour < 11)
{
document.write("<iframe frameborder='0' height='40' marginheight='0' marginwidth='0' scrolling='No' src='http://www.site-a-ser-chamado.html' width='1366'></iframe>");
}
else
if(hour < 12)
{
document.write("<iframe frameborder='0' height='40' marginheight='0' marginwidth='0' scrolling='No' src='http://www.site-a-ser-chamado.html' width='1366'></iframe>");
}
else
if(hour < 13)
{
document.write("<iframe frameborder='0' height='40' marginheight='0' marginwidth='0' scrolling='No' src='http://www.site-a-ser-chamado.html' width='1366'></iframe>");
}
else
if(hour < 14)
{
document.write("<iframe frameborder='0' height='40' marginheight='0' marginwidth='0' scrolling='No' src='http://www.site-a-ser-chamado.html' width='1366'></iframe>");
}
else
if(hour < 15)
{
document.write("<iframe frameborder='0' height='40' marginheight='0' marginwidth='0' scrolling='No' src='http://www.site-a-ser-chamado.html' width='1366'></iframe>");
}
else
if(hour < 16)
{
document.write("<iframe frameborder='0' height='40' marginheight='0' marginwidth='0' scrolling='No' src='http://www.site-a-ser-chamado.html' width='1366'></iframe>");
}
else
if(hour < 17)
{
document.write("<iframe frameborder='0' height='40' marginheight='0' marginwidth='0' scrolling='No' src='http://www.site-a-ser-chamado.html' width='1366'></iframe>");
}
else
if(hour < 18)
{
document.write("<iframe frameborder='0' height='40' marginheight='0' marginwidth='0' scrolling='No' src='http://www.site-a-ser-chamado.html' width='1366'></iframe>");
}
else
if(hour < 19)
{
document.write("<iframe frameborder='0' height='40' marginheight='0' marginwidth='0' scrolling='No' src='http://www.site-a-ser-chamado.html' width='1366'></iframe>");
}
else
if(hour < 20)
{
document.write("<iframe frameborder='0' height='40' marginheight='0' marginwidth='0' scrolling='No' src='http://www.site-a-ser-chamado.html' width='1366'></iframe>");
}
else
if(hour < 21)
{
document.write("<iframe frameborder='0' height='40' marginheight='0' marginwidth='0' scrolling='No' src='http://www.site-a-ser-chamado.html' width='1366'></iframe>");
}
else
if(hour < 22)
{
document.write("<iframe frameborder='0' height='40' marginheight='0' marginwidth='0' scrolling='No' src='http://www.site-a-ser-chamado.html' width='1366'></iframe>");
}
else
if(hour < 23)
{
document.write("<iframe frameborder='0' height='40' marginheight='0' marginwidth='0' scrolling='No' src='http://www.site-a-ser-chamado.html' width='1366'></iframe>");
}
else
if(hour < 24)
{
document.write("<iframe frameborder='0' height='40' marginheight='0' marginwidth='0' scrolling='No' src='http://www.site-a-ser-chamado.html' width='1366'></iframe>");
}
else
{
document.write("<iframe frameborder='0' height='40' marginheight='0' marginwidth='0' scrolling='No' src='http://www.site-a-ser-chamado.html' width='1366'></iframe>");
}
</script>
<script language="JavaScript">
corrente = new Date()
Dia = corrente.getDate()
mes = corrente.getMonth()+1
ano = corrente.getYear()
if (mes == 1) {
mes="Janeiro"
}else
if (mes == 2) {
mes="Fevereiro"
}else
if (mes == 3) {
mes="Março"
}else
if (mes == 4) {
mes="Abril"
}else
if (mes == 5) {
mes="Maio"
}else
if (mes == 6) {
mes="Junho"
}else
if (mes == 7) {
mes="Julho"
}else
if (mes == 8) {
mes="Agosto"
}else
if (mes == 9) {
mes="Setembro"
}else
if (mes == 10) {
mes="Outubro"
}else
if (mes == 11) {
mes="Novembro"
}else {
mes="Dezembro"
}
document.write("<font face='Arial' size=2><br></font>")
</script>Discussão (5)
Carregando comentários...