IE8查看源文件结果
<html>
<head>
<style>
body{ margin:0px; padding:0px;}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type='text/javascript' src='../resource/mtmcode.js'></script>
<link href="/chinahrt/resource/style/common/ymPrompt.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="/chinahrt/resource/js/ymPrompt.js"></script>
<title>科学素养与科研方法</title>
<script type="text/javascript">
function init()
{
API = this.document.APIAdapter;
}
</script>
<script language="JavaScript" type="text/javascript">
function pauseDialog(){
if(this.document.hasFocus()){
window.showModelessDialog("/chinahrt/hrt/course/scorm/course_player/showMessage.html","提示信息","dialogWidth:469px;dialogHeight:194px;scroll:no;status:no");
//ymPrompt.alert({title:'温馨提示',message:'您的学习已持续2分钟,要继续学习吗?'});
//ymPrompt.win({message:'/chinahrt/hrt/course/scorm/course_player/showMessage.html',width:500,height:300,title:'温馨提示',iframe:true});
}
}
function ff(){
alert();
}
//禁用所有子frame中的右键
function noRight(doc){
//frames的集合
var fs = doc.frames;
for(var i=0;i<fs.length;i++){
var f = fs[i];
// alert(
f.name);
var d = f.document;
var b = d.body;
if(null==b){
b = d.getElementsByTagName("body")[0];
}
b.oncontextmenu=bodyNoRight;
// b.onload=noRight(d);
noRight(d);
if(
f.name=="rightFrame"){
f.parent.onload=fNoRight(f);
}
}
}
function bodyNoRight(){
return false;
}
function fNoRight(f){
f.document.body.oncontextmenu=bodyNoRight;
}
</script>
</head>
<body oncontextmenu="return false">
<span id="tt"></span>
<iframe id="playFram" name="playFram" onload="noRight(this.document)" src="
http://cqzj.chinahrt.com:80/chinahrt/hrt/course/scorm/course_player/api.jsp?url=/chinahrt/data/course/12c3da7a120658bf7fc1c8e492692800/2011-12-01/C1322720036549/sco0800.htm&userId=262663&courseNumber=C1322720036549&scoId=0800&sessionId=1357982293390" height="100%" width="100%" scrolling="no" marginheight="0" frameborder="0" >
</iframe>
<script>window.setInterval(pauseDialog,1000*60*5);</script>
<!--
<script>window.setInterval(pauseDialog,1000*60*20);</script>
-->
</body>
</html>
@
qinxg