zoukankan
html css js c++ java
给父窗口添加新的代码
var
popSrc
=
"
<
"
+
"
div id='v_popImg' name='v_popImg' style='position:absolute;top:300px;left:200px;456px;height:95px;z-index: 999;visibility:visible'>
"
;
popSrc
+=
"
<
"
+
"
table width='100%' height='100%' border='0' background='/images/bk.jpg'>
"
;
popSrc
+=
"
<
"
+
"
tr height='10'>
"
;
popSrc
+=
"
<
"
+
"
td colspan='2'> </td>
"
;
popSrc
+=
"
</tr>
"
;
popSrc
+=
"
<
"
+
"
tr height='24'>
"
;
popSrc
+=
"
<
"
+
"
td colspan='2' align=center id=mytitle name=mytitle></td>
"
;
popSrc
+=
"
</tr>
"
;
popSrc
+=
"
<
"
+
"
tr align='center'>
"
;
popSrc
+=
"
<
"
+
"
td><
"
+
"
a id=v_popA name=v_popA href=javascript:OK() onmouseover=\
"
window.status
=
'';
return
true
;\
"
><
"
+
"
img src='/images/yes.jpg' border=0></a></td>
"
;
popSrc
+=
"
<
"
+
"
td><
"
+
"
a id=v_popR name=v_popR href='javascript:NO();' onmouseover=\
"
window.status
=
'';
return
true
;\
"
><
"
+
"
img src='/images/no.jpg' border=0>
"
+
"
<
"
+
"
/a>
"
+
"
<
"
+
"
/td>
"
;
popSrc
+=
"
<
"
+
"
/tr>
"
;
popSrc
+=
"
<
"
+
"
/table></div>
"
;
var
parentText
=
parent.document.body.innerHTML;
if
(parentText.indexOf('v_popImg')
==-
1
)
{
parent.document.body.innerHTML
=
parentText
+
popSrc;
}
最后的判断一下父窗口是否已经有代码了.不然就会变成死循环的样子了.它会一直加载我们给的代码
查看全文
相关阅读:
操作系统知识点_用户编程接口
操作系统知识点_内存管理
操作系统知识点_进程管理
LintCode 二叉树的后序遍历
LintCode 二叉树的最大深度
LintCode 二叉树的中序遍历
LintCode 二叉树的前序遍历
LintCode 删除排序链表中的重复元素
Lintcode 二分查找
lintcode 空格替换
原文地址:https://www.cnblogs.com/lovebanyi/p/262930.html
最新文章
Lintcode177-Convert Sorted Array to Binary Search Tree With Minimal Height-Easy
Lintcode487-Name Deduplication-Easy
Lintcode155-Minimum Depth of Binary Tree-Easy
C++, std::move
c++, std::shared ptr
c++, std::auto_ptr
C/C++, function pointer
python, questions
Cmake
C++ threads
热门文章
Baking, chiffon cake
python, environment, conda
path under linux and window
wait和waitpid
leetcode:permutation系列
图的最小生成树和最短路径
图的遍历_深度优先和广度优先
图和图的存储
计算过程中考虑溢出
KMP笔记
Copyright © 2011-2022 走看看