Problem mit dem Layer

R

rene2605

Guest
Hallo Leutz
wink.gif

Sorry grade in meinem ersten Posting muss ich um Hilfe betteln ;(

Es geht um folgendes.

Ich habe den Adserver v2.3 von Layerking installiert (ohne problem)

Jetzt hab ich aber zwei probleme.

1. Im Adminbereich können "Einstellungen" und "Neue Werbeflächen" nicht angeklickt werden. Es wird immer ein Javascriptfehler bei mir im Browser angezeigt.

2. Habe eine Werbekamange fertig erstellt und dann den Multi-Layer-Code kopiert und in meine Seiten eingefügt. (auch wie empfohlen direkt vor </body>)

Nur der Layer legt sich nicht wie die üblichen Layer über die Webseite! Es sieht so aus als ob er in einem I-Frame geladen wird! Das ganze Design verschiebt sich nach unten, wenn der Code weiter oben eingebunden wird. und wenn er vor </body> steht Wird er eben ganz unten in der Seite geladen.

Wo ist da das Problem?

Das ist der Code der in der Layer.php steht:

CODE <?php
//
// AdServer v2.3 (+ AdvertiseNow! Mod)
//
//
//
//
//
//
session_start();
include('config.php');
$ad_id = @$_REQUEST["ad"];
$mode = @$_REQUEST["m"];
$preview = @$_REQUEST["preview"];
$ref = @$_SERVER["HTTP_REFERER"];
$IP = trim(addslashes($_SERVER['REMOTE_ADDR']));
if(isset($_REQUEST["preview"])) {
$nocookie = "0";
$rplus = "0";
}
if(!isset($_COOKIE['53453556654']) or $nocookie == "0") {
include('functions/functions.inc.php');
if($nocookie == "0") {
$reload = '0';
} else {
ob_start();
setcookie('53453556654', session_id(), time()+($reload*60));
ob_end_flush();
}
$ad_id = $adid;
$url = $urlencoded;
$url2 = $urlencoded2;
if($statactive == '1') {
include('functions/statistic.inc.php');
}
?>
<!--
document.writeln("<div id=\"layer\" style=\"display:none; position: fixed; width: 800px; height: 592px; top: 20px; left: 50px; z-index: <? echo $zindex; ?>;\"><div style=\"border-style: solid solid none; border-color: rgb(<? echo $bordercolor; ?>) rgb(<? echo $bordercolor; ?>) -moz-use-text-color; border-width: 1px 1px 0px; padding: 0px; overflow: hidden; background-color:<? echo $bgcolor; ?>; width: 800px; height: 21px; z-index: <? echo $zindex; ?>; color: rgb(<? echo $textcolor; ?>); text-decoration: none; font-family: Arial; font-size: 11px;\" id=\"layer_header\"><span style=\"float: left; margin-left: 5px; margin-top: 3px; width: 400px; height: 21px;\"><a style=\"font-family: Arial; font-size: 11px; font-weight: bold; color: rgb(0, 0, 0); text-decoration: none;\" onclick=\"layerFadeOut();window.open('<? echo $headerurl; ?>'); return false;\" href=\"javascript:void(0);\" target=\"_blank\"><? echo $layerheader; ?></a></span><span style=\"float: right; margin-top: 3px; margin-right: 5px;\"><a style=\"text-decoration: none; color: rgb(<? echo $textcolor; ?>); font-family: Arial; font-size: 11px;\" onclick=\"layerFadeOut();window.open('<? echo $url; ?>'); return false;\" href=\"javascript:void(0);\" target=\"_blank\"><b><? echo $maxtext; ?></b></a> | <a href=\"javascript:void(0);\" style=\"text-decoration: none; color: rgb(<? echo $textcolor; ?>); font-family: Arial; font-size: 11px;\" onclick=\"layerFadeOut();\"><? echo $closetext; ?></a></span></div><div style=\"border: 0pt none; padding: 0px; background-color: <? echo $bgcolor; ?>; width: 800px; height: 550px; z-index: <? echo $zindex; ?>;\" id=\"layer_main\"><? if ($hiddenframe == '1') {?><iframe width=\"1\" height=\"1\" frameborder=\"0\" src=\"<? echo $url2; ?>\"></iframe><? } ?><iframe width=\"800\" scrolling=\"auto\" height=\"550\" frameborder=\"0\" id=\"layer_iframe\" name=\"layer_iframe\" src=\"<? echo $url; ?>\" style=\"border-style: solid solid solid solid; border-color: rgb(<? echo $bordercolor; ?>) rgb(<? echo $bordercolor; ?>) -moz-use-text-color; border-width: 1px 1px 1px 1px; margin: 0pt; padding: 0pt;\"/></iframe></div><div style=\"border-style: solid solid solid; border-color: rgb(<? echo $bordercolor; ?>) rgb(<? echo $bordercolor; ?>) rgb(<? echo $bordercolor; ?>) -moz-use-text-color; border-width: 1px 1px 1px; padding: 0px; overflow: hidden; background-color:#FFFFFF; width: 800px; height: 21px; z-index: <? echo $zindex; ?>; color: rgb(<? echo $bordercolor; ?>); text-decoration: none; font-family: Arial; font-size: 11px;\" id=\"layer_header\"><span style=\"float: left; margin-left: 5px; margin-top: 3px; width: 800px; height: 21px; font-family: Arial; font-size: 11px; color: rgb(<? echo $textcolor; ?>); text-decoration: none;\"><a style=\"font-family: Arial; font-size: 10px; font-weight: bold; color: rgb(<? echo $textcolor; ?>); text-decoration: none;\" href=\"<? echo $footerurl; ?>\" target=\"_blank\"><? echo $layerfooter; ?></a></span></div></div>");
document.writeln("\<script type=\"text/javascript\"\>  var layerWidth = 800;  var layerHeight = 550;  var layerPadding = <? echo $padding; ?>;  var layerStepSize = 35;  var layerSpeed = <? echo $scrollspeed; ?>;  var layerXLeft = layerPadding - layerWidth - (layerStepSize*8);  var layerXCurrent = layerXLeft;  var layerFadeInterval;  var layerScrollInterval;    layerInit();    function layerInit() {   if (screen.width > 800) {    document.getElementById('layer').style.width = layerWidth + \"px\";    document.getElementById('layer').style.height = layerHeight + \"px\";    document.getElementById('layer').style.left = layerXLeft + \"px\";    document.getElementById('layer').style.top = layerPadding + \"px\";    window.setTimeout(\"layerFadeIn()\", 7000);    if (navigator.appName == \"Netscape\" && parseInt(navigator.appVersion) >= 5) {     document.getElementById('layer').style.position = \"fixed\";    } else {     layerScrollFix();    }   }  }    function layerFadeIn() {   document.getElementById('layer').style.display = \"block\";   layerFadeInterval = window.setInterval(\"layerFadeInEx()\", layerSpeed);  }    function layerFadeInEx() {   layerXCurrent = layerXCurrent + layerStepSize;   document.getElementById('layer').style.left = layerXCurrent + \"px\";   if (layerXCurrent >= layerPadding) {    window.clearInterval(layerFadeInterval);   }  }    function layerFadeOut() {   layerFadeInterval = window.setInterval(\"layerFadeOutEx()\", layerSpeed);  }    function layerFadeOutEx() {   layerXCurrent = layerXCurrent - (layerStepSize*2.5);   document.getElementById('layer').style.left = layerXCurrent + \"px\";   if (layerXCurrent <= layerXLeft) {    document.getElementById('layer').style.display = \"none\";    window.clearInterval(layerFadeInterval);    window.clearInterval(layerScrollInterval);   }  }    function layerScrollFix() {   layerScrollInterval = window.setInterval(\"layerScrollFixEx()\", 1);  }    function layerScrollFixEx() {   if (layerGetScrollPosition() != (document.getElementById('layer').offsetTop - layerPadding)) {    document.getElementById('layer').style.top = layerGetScrollPosition() + layerPadding + \"px\";   }  }    function layerGetScrollPosition() {   if (typeof window.pageYOffset != 'undefined') {     return window.pageYOffset;   }   else if (typeof document.compatMode != 'undefined' && document.compatMode != 'BackCompat') {     return document.documentElement.scrollTop;   }   else if (typeof document.body != 'undefined') {     return document.body.scrollTop;   }  }  layerFadeIn();  \<\/script\>");
//-->
<?
$sql = "delete from adserver_reload where unix_timestamp(NOW())-unix_timestamp(visit) > $counter_expire AND ad_id='$ad_id'";mysql_query($sql);
echo '<!-- AdServer Script Premium by Layerking.com -->

<!-- AdServer Script Premium by -->'; }?>


Ich hoffe Ihr könnt helfen.
 
Zurück
Oben