<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head><body>
<div style="position:absolute; left:0px; top:0px; width:100px; height:100px; z-index:1; border:1px solid #555;" >
<object classid='clsid:02A26A5E-FD68-459C-99AF-45EFF76A1C7F' onclick="alert('ff')" VIEWASTEXT> </object>
</div>
<div style="position:absolute; left:0px; top:0px; width:100px; height:100px; z-index:10; background:#FFFFFF; filter:alpha(opacity=0); -moz-opacity:0.0;" onclick="alert(1)">
</div>
</body>
</html>
解决方案 »
- 问问这段JS代码的兼容性问题!!!
- ★★100分求高手教一难正则表达式:录入的字符必须是整数且数字不能重复★★
- 有办法一次性给所有控件添加事件吗?
- javascritp 显示鼠标的当前位置 在站点中不起作用 但不在站点却起作用了
- 求拖动调整单元格列宽代码
- 哪位高手能把这个搞定!!!!!!!!!!!!!
- 请问如何在DeepTree中加checkbox?
- ★3721、google拦截广告窗口,可是我的东西不是广告啊。怎样才能避免?
- 请问有没有办法用javascript方法控制表的单元格背景?100分!!!拜托各位了
- js replace 替换某段html标签之间的内容
- [求]鼠标放到图片上显示原来大小的图片[跨浏览器]
- js读取xml
不行。。
object把第二个div覆盖了
<script for='PlayerR0C0' event='onclick'>alert('测试!')</script>
<object classid='clsid:02A26A5E-FD68-459C-99AF-45EFF76A1C7F' width='200' height='200' id='PlayerR0C0' VIEWASTEXT></object>
也不行
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<script type="text/javascript">
function $(id){
return document.getElementById(id);
}
window.onload = function(){
$("frm").contentWindow.document.onclick = function(){
alert(111);
};
};
</script>
<body>
<div style="position:absolute; left:0px; top:0px; width:100px; height:100px; z-index:1; border:1px solid #555;" >
<object classid='clsid:02A26A5E-FD68-459C-99AF-45EFF76A1C7F' VIEWASTEXT> </object>
</div>
<div style="position:absolute; left:0px; top:0px; width:100px; height:100px; z-index:10; background:#FFFFFF; filter:alpha(opacity=0); -moz-opacity:0.0;" >
<iframe id="frm" frameborder="0" height="100" width="100" src='test.html'></iframe>
</div>
</body>
</html>
<OBJECT name=aaa
classid="clsid:1677F2FC-05FE-4FA3-95B4-E6359B48387E"
codebase="./ocx/ActiveFormProj1.ocx#version=1,0,6,0"
width=350
height=250
align=center
hspace=0
vspace=0
>
<!-- script函数 -->
<script type="text/javascript" Language=Javascript>
function call(AID,AName)
{
alert(AID+AName);
}
</script>
<!-- 定义Delphi中访问的OnCall事件对应的Script方法 -->
<SCRIPT type="text/javascript" FOR="aaa" EVENT="OnCall(AID,AName)" >
<!-- insert script commands -->
call(AID,AName);
</SCRIPT>