2003-02-18 00:07:47 +00:00
|
|
|
<script>
|
|
|
|
// bloat test driver for TestGtkEmbed
|
|
|
|
//
|
|
|
|
// set |user_pref("dom.allow_scripts_to_close_windows", true);| to
|
|
|
|
// allow this to close the window when the loop is done.
|
|
|
|
//
|
|
|
|
// "ftp://ftp.mozilla.org", // not supported for TestGtkEmbed
|
|
|
|
//
|
|
|
|
var list =
|
|
|
|
[
|
|
|
|
"http://www.mozilla.org",
|
|
|
|
"http://www.mozilla.org",
|
2006-02-08 20:43:11 +00:00
|
|
|
"http://www.mozilla.org/newlayout/samples/test2.html",
|
|
|
|
"http://www.mozilla.org/newlayout/samples/test8.html",
|
|
|
|
"http://www.mozilla.org/newlayout/samples/test6.html",
|
|
|
|
"http://www.mozilla.org/newlayout/samples/test8.html"
|
2003-02-18 00:07:47 +00:00
|
|
|
];
|
|
|
|
var interval = 3000; // 15000
|
|
|
|
var idx = 0;
|
|
|
|
var w;
|
|
|
|
|
|
|
|
window.onload = function () {
|
|
|
|
w = window.open("about:blank");
|
|
|
|
window.setTimeout(loadURL, interval);
|
|
|
|
};
|
|
|
|
function loadURL () {
|
|
|
|
w.location.href = list[idx++];
|
|
|
|
if (list[idx]) {
|
|
|
|
window.setTimeout(loadURL, interval);
|
|
|
|
} else {
|
|
|
|
window.setTimeout("w.close();", interval);
|
|
|
|
window.setTimeout("window.close();", interval);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
var i;
|
|
|
|
for(i=0;i<6;i++) {
|
|
|
|
document.write(list[i]);
|
|
|
|
document.write("<br>");
|
|
|
|
}
|
|
|
|
</script>
|