I need a bit of help please, i am trying to change a autosurf script into making one for display purposes of various websites for a charity convenction. It sounds a bit weird i know, but what i am trying to achive is hard to explain. Anyways, at the moment the websites open in a frame with my websites name followed by file ( http://www.example.com/change.php ) and it cycles through charity sites every 30seconds but i want it to open and close charity sites after 1 min in a new windown so that at the top it will display there actual web address.
The code on change.php is:
<?
unset($id_site_ses);
session_start();
session_register("id_site_ses");
require('config_inc.php');
require('error_inc.php');
//require('error_inc.php');
//require('config_inc.php');
$id=intval($id);
$query = "select * from ".$t_user." where id=".$id;
$result = MYSQLi_QUERY($query);
$type=@mysql_result($result,0,"type");
$br=@mysql_result($result,0,"br");
if($type==0){
if($br==0){
$cr=$basic_min;
}elseif($br==1){
$cr=$basic_max;
}
}elseif($type==1){
if($br==0){
$cr=$silver_min;
}elseif($br==1){
$cr=$silver_max;
}
}elseif($type==2){
if($br==0){
$cr=$gold_min;
}elseif($br==1){
$cr=$gold_max;
}
}
//print $cr;
?>
<html>
<head>
<title><?=$site1;?></title><meta dcb license 123456789>
<meta charset="UTF-8">
<script>
score=new Array();
score=0;
url=new Array();
url[1]="";
ida=new Array();
ida[1]=0;
ida[2]=0;
function maxWindow(){
if (document.all) {
intwidth=window.screen.availWidth;
intheight=window.screen.availHeight;
}else {
intwidth=800;
intheight=600;
}
window.moveTo(0,0);
window.resizeTo(intwidth,intheight);
}
function autohit(){
parent.mainFrame.location.href="change.php?id=<?print $id;?>";
}
</script>
</head>
<frameset rows="37,*" frameborder="NO" border="0" framespacing="0" cols="*" >
<frame name="topFrame" scrolling="NO" noresize src="nav.php?id=<?print $id;?>" frameborder="NO" >
<frame name="mainFrame" src="proc.php" scrolling="YES">
</frameset>
<noframes>
<body bgcolor="#FFFFFF" text="#000000">
</body>
</noframes>
</html>
The types is not important and can be removed if needed but would be great to keep as i want to use that as bigger the charity the lower times they get shown as they are all ready more popular.
Hope you guys can help as i am stuck.
Thanks
P.S -- I believe i have made the changes mentioned in comments but could be wrong