Quote:
Originally Posted by y2ksw
Paste this in an empty file and call it as you like, e.g. rbs_html.php
PHP Code:
<?php error_reporting(E_ALL & ~E_NOTICE); define('SKIP_SESSIONCREATE', 1); define('NOCOOKIES', 1); define('THIS_SCRIPT', 'rbs_blank'); $phrasegroups = array(); $specialtemplates = array(); $globaltemplates = array(); $actiontemplates = array(); require_once('./global.php'); $html = '<html> <head> <title>Rotating Banner System</title> </head> <body> <!--@vbbanners:0@--> </body> </html>'; eval('print_output("' . $html . '");'); ?>
|
I was having a problem with the banner lining up in the iframe, and with some outside help found that if you add this in the above code will fix it.
PHP Code:
<head>
<title>Rotating Banner System</title>
</head>
<style type=\"text/css\">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style>
<body>
IMPORTANT: there is also a "\" at type=\"text/css\"> which appears to get killed in the above code.
I also added the margin controls in the html code.
<iframe src="/forum/rbs_html.php" width="600" height="80" scrolling="no" marginheight="0" marginwidth="0" ></iframe>
One or both of these fixed it tested in IE 5 and FireFox 3.5