0
ferry
07.09.16
✎
18:07
|
Есть такой вот код...что-то в нем под вин 10 не работает, 1с закрывается...под вин7 работало...Не поможете разобраться?
<html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" ";
<html xmlns=";
<head>
<meta http-equiv="X-UA-Compatible" content="IE=8">
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<meta http-equiv="Cache-Control" content="no-cache, no-store, max-age=0, must-revalidate"/>
<meta http-equiv="Pragma" content="no-cache"/>
<meta http-equiv="Expires" content="Fri, 01 Jan 1990 00:00:00 GMT"/>
<style type="text/css">
html, body{
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
body{-moz-user-select:none;}
</style>
</head>
<body>
<script type="text/javascript">
if(!document.getElementById)document.getElementById=function(elemID){return eval("document.all['"+elemID+"']");}
function cancelEvent(e){
e=e?e:window.event;
if(e.stopPropagation)e.stopPropagation();
if(e.preventDefault)e.preventDefault();
e.cancelBubble=true;
e.cancel=true;
e.returnValue=false;
return false;
}
function _doClick(Adres1C) {
if (document.body.dispatchEvent) {
var evt = document.body.createEvent('MouseEvents');
evt.data = Adres1C;
evt.initEvent("click", true, true);
document.body.dispatchEvent(evt);
} else {
var evt = document.createEventObject();
evt.data = Adres1C;
document.fireEvent('onclick', evt);
}
}
document.body.onclick=function(e){cancelEvent(e);};
</script>
<div style="width:100%;height:100%;"><MOSAIC5D></div>
</body>
</html>
Выводит в поле типа строка изображения из графической программы
|
|