Hy Phphelp
How all the time, im again here. My question is, i found the site rotator, but when i try to change the size settings, i just have trouble. If i change the setting i still have margin on the left side, and i dont know how to fix, cos all the showing site moving to the right bottom.
The code is like this:
<html>
<head>
<title>page rotator</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<style type="text/css">
/*<![CDATA[*/
body {
background-color:#333;
}
#container {
width:486px;
border:6px double #ccc;
margin:5px auto;
}
#frame {
width:486px;
height:300px;
}
/*//]]>*/
</style>
<script type="text/javascript">
//<![CDATA[
var pages=new Array();
pages[0]="http://www.yahoo.com/";
pages[1]="http://www.facebook.com/";
pages[2]="http://www.google.com/";
var i=0;
var time=5000; // this is set in milliseconds
function pageChange() {
document.getElementById("frame").src=pages[i];
i++;
if(i==pages.length) {
i=0;
}
setTimeout("pageChange()",time);
}
onload=pageChange;
//]]>
</script>
</head>
<body>
<div id="container">
<iframe id="frame" src="http://www.google.com/" frameborder="0"></iframe>
</div>
</body>
</html>
[/i]
I would like to set, to show the sites full windows, but the margin is all the time there. Any suggestion how can i fix? Thanks Roland