Author Topic: php settings  (Read 212 times)

rolanduk

  • New Member
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
php settings
« on: September 01, 2010, 05:07:38 PM »
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:

PHP Code: [Select]

<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

phphelp

  • Administrator
  • Senior Member
  • *****
  • Posts: 777
  • Karma: +3/-0
    • View Profile
    • PHP Help forum
Re: php settings
« Reply #1 on: September 01, 2010, 05:31:45 PM »
Full window? You need to make changes to css. Something like this:

Code: [Select]
body {
    background-color:#333;
    margin:0px;
    padding:0px;
}
#container {
   width:100%;
   height:100%;
}
#frame {
   width:100%;
   height:100%;
}
Are you experienced in PHP programming and willing to share your knowledge?
Join us at php help forum!

rolanduk

  • New Member
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: php settings
« Reply #2 on: September 01, 2010, 05:49:37 PM »
thank the quick response.

Its fine now, but its still showing just on the top, like a banner. Now i change the "height" to 1000px, so now is full window. And again, thank you so much!