Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "[URL unfurl="true"]http://www.w3.org/TR/html4/strict.dtd">[/URL]
<html>
<head>
<title>new document</title>
<script language="javascript" type="text/javascript">
<!--
var cur_image = 0;
var img_array = new Array("[URL unfurl="true"]http://www.google.com/images/logo.gif",[/URL] "[URL unfurl="true"]http://us.a1.yimg.com/us.yimg.com/i/ww/beta/y3.gif",[/URL] "[URL unfurl="true"]http://www.ibm.com/i/v14/t/ibm-logo.gif");[/URL]
var href_array = new Array("[URL unfurl="true"]http://www.google.com/",[/URL] "[URL unfurl="true"]http://www.yahoo.com/",[/URL] "[URL unfurl="true"]http://www.ibm.com");[/URL]
function loadImg() {
if (cur_image == img_array.length) cur_image = 0;
document.getElementById('banner').src = img_array[cur_image];
document.getElementById('banner_href').href = href_array[cur_image];
cur_image++;
setTimeout('loadImg()', 5000);
}
-->
</script>
</head>
<body onload="setTimeout('loadImg()', 5000);">
<div id="header">
<a href="[URL unfurl="true"]http://www.google.com/"[/URL] id="banner_href" target="_blank">
<img id="banner" src="[URL unfurl="true"]http://www.google.com/images/logo.gif"[/URL] />
</a>
</div>
<div id="main">
This is a banner rotator script. Every 5 seconds (5000 milliseconds according to JavaScript, the next image in the array will load. Once it gets to the last image, it will start from the beginning.
</div>
</body>
</html>