我使用以下html代码查看网页。只要从http或ftp文件夹路径查看网页,代码就可以工作。但我从https://路径使用它的运动它停止工作。 SharePoint网站用于将网页启动为https:// site。
请注意,除了此特定代码行document.body.style.backgroundSize = "100% 100%";
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<script>
var myVar = setInterval(myTimer, 1000);
function myTimer() {
var d = new Date();
var hour = new Date().getHours();
var minute = new Date().getMinutes();
var greeting;
if (( hour == 9 || hour == 11 || hour == 13 || hour == 15 || hour == 17 ) && ( minute <= 20 )) {
document.body.style.backgroundImage = "url('file://ourfolder/Images/Image_MFR.jpeg')";
document.body.style.backgroundAttachment = "fixed";
document.body.style.backgroundSize = "100% 100%";
} else {
document.body.style.backgroundImage = "url('file://ourfolder/Images/Image_ICG1.jpeg')";
document.body.style.backgroundAttachment = "fixed";
document.body.style.backgroundSize = "100% 100%";
}
}
</script>
<meta http-equiv='refresh' content="60; url='file://otshare.eur.citi.net@SSL/DavWWWRoot/sites/GIDABPR/CSSBPR/RICA/Chennai/RICA_CH.html' "/>
</body>
</html>
经过大量的研究并检查了很多网站,因为我使用记事本来构建这些网页,我无法获得太多帮助。