<div class="codetitle"> <span><a style="CURSOR: pointer" data="71636" class="copybut" id="copybut71636" onclick="doCopy('code71636')"><u>複製程式碼</u></a></span> 程式碼如下:</div> <div class="codebody" id="code71636"> <br>//遮罩層<br>$j("<div id="shade"></div>").css({ <br>position:'absolute', <br>top:0, <br>left:0, <br>backgroundColor:"#808080", <br>opacity:0.1, <br>zIndex:300 <br><br>}).height($j(document).height()).width($j(document).width()).hide(). appendTo("#bgCover"); <br> </div> <br>bgCover為目標元素的id