澳门威利斯人_威利斯人娱乐「手机版」

来自 澳门威利斯人 2019-05-13 11:27 的文章
当前位置: 澳门威利斯人 > 澳门威利斯人 > 正文

点击同一处显示与隐藏,应用于Domino的Javascript浮

HTML

效果图:

<a href="javascript:void()" onclick="show()">点击这里展现或隐藏</a>
<div id="hoary" style="display:none">能够隐藏能够来得。</div>

图片 1

JS

<script type="text/javascript">
function show(){
document.getElementById("hoary").style.display=document.getElementById("hoary").style.display==''?'none':'';
}
</script>

 

 

先在页面插入如下代码:

 

 

<DIV class="coverDiv" id="coverDiv" style="display:none"><IFRAME id="coverDivFrame" name="coverDivFrame" src="about:blank" frameBorder=0 width="100%" height="100%"></IFRAME></DIV>
<DIV onMouseUp="releasedivwindow();" class="Shadow" onMouseDown="catchdivwindow();" id="div_window" style="Z-INDEX: 999999; LEFT: 0px; display:none; OVERFLOW: auto; POSITION: absolute; TOP: 0px; CURSOR: move">
<TABLE id=flyTailer height=400 cellSpacing=0 cellPadding=0 width=600 border=0>
  <TBODY>
  <TR>
    <TD vAlign=top height=26>
      <TABLE style="TABLE-LAYOUT: fixed; CURSOR: move" cellSpacing=0 
      cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD width=1 height=26><IMG height=26 
            src="/oasrc/index/window_topbar_line.gif" width=1></TD>
          <TD class=windowtopbartitle 
          ondblclick="javascript:max_divwindow()"><IMG height=16 
            src="/oasrc/index/title.gif" width=16 align=absMiddle border=0> 
            <span id="flyTailerTitle" title="提示窗口">提醒窗口</span></TD>
          <TD class=windowtopbarbtn vAlign=top width=100><IMG 
            onmousedown="MM_swapImage('winbtn1','','/oasrc/index/window_min_down.gif',1)" 
            id=winbtn1 
            onmouseover="MM_swapImage('winbtn1','','/oasrc/index/window_min_hover.gif',1)" 
            style="CURSOR: default" onfocus=this.blur() 
            onclick="javascript:min_divwindow()" 
            onmouseout=MM_swapImgRestore() height=17 
            src="/oasrc/index/window_min.gif" width=26 border=0 
            name=winbtn1><IMG 
            onmousedown="MM_swapImage('winbtn2','','/oasrc/index/window_default_down.gif',1)" 
            id=winbtn2 
            onmouseover="MM_swapImage('winbtn2','','/oasrc/index/window_default_hover.gif',1)" 
            style="DISPLAY: none; CURSOR: default" onfocus=this.blur() 
            onclick="javascript:min_divwindow()" 
            onmouseout=MM_swapImgRestore() height=17 
            src="/oasrc/index/window_default.gif" width=26 border=0 
            name=winbtn2><IMG 
            onmousedown="MM_swapImage('winbtn3','','/oasrc/index/window_max_down.gif',1)" 
            id=winbtn3 
            onmouseover="MM_swapImage('winbtn3','','/oasrc/index/window_max_hover.gif',1)" 
            style="CURSOR: default" onfocus=this.blur() 
            onclick="javascript:max_divwindow()" 
            onmouseout=MM_swapImgRestore() height=17 
            src="/oasrc/index/window_max.gif" width=25 border=0 
            name=winbtn3><IMG 
            onmousedown="MM_swapImage('winbtn4','','/oasrc/index/window_mid_down.gif',1)" 
            id=winbtn4 
            onmouseover="MM_swapImage('winbtn4','','/oasrc/index/window_mid_hover.gif',1)" 
            style="DISPLAY: none; CURSOR: default" onfocus=this.blur() 
            onclick="javascript:max_divwindow()" 
            onmouseout=MM_swapImgRestore() height=17 
            src="/oasrc/index/window_mid.gif" width=25 border=0 
            name=winbtn4><IMG 
            onmousedown="MM_swapImage('winbtn5','','/oasrc/index/window_close_down.gif',1)" 
            id=winbtn5 
            onmouseover="MM_swapImage('winbtn5','','/oasrc/index/window_close_hover.gif',1)" 
            style="CURSOR: default" onfocus=this.blur() 
            onclick="javascript:Hidedivwindow()" 
            onmouseout=MM_swapImgRestore() height=17 
            src="/oasrc/index/window_close.gif" width=42 border=0 
          name=winbtn5></TD>
          <TD width=1><IMG height=26 
            src="/oasrc/index/window_topbar_line.gif" 
      width=1></TD></TR></TBODY></TABLE></TD></TR>
  <TR id=flyTailerTr name="flyTailerTr">
    <TD id=flyTailerHolder vAlign=top height="100%" 
      name="flyTailerHolder"><IFRAME id="flyTailermain" name="flyTailermain" frameBorder=0 src="about:blank" width="100%" height="100%"></IFRAME></TD>
  </TR>
 </TBODY>
</TABLE>
</DIV>

 

 

本文由澳门威利斯人发布于澳门威利斯人,转载请注明出处:点击同一处显示与隐藏,应用于Domino的Javascript浮

关键词: 澳门威利斯人 所有随笔 企业信息化 JavaScript技巧