fuck-KUNLUN

<!DOCTYPE html>
<html>
<head>
    <title>Javascript中点击事件方法三</title>
  <script type="text/javascript">
    var a =123;
    var fn =eval(a);
    alert(a);
        function test(){
            alert("hello world");
        }
    </script>
</head>
<body>
    <button id="btn" onclick="test()">click</button>
</body>if
rely not seen the most crucial one
</ html>


(navigator.appName == ' Netscape ' ) 
write the following code is wrong, deleted directly 



table inside Systel = " the DISPLAY: none "    modified DISPLAY: show or hide 

includefile inside js file after breakpoint debugging 
obj.visibility Google acquires parameters not inside the browser 

function clikker (isLast, Block, arrow arrow, srcimg) 
{ // point 
var lastone
 IF (== isLast . 1 ) 
{lastone = to true ;}
 the else 
{lastone = to false ;}; 
 IF (Navigator == .appName ' Netscape ' ) 
{ 
      var obj,imgobj1,imgobj2
      obj=eval(block);
      imgobj1=eval(arrow);
      imgobj2=eval(srcimg);
      if (obj.visibility=='hide')
      {
          obj.visibility='show';
          if (lastone)
           {
             imgobj1.src='images/t_minul.gif';
           }
          else
           {
             imgobj1.src='images/t_minu.gif';
           };
          //imgobj2.src='images/t_folder.gif';    
        imgobj2.className='icon-folder-close';
       }
      else
      {
          obj.visibility='hide';
          if (lastone)
           {
              imgobj1.src='images/t_plusl.gif';
           }
          else
           {
              imgobj1.src='images/t_plus.gif';
           };     
          //imgobj2.src='images/t_open.gif';    
        imgobj2.className='icon-folder-open';
      };
  }
else

Garbage in the garbage, trash forget all insult the word.

Guess you like

Origin www.cnblogs.com/landv/p/11119717.html