Select List Updates Layer

[Total: 0    Average: 0/5]

This shows for NS4 (layers) how to have a date selection update the layer.

Body Code:

<p>
<DIV CLASS=plainPara>
You text here
</DIV>
<ILAYER LEFT=50 >
<P CLASS=plainPara> Please select a day of the week:</P>

    <FORM NAME=form1>

     <SELECT name=menu1 onChange="showSpecials(this.selectedIndex); return false;">
	    <OPTION >Select a Day</option>
        <OPTION >Saturday</option>
        <OPTION >Sunday</option>
        <OPTION >Monday</option>
        <OPTION >Tuesday</option>
        <OPTION >Wednesday</option>
        <OPTION >Thursday</option>
        <OPTION >Friday</option>
     </SELECT>
   </FORM>
</ILAYER>

<LAYER NAME="menu" LEFT=50

   WIDTH=400
   BGCOLOR="BBFFBB" src="http://www.js-examples.com/">

</LAYER>


<SCRIPT>
function showSpecials(n) {
 var specials = document.menu;
 switch (n) {
  case 1: specials.src = "/"; break;
  case 2: specials.src = "/"; break;
  case 3: specials.src = "/"; break;
  case 4: specials.src = "/"; break;
  case 5: specials.src = "/"; break;
  case 6: specials.src = "/"; break;
  default: specials.src = "/";
  }
}


</SCRIPT>
NS4 only

Times Viewed: 3

Leave a Reply

Your email address will not be published. Required fields are marked *