问题描述
我要用frameset,art.dialog.open在子框架页面上写js代码实现穿越【需求不能变】,使得内容层不只在当前框架锁屏,要在整个页面整个屏幕,多个框架中锁屏怎么整?我的测试例子在这里,希望高手指点!!!如图锁屏只锁了当前框架,我要锁全屏。测试代码test3.html页面为<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><htmlxmlns="http://www.w3.org/1999/xhtml"><head><title>NewDocument</title><metaname="Generator"content="EditPlus"><metaname="Author"content=""><metaname="Keywords"content=""><metaname="Description"content=""></head><scripttype="text/javascript"src="jquery.artDialog.source.js"></script><scripttype="text/javascript"src="artDialog.source.js"></script><scripttype="text/javascript"src="iframeTools.source.js"></script><framesetrows="100,*"cols="*"framespacing="0"frameborder="no"border="0"><framesrc="www.youku.com"width="800px"height="300px"/><framesetid="mainframeset"cols="170,*"><framesrc="www.baidu.com"width="800px"height="300px"/><framesrc="test3a.html"width="800px"height="300px"/></frameset></frameset></html>test3a.html页面为<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><htmlxmlns="http://www.w3.org/1999/xhtml"><head><title>NewDocument</title><scripttype="text/javascript"src="jquery.artDialog.source.js"></script><scripttype="text/javascript"src="artDialog.source.js"></script><scripttype="text/javascript"src="iframeTools.source.js"></script><scripttype="text/javascript">functionlockContent(){varthroughBox=art.dialog.through;throughBox({content:'我是一个普通的对话框,只是能穿越框架而已',lock:true});}</script></head><body><divstyle="width:200px;height:50px;background-color:red"><ahref="http://www.baidu.com">跳转百度</a></div><hr><hr><inputtype="button"value="锁屏"onclick="lockContent();"/></body></html>求高手指点!!!