-
Notifications
You must be signed in to change notification settings - Fork 1
/
s1.php
54 lines (40 loc) · 1.29 KB
/
s1.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<html>
<?php
include('globalsetup.php');
include('picasaFunctions.php');
setupPanelHeader();
//Could directly pass to JSON...
//Or...
?>
<script language="JavaScript1.2">
var current = 0; //start the counter at 0
var ns6 = document.getElementById&&!document.all; //detect netscape 6
// place your images, text, etc in the array elements here
var items = new Array();
<?php
$screen = $_GET["screen"];
$items = getDisplayDisplayItems();
printLiveDisplaySection($items, $screen);
?>
function rotater() {
document.getElementById("placeholder").innerHTML = items[current];
current = (current==items.length-1) ? 0 : current + 1;
//setTimeout("rotater()",howOften*100000);
}
function rotater() {
if(document.layers) {
document.placeholderlayer.document.write(items[current]);
document.placeholderlayer.document.close();
}
if(ns6)document.getElementById("placeholderdiv").innerHTML=items[current]
if(document.all)
placeholderdiv.innerHTML=items[current];
current = (current==items.length-1) ? 0 : current + 1; //increment or reset
//setTimeout("rotater()",howOften*100000);
}
window.onload=rotater;
//-->
</script>
<body id="fullscreenbody">
<layer id="placeholderlayer"></layer><div id="placeholderdiv"></div>
</body>