摘要:
js代码:$(function() { $(document).mousedown(function(event) { if (event.target.id == 'color') { document.getElementById("x-palette-panel").style.display = 'block'; } else { document.getElementById("x-palette-panel").style.display = 'none'; } });});html代... 阅读全文
posted @ 2012-09-21 16:01
天殇月痕
阅读(532)
评论(0)
推荐(0)
摘要:
一、获取b页面的iframe对象var iframeB = document.getElementById("b");二、再获取b页面的document对象var docB = iframeB.contentWindow.document;三、再获取c页面的iframe对象var iframeC = docB.getElementById("c");四、再获取c页面的document对象var docC = iframeC.contentWindow.document;五、再获取c页面的div对象var divC = docC.getElementByI 阅读全文
posted @ 2012-09-21 14:10
天殇月痕
阅读(1191)
评论(0)
推荐(0)

浙公网安备 33010602011771号