如何阻止外部点击关闭tinybox? [英] How to block closing tinybox from outer click?
本文介绍了如何阻止外部点击关闭tinybox?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
有没有人知道如何通过点击弹出页面的外部来阻止tinybox关闭?感谢您的关注...
Hi all,
Does anybody know how can I block tinybox to close by clicking the outer of popup page? Thanks for your interest...
推荐答案
在tinybox2.js中找到代码
In tinybox2.js find the code
m.onclick = g.onclick = TINY.box.hide; window.onresize = TINY.box.resize
并删除m.onclick所以
and remove "m.onclick" so
g.onclick = TINY.box.hide; window.onresize = TINY.box.resize
谢天谢地。
thank it is ok.
document.getElementsByClassName('tmask')[0 ] .onclick = null;
请使用上面的行,它工作正常......
document.getElementsByClassName('tmask')[0].onclick=null;
Please use above line and it's working fine...
这篇关于如何阻止外部点击关闭tinybox?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文