embled

 want to have my webcam from fogcam! here is embled big

<html><head><link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css"><link href="https://fonts.googleapis.com/css?family=Hammersmith+One" rel="stylesheet" type="text/css"></head><body><img class="double_border" style="width:1280px; height:720px;" alt="grass webcam" title="grass webcam" src="https://webcama1.watching-grass-grow.com/current.jpg?wgg1736387459099" id="webcam">

<script>

   view = "newgrass"; 

   ts = 1000;         // interval spacing in milliseconds

   tsrandom = 20;  // random interval in milliseconds

   var timecount = 0;

   var timeend = 600000;

   imageoffline = "/webcam-offline.jpg";

   imagenewgrass = "https://webcama1.watching-grass-grow.com/current.jpg";

   imageoldgrass = "https://webcama2.watching-grass-grow.com/current.jpg";

   image=imagenewgrass;

   function RefreshImage() {

      timecount = timecount + ts;

      tsrand = Math.floor(tsrandom*Math.random());

      tmp = new Date();

      tmp = "?wgg"+tmp.getTime(); 

      if (view == "alternate") {

         if ( image == imageoldgrass ) { 

            image = imagenewgrass;

         } else { 

            image = imageoldgrass;

         }

      } else if (view == "oldgrass") {

         image = imageoldgrass;

      } else if (view == "newgrass") {

         image = imagenewgrass;

      } else {

         view = grass;

         image = imageoldgrass;

      }

      if (timecount>timeend) {

         image = "https://webcama1.watching-grass-grow.com/mow-lawn-break.jpg";

         ts = timeend;

      }

      document.images["webcam"].src = image+tmp; 

      setTimeout("RefreshImage()", (ts+tsrand));

   }

   function Start() {

      setTimeout("RefreshImage()", 500);

   }

   function alternatewebcam(string){

      view = "alternate";

   }

   function oldgrasswebcam(string){

      view = "oldgrass";

   }

   function newgrasswebcam(string){

      view = "newgrass";

   }

   Start();


   view = "newgrass"; 

   ts = 1000;         // interval spacing in milliseconds

   tsrandom = 20;  // random interval in milliseconds

   var timecount = 0;

   var timeend = 600000;

   imageoffline = "/webcam-offline.jpg";

   imagenewgrass = "https://webcama1.watching-grass-grow.com/current.jpg";

   imageoldgrass = "https://webcama2.watching-grass-grow.com/current.jpg";

   image=imagenewgrass;

   function RefreshImage() {

      timecount = timecount + ts;

      tsrand = Math.floor(tsrandom*Math.random());

      tmp = new Date();

      tmp = "?wgg"+tmp.getTime(); 

      if (view == "alternate") {

         if ( image == imageoldgrass ) { 

            image = imagenewgrass;

         } else { 

            image = imageoldgrass;

         }

      } else if (view == "oldgrass") {

         image = imageoldgrass;

      } else if (view == "newgrass") {

         image = imagenewgrass;

      } else {

         view = grass;

         image = imageoldgrass;

      }

      if (timecount>timeend) {

         image = "https://webcama1.watching-grass-grow.com/mow-lawn-break.jpg";

         ts = timeend;

      }

      document.images["webcam"].src = image+tmp; 

      setTimeout("RefreshImage()", (ts+tsrand));

   }

   function Start() {

      setTimeout("RefreshImage()", 500);

   }

   function alternatewebcam(string){

      view = "alternate";

   }

   function oldgrasswebcam(string){

      view = "oldgrass";

   }

   function newgrasswebcam(string){

      view = "newgrass";

   }

   Start();

</script></body></html>

Comments

Popular Posts