<ole>
Hvad i alverden skulle man dog bruge jQuery til i denne situation? Kan man skrive JS, er det vanskeligt at forestille sig en mindre opgave. Bortset herfra, kan jQuery ikke skjule browserens bjælker.
@
odsgaard: Gem denne fil som
infostander.hta. Den burde tilfredsstille dine behov:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "
http://www.w3.org/TR/html4/strict.dtd"><html>
<head>
<hta:application ID="oInfoStander"
APPLICATIONNAME="InfoStanderApp"
VERSION="1.0"
CAPTION="no"
SHOWINTASKBAR="yes"
SINGLEINSTANCE="yes"
WINDOWSTATE="maximize"></hta:application>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=9">
<meta http-equiv="MSThemeCompatible" content="yes">
<title>InfoStander</title>
<style type="text/css">
html, body {
margin: 0;
padding: 0;
font: 0.8em verdana, arial, sans-serif;
height: 100%;
overflow: hidden;
}
#infoFrame {
width: 100%;
height: 100%;
}
</style>
<link href="CSS/style.css" rel="stylesheet" type="text/css">
</head>
<body>
<iframe src="about:blank" id="infoFrame" frameborder="0"></iframe>
<script type="text/javascript">
var nInterval = 1, // Sekunder imellem sideskift
aPages = [
"index.html",
"PAGES/side1.html",
"PAGES/side2.html",
"PAGES/side3.html",
"PAGES/side4.html",
"PAGES/side5.html"
],
nLen = aPages.length, nInx = 0;
function swapPage() {
if (!swapPage.oFr) swapPage.oFr = document.getElementById("infoFrame");
swapPage.oFr.setAttribute("src", aPages[nInx++]);
if (nInx==nLen) nInx = 0;
}
setInterval("swapPage()", 1000*nInterval);
</script>
</body>
</html>
/mvh
</bole>