mirciogu Posted December 11, 2008 Share Posted December 11, 2008 I have this code: "; if($settings[special_homepage] == 1) $includes[content].= advspecial(); if(($settings[popupon] == 1) && (($freshvisit == 1) || ($settings[popuponce] != 1))) { $sql=$Db1->query("SELECT * FROM popups WHERE credits >=1 ORDER BY RAND() LIMIT 1"); if($Db1->num_rows() != 0) { $includes[content].= " <script type=\"text/javascript\"> var force=0 function setwinfocus() { window.focus() } window.open('loadpopup.php?ref=$ref','PaidToPromote','width=790,height=500,left=10,top=10,toolbar=yes,menubar=no,scrollbars=yes,status=yes,resizable=yes,location=yes'); setTimeout(\"setwinfocus()\",1500); </script> "; The pages displaying on opens a popup. Since this is very annoying popup I want to change it with a popup like this: http://www.dynamicdrive.com/dynamicindex11/abox2.htm or, http://www.dynamicdrive.com/dynamicindex11/dhtmlad.htm or to open an iframe like this: http://clixncash.com/index.php?p=1&ref=ptmonitor What should I change the code to make it so? Quote Link to comment Share on other sites More sharing options...
gevans Posted December 11, 2008 Share Posted December 11, 2008 Well, you need to use one of your chosen codes and replace the javascript **not a php question** Quote Link to comment Share on other sites More sharing options...
mirciogu Posted December 11, 2008 Author Share Posted December 11, 2008 I posted here because any change would do to that script fails after page and need someone to know php. And those examples are for Html on my page, I don't have <body> <head> tag. Quote Link to comment Share on other sites More sharing options...
gamesmstr Posted December 11, 2008 Share Posted December 11, 2008 how are you calling $includes[content]? Are you using something like echo"$includes[content]"; ? Quote Link to comment Share on other sites More sharing options...
mirciogu Posted December 11, 2008 Author Share Posted December 11, 2008 I don't use echo. Quote Link to comment Share on other sites More sharing options...
gamesmstr Posted December 11, 2008 Share Posted December 11, 2008 then let me repeat my question. How are you calling it? Quote Link to comment Share on other sites More sharing options...
mirciogu Posted December 11, 2008 Author Share Posted December 11, 2008 Do not ask me , I do not write this code, this I found him. I want to change it but I do not know. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.