смотреть оглавление

примерразмер кода


') //Set the width and height of your textarea else document.write('') function change(){ document.base.src=eval(document.Myform.Myselect.options[document.Myform.Myselect.options.selectedIndex].value); if (ns4) {document.Myform.dropdownchanger.value=red[document.Myform.Myselect.options.selectedIndex]} if (ie4) {document.all['dropdownchanger'].innerHTML ='

' + red[document.Myform.Myselect.options.selectedIndex] + '

'} else if (dom) {document.getElementById("dropdownchanger").innerHTML ='

' + red[document.Myform.Myselect.options.selectedIndex] + '

'} }


<div align="center"><br>
<a href="http://www.03www.su/index.html"><img src="searcher.gif" 
width=258 height=28 border=0 alt="ИСКАТЕЛЬ" ></a> <br> 
<br>
<SCRIPT src="menu.js" type=text/javascript></SCRIPT>
</div>
<IMG height=31 alt=1 src="1.gif" width=88 border=1 
  name=base> 
  <FORM name=Myform>
  <SCRIPT language=JavaScript type=text/javascript>
  image1 = new Image();
  image1.src = "1.gif"; //first image
  image2 = new Image();
  image2.src = "2.gif"; //second image
  // Insert your text for each picture
  red= new Array();
  red[0]="This is the W3C CSS Validation logo.";
  red[1]="This is the W3C XHTML Validation logo.";
  dom = (document.getElementById)? true:false
  ns4 = (document.layers)? true:false
  ie4 = (document.all && !dom)? true:false
  if (ns4) document.write('<textarea name="dropdownchanger" wrap="soft" 
  rows="5" cols="20">' +red[0] + '</textarea><br>')
  //Set the width and height of your textarea
  else document.write('<div id="dropdownchanger" style="width:200px; 
  height:50px;"><p>' +red[0] + '</p></div>')
  function change(){
  document.base.src=eval(document.Myform.Myselect.options[document.Myform.Myselect.options.selectedIndex].value);
  if (ns4) {document.Myform.dropdownchanger.value=red[document.Myform.Myselect.options.selectedIndex]}
  if (ie4) {document.all['dropdownchanger'].innerHTML ='<p>' + red[document.Myform.Myselect.options.selectedIndex] 
  + '</p>'}
  else if (dom) {document.getElementById("dropdownchanger").innerHTML 
  ='<p>' + red[document.Myform.Myselect.options.selectedIndex] + '</p>'}
  }
  </SCRIPT>
  <SELECT onchange=change() size=1 name=Myselect> <OPTION 
  value=image1.src selected>CSS Logo</OPTION> <OPTION 
  value=image2.src>XHTML Logo</OPTION></SELECT> </FORM>


JAVASCRIPT © 1997-   Дизайн и сопровождение © SE@RCHER