return to startscreen of javascript video jukebox doesnot go -


i have installed small video jukebox stat can seen via link ...

at first initial screen picture shown, fine. after 1 can choose via dropdown or vorige/volgende button video 1 see. however, when afterwards returning initial field of drop down (where shows: ... maak hier je keuze ... not show initial picture.

what doing wrong here? how solve? advise highly appreciated. related script following:

<style>  .txt3 {  font-weight: normal;  font-size: 100%;  font-weight: bold;  font-family: verdana;     }  .txt4 {  font-weight: normal;  font-size: 100%;  font-weight: bold;  font-family: verdana;     margin-top: 2px;          margin-left: 0px;  color:#000000;  background: #f3fed0;  border: 2px solid #92ad34;  }  .wrap {      text-align:center  }  #div1 {      display: inline-block;      border: 2px solid red;      float: left;  }  #div2 {      display: inline-block;      text-align: center;      border: 0px solid green;  }  #div3 {      display: inline-block;      border: 2px solid blue;      position: relative;      float: right;  }  select.center {  position: relative;      display: inline-block;  }  input.right {  position: relative;      float: right;  }  </style>   <script language=javascript>  function setiframesource() {  //do whatever you're doing  ;  }  function nexttiles(i) {  var e = document.getelementbyid("overlayselector");  e.selectedindex +=i ;  //loop-around top or bottom depending on increment/decrement  if(e.selectedindex == -1) {  if(i>0) e.selectedindex = 0;  else e.selectedindex = e.length - 1;  }  setiframesource(); //with updated selected option,  //do whatever doing when user manually chooses in dropdown  }   var theselect,theiframe;   $(document).ready(function() {   theselect = document.getelementbyid('overlayselector');  theiframe = document.getelementbyid('myiframe');  theurl = theselect.options.value;  theiframe.src = theurl;  });   function setiframesource() {  var theurl;  if ( theselect.selectedindex > 0) {   theurl = theselect.options[theselect.selectedindex].value;       }    theiframe.src = theurl;   }  </script>   <iframe id="myiframe" src="www.tukhut.nl/images/despicable-me-3-lucy-gru-and-dru_925.jpg" frameborder="0" marginwidth="0" marginheight="0"  width="100%" height="472" related="0" allowfullscreen scrolling="no"></iframe><br><br>   <div class="wrap">   <div id="div1"><input type="button" value="vorige" onclick="nexttiles(-1)"></div>   <div id="div2">  <form id="form1" method="post">  <label class="txt3"> welke video wil je bekijken?  <select class="txt4" id="overlayselector" onchange="setiframesource()"> <option value="http://www.tukhut.nl/images/despicable-me-3-lucy-gru-and-dru_925.jpg" selected="enabled">... maak hier je keuze ...</option>     <option value="https://www.youtube.com/embed/rlq39ic07qa?rel=0&fs=0&autoplay=1&modestbranding=1"> despicable me 3, trailer 1&nbsp;&nbsp;</option>     <option value="https://www.youtube.com/embed/uaprzvgovxc?rel=0&fs=0&autoplay=1&modestbranding=1"> despicable me 3, trailer 2&nbsp;&nbsp;</option>     <option value="https://www.youtube.com/embed/grdbix3zm8c?rel=0&fs=0&autoplay=1&modestbranding=1"> despicable me 3, trailer 3&nbsp;&nbsp;</option> <option value="https://www.youtube.com/embed/94myemvx0ky?rel=0&fs=0&autoplay=1&modestbranding=1"> een gezellige mee-eter &nbsp;&nbsp;</option>  </select>  </label>  </form>  </div>  <div id="div3"><input type="button" class="right" value="volgende" onclick="nexttiles(1)"></div>   </div>     


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -