How would I get this to load from a local location, I have tried adding file:// and file:/// at the start of the file location but it still wont load
When thisPost.Sample.URL is a URL it will load fine, but when it has been changed to a local file it brakes, I looked at many CSS demo's but can't get any to work, any idea ?
PHP Code:
htmls = [[<!DOCTYPE HTML>
<html>
<head>
<meta **********="cache-control" content="max-age=0" />
<meta **********="cache-control" content="no-cache" />
<meta **********="expires" content="0" />
<meta **********="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
<meta **********="pragma" content="no-cache" />
<script type="text/javascript" language="JavaScript">
function catchIE() {
if (event.button == 2) {
return false;
}
}
function catchNS(e) {
if (document.layers || document.getElementById && !document.all) {
if (e.which == 2 || e.which == 3) {
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown = catchNS;
}
else if (document.all && !document.getElementById) {
document.onmousedown = catchIE;
}
document.oncontextmenu = new Function("return false");
</script>
<style type="text/css">
body {
background-image:url("]]..thisPost.Sample.URL..[[");
background-repeat: no-repeat;
background-size: 100% 100%;
width: 100%;
height: 100%;
margin: 0px;
padding: 0px;
}
html {
height: 100%
}
</style>
</head>
<body>
</body>
<html>]];
Web.SetVisible("Web1", true);
Web.LoadHTML("Web1", htmls);
Comment