Jump to content


Photo

Script que faça com que a Imagem Troque Conforme Dia

javascript

  • Faça o login para participar
4 replies to this topic

#1 octavio pedro

octavio pedro

    Novato no fórum

  • Usuários
  • 2 posts
  • Sexo:Masculino
  • Localidade:Rio Verde

Posted 01/09/2017, 12:30

Preciso de ajuda preciso de um script que que conforme o dia da semana e hora ela troque por outra image alem de ser um carrocel também! Tenho um script mas não consegui fazer com que fique agendado por dia!

 

<!doctype html>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />


<?java include"scripts.java";?>


<title>tes</title>
<link href="style.css" rel="stylesheet" type="text/css" />


<script type="text/javascript" src="scripts/jquery.js"></script>
<script type="text/javascript" src="scripts/cycle.js"></script>




<style type="text/css">
</style>


<script type="text/javascript">
/* <![CDATA[ */
jQuery(document).ready(function(){
jQuery(function() {
   jQuery("#slideshow").cycle({
       speed: '5000',
       timeout: '10000',
pause: 1
   });
});
});
/* ]]> */
</script>
</head>
<body link="#FFFFFF" alink="#FFFFFF" vlink="#FFFFFF" leftmargin="0" topmargin="0" rightmargin="0">
<div id="slideshow">


<div class="slidershow">
 <script type="text/javascript">
      var now = new Date();
      var today = now.getDay();
      var startTime = new Date();
      startTime.setHours(00);
      startTime.setMinutes(00);
      startTime.setSeconds(00);
      var endTime = new Date();
      endTime.setHours(12);
      endTime.setMinutes(50);
      endTime.setSeconds(00);
      var on = '<img src="tela/tela.png">';
      var off = '<img src="tela/tela3.png">';
   
      if ((today >= 4) && (today <= 6) && (now > startTime) && (now < endTime))
      {document.write(on);}
      else
      {document.write(off);}


</script>


</div>
<div class="slidershow">
 <script type="text/javascript">
      var now = new Date();
      var today = now.getDay();
 today.getDay(7);
      var startTime = new Date();
      startTime.setHours(08);
      startTime.setMinutes(00);
      startTime.setSeconds(00);
      var endTime = new Date();
      endTime.setHours(23);
      endTime.setMinutes(59);
      endTime.setSeconds(00);
      var on = '<img src="tela/tela2.png">';
      var off = '<img src="imgs/atend-off.png">';




      if ((today > 0) && (today < 8) && (now > startTime) && (now < endTime))
      {document.write(on);}
      else
      {document.write(off);}


</script>


</div>


</body>
</html>
 
 


#2 LarPhozyHah

LarPhozyHah

    Super Veterano

  • Usuários
  • 14515 posts
  • Sexo:Masculino
  • Localidade:San Miguel de Tucuman

Posted 29/09/2017, 05:14

Viagra Paypal Accepted Alternative Al Viagra Senza Ricetta Priligy Cruz Verde cialis buy online Teva Viagra Price Cialis Remboursement Cephalexin Std

#3 RonsisM

RonsisM

    Super Veterano

  • Usuários
  • 15724 posts
  • Sexo:Masculino
  • Localidade:Plovdiv

Posted 06/10/2017, 07:41

Viagra Acquisto Italia Is Amoxicillin Bad For Dogs Precio Cialis Cialis viagra Buy Generic Plavix Cheap
Amoxicillin 200 Mg Cialis Forum Prezzi Precio Cialis Diario viagra Viagra Express Shipping In New Jersey

#4 LarPhozyHah

LarPhozyHah

    Super Veterano

  • Usuários
  • 14515 posts
  • Sexo:Masculino
  • Localidade:San Miguel de Tucuman

Posted 06/10/2017, 20:52

100 Mg Viagra Acheter Priligy Pilules online pharmacy Teva Usa Ingredients For Amoxicillin 500mg Best Place To Buy Viagra
Order Viagra Without A Prescription viagra online Cialis 5g Comprar Cialis Viagra Farmacia
Come Il Viagra Propecia Geheimratsecken viagra Cialis Generico PreСÐРСÐвÐâСÐвÐâ¢Ð ÐЧo Doxtcycline Pills Without Prescription Buy Effexor Online No Prescription

#5 RonsisM

RonsisM

    Super Veterano

  • Usuários
  • 15724 posts
  • Sexo:Masculino
  • Localidade:Plovdiv

Posted 06/10/2017, 22:11

Cephalexin Induced Acute Interstitial Nephritis Viagra Online Prescription Priligy Disfuncion Erectil generic viagra Propecia Farligt For Kvinnor Does Cephalexin Cause Yeast Infection Pet Amoxicillin
isotretinoin order internet no physician approval Order levitra from canada generic cialis Vente Cialis Canada Amoxicillin Dosage Bladder Infection





Veja alguns posts relacionados com: javascript

1 user(s) are reading this topic

0 membro(s), 1 visitante(s) e 0 membros anônimo(s)

IPB Skin By Virteq