一段Tapestry环境下JS控制DIV显隐的代码

<!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> -->  1  < script  type ="text/javascript" >
 2     <!--
 3       function  setDivShowHide(divID,s)
 4      {
 5         if (s == 1 ) {
 6            document.getElementById(divID).style.display = "" ;
 7        }  else  {
 8            document.getElementById(divID).style.display = " none " ;
 9        }
10      }
11     // -->
12  </ script >
13 
14  < div  jwcid ="@Any"  align ="left"  onmouseover ="ognl:'javascript:setDivShowHide(\'div'+pl.id+'\',1);'"  onmouseout ="ognl:'javascript:setDivShowHide(\'div'+pl.id+'\',0);'" >< span  jwcid ="@xylib:FilterInsert"  length ="75"  value ="ognl:pl.plnr"   /></ div >
15                                     <!--  DIV开始  -->     
16                                 < DIV 
17                                  jwcid ="@Any"
18                                 id ="ognl:'div'+pl.id+''"
19                                 onmouseover ="ognl:'javascript:setDivShowHide(\'div'+pl.id+'\',1);'"  
20                                 onmouseout ="ognl:'javascript:setDivShowHide(\'div'+pl.id+'\',0);'"
21                                 style ="MARGIN-TOP: 0px; display:none; MARGIN-LEFT: 0px; WIDTH: 500px; height:30px; POSITION: absolute; background:#C0DCC0; z-index:1"
22                                 >
23                                 < iframe  frameborder ="0"  style ="MARGIN-TOP: 0px; MARGIN-LEFT: 0px; WIDTH: 500px; height:30px; POSITION: absolute; background:#C0DCC0; z-index:2" ></ iframe >
24                                 < div  style ="MARGIN-TOP: 0px;MARGIN-LEFT: 0px; WIDTH: 500px; height:30px; POSITION: absolute; background:#C0DCC0; z-index:3" >
25                                         < span  jwcid ="@Insert"  value ="ognl:pl.plnr"   />
26                                 </ div >
27                                 </ DIV >
28                                 <!--  DIV结束  -->

你可能感兴趣的:(JavaScript,tapestry)