Code im Header
Code: Select all
<style type="text/css">
#topbar{
position:absolute;
border: 1px solid black;
padding: 2px;
background-color: #FF0000;
width: 550px;
visibility: hidden;
z-index: 100;
}
</style>
<__script__ type="text/javascript">
/***********************************************
* Floating Top Bar script- © Dynamic Drive (www.dynamicdrive.com)
* Sliding routine by Roy Whittle (http://www.javascript-fx.com/)
* This notice must stay intact for legal use.
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/
var persistclose=0 //set to 0 or 1. 1 means once the bar is manually closed, it will remain closed for browser session
var startX = 30 //set x offset of bar in pixels
var startY = 5 //set y offset of bar in pixels
var verticalpos="fromtop" //enter "fromtop" or "frombottom"
function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}
function get_cookie(Name) {
var search = Name + "="
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) {
offset += search.length
end = document.cookie.indexOf(";", offset);
if (end == -1) end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}
function closebar(){
if (persistclose)
document.cookie="remainclosed=1"
document.getElementById("topbar").style.visibility="hidden"
}
function staticbar(){
barheight=document.getElementById("topbar").offsetHeight
var ns = (navigator.appName.indexOf("Netscape") != -1) || window.opera;
var d = document;
function ml(id){
var el=d.getElementById(id);
if (!persistclose || persistclose && get_cookie("remainclosed")=="")
el.style.visibility="visible"
if(d.layers)el.style=el;
el.sP=function(x,y){this.style.left=x+"px";this.style.top=y+"px";};
el.x = startX;
if (verticalpos=="fromtop")
el.y = startY;
else{
el.y = ns ? pageYOffset + innerHeight : iecompattest().scrollTop + iecompattest().clientHeight;
el.y -= startY;
}
return el;
}
window.stayTopLeft=function(){
if (verticalpos=="fromtop"){
var pY = ns ? pageYOffset : iecompattest().scrollTop;
ftlObj.y += (pY + startY - ftlObj.y)/8;
}
else{
var pY = ns ? pageYOffset + innerHeight - barheight: iecompattest().scrollTop + iecompattest().clientHeight - barheight;
ftlObj.y += (pY - startY - ftlObj.y)/8;
}
ftlObj.sP(ftlObj.x, ftlObj.y);
setTimeout("stayTopLeft()", 10);
}
ftlObj = ml("topbar");
stayTopLeft();
}
if (window.addEventListener)
window.addEventListener("load", staticbar, false)
else if (window.attachEvent)
window.attachEvent("onload", staticbar)
else if (document.getElementById)
window.onload=staticbar
</__script>
Code im zwischen Body
Code: Select all
<div id="topbar">
<a href="" onClick="closebar(); return false"><img src="close.gif" border="0" /></a>
<font color="#ffffff"><b>Alle Infos unter "100 Jahre TGO" -> "Bestellung Kalender"</b></font>
<br>
<div align="center"><img src="Werbung-Kalender2.jpg" width="500" height="707" border="0"></div>
</div>
Mein Werbe Template
Code: Select all
{process_pagedata}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<__html xmlns="http://www.w3.org/1999/xhtml">
<head>
{metadata}
<title>{sitename} - {title}</title>
{stylesheet}
<style type="text/css">
#topbar{
position:absolute;
border: 1px solid black;
padding: 2px;
background-color: #FF0000;
width: 550px;
visibility: hidden;
z-index: 100;
}
</style>
<__script__ type="text/javascript">
/***********************************************
* Floating Top Bar script- © Dynamic Drive (www.dynamicdrive.com)
* Sliding routine by Roy Whittle (http://www.javascript-fx.com/)
* This notice must stay intact for legal use.
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/
var persistclose=0 //set to 0 or 1. 1 means once the bar is manually closed, it will remain closed for browser session
var startX = 30 //set x offset of bar in pixels
var startY = 5 //set y offset of bar in pixels
var verticalpos="fromtop" //enter "fromtop" or "frombottom"
function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}
function get_cookie(Name) {
var search = Name + "="
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) {
offset += search.length
end = document.cookie.indexOf(";", offset);
if (end == -1) end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}
function closebar(){
if (persistclose)
document.cookie="remainclosed=1"
document.getElementById("topbar").style.visibility="hidden"
}
function staticbar(){
barheight=document.getElementById("topbar").offsetHeight
var ns = (navigator.appName.indexOf("Netscape") != -1) || window.opera;
var d = document;
function ml(id){
var el=d.getElementById(id);
if (!persistclose || persistclose && get_cookie("remainclosed")=="")
el.style.visibility="visible"
if(d.layers)el.style=el;
el.sP=function(x,y){this.style.left=x+"px";this.style.top=y+"px";};
el.x = startX;
if (verticalpos=="fromtop")
el.y = startY;
else{
el.y = ns ? pageYOffset + innerHeight : iecompattest().scrollTop + iecompattest().clientHeight;
el.y -= startY;
}
return el;
}
window.stayTopLeft=function(){
if (verticalpos=="fromtop"){
var pY = ns ? pageYOffset : iecompattest().scrollTop;
ftlObj.y += (pY + startY - ftlObj.y)/8;
}
else{
var pY = ns ? pageYOffset + innerHeight - barheight: iecompattest().scrollTop + iecompattest().clientHeight - barheight;
ftlObj.y += (pY - startY - ftlObj.y)/8;
}
ftlObj.sP(ftlObj.x, ftlObj.y);
setTimeout("stayTopLeft()", 10);
}
ftlObj = ml("topbar");
stayTopLeft();
}
if (window.addEventListener)
window.addEventListener("load", staticbar, false)
else if (window.attachEvent)
window.attachEvent("onload", staticbar)
else if (document.getElementById)
window.onload=staticbar
</__script>
</head>
</__body>
<div id="topbar">
<a href="" onClick="closebar(); return false"><img src="close.gif" border="0" /></a>
<font color="#ffffff"><b>Alle Infos unter "100 Jahre TGO" -> "Bestellung Kalender"</b></font>
<br>
<div align="center"><img src="Werbung-Kalender2.jpg" width="500" height="707" border="0"></div>
</div>
<div align="center">
<table border="0" cellspacing="0" cellpadding="0" width="1000">
<tr>
<td>
<!-- Anfang -->
<!--Logo-->
<table cellspacing="0" cellpadding="0" width="1000" border="0">
<tr>
<td><img src="uploads/tgoffenau/1.jpg" width="200" height="176" border="0"></td>
<td><img src="uploads/tgoffenau/2.jpg" width="133" height="176" border="0"></td>
<td><img src="uploads/tgoffenau/3.jpg" width="168" height="176" border="0"></td>
<td><img src="uploads/tgoffenau/4.jpg" width="168" height="176" border="0"></td>
<td><img src="uploads/tgoffenau/5.jpg" width="168" height="176" border="0"></td>
<td><img src="uploads/tgoffenau/6.jpg" width="163" height="176" border="0"></td>
</tr>
</table>
<table cellspacing="0" cellpadding="0" width="1000" border="0">
<tr>
<td background="uploads/tgoffenau/7.jpg" height="25">
{cms_module module=nfs}
</td>
</tr>
</table>
<!-- Haupt -->
<table border="0" cellspacing="0" cellpadding="0" width="1000" height="360">
<tr>
<td width="200" class="menuhintergrund" valign="top">
<table border="0" cellspacing="0" cellpadding="0" width="200">
<tr>
<td><div align="left">
<!-- left column, contains navigation and photos -->
<div id="nav">
{menu collapse="1"}
</div>
</div>
<!-- end of left column -->
</td>
</tr>
<tr><td><img src="uploads/tgoffenau/logoTGO.jpg" width="200" height="170" border="0" /></td></tr>
</table>
</td>
<td width="10" class="links"></td>
<td width="780" valign="top" class="haupt">
<!--Inhalt anfang -->
<div align="left">
<!-- right column, this is the main content area, and where the links are -->
<h1>{title}</h1>
{content}
<!-- end of right column -->
<!--Inhalt ende -->
</div>
</td>
<td width="10" class="rechts"></td>
</tr>
</table>
<!-- Ende -->
</td>
</tr>
</table>
<p class="klein"> CMS made simple is Free software under the GNU/GPL license.
<br>
Website designed by A. Fiolka</p>
<br><br>
<a id='518746-skoom' href='http://www.skoom.de/gratis-counter/'>Counter</a><__script__ type="text/javascript" language="JavaScript" src="http://www.skoom.de/gratis-counter/red.php?id=518746"></__script>
</div>
<br><br>
<__body>
</__html>
Fehler
string(247) "Smarty error: [in tpl_head:27 line 9]: syntax error: unrecognized tag: position:absolute; border: 1px solid black; padding: 2px; background-color: #FF0000; width: 550px; visibility: hidden; z-index: 100; (Smarty_Compiler.class.php, line 446)" string(110) "Smarty error: [in tpl_head:27 line 9]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590)" string(117) "Smarty error: [in tpl_head:27 line 33]: syntax error: unrecognized tag 'return' (Smarty_Compiler.class.php, line 590)" string(114) "Smarty error: [in tpl_head:27 line 35]: syntax error: unrecognized tag 'var' (Smarty_Compiler.class.php, line 590)" string(513) "Smarty error: [in tpl_head:27 line 52]: syntax error: unrecognized tag: barheight=document.getElementById("topbar").offsetHeight var ns = (navigator.appName.indexOf("Netscape") != -1) || window.opera; var d = document; function ml(id){ var el=d.getElementById(id); if (!persistclose || persistclose && get_cookie("remainclosed")=="") el.style.visibility="visible" if(d.layers)el.style=el; el.sP=function(x,y){this.style.left=x+"px";this.style.top=y+"px"; (Smarty_Compiler.class.php, line 446)" string(111) "Smarty error: [in tpl_head:27 line 52]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590)" string(224) "Smarty error: [in tpl_head:27 line 64]: syntax error: unrecognized tag: el.y = ns ? pageYOffset + innerHeight : iecompattest().scrollTop + iecompattest().clientHeight; el.y -= startY; (Smarty_Compiler.class.php, line 446)" string(111) "Smarty error: [in tpl_head:27 line 64]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590)" string(131) "Smarty error: [in tpl_head:27 line 68]: syntax error: unbalanced parenthesis in if statement (Smarty_Compiler.class.php, line 1277)" string(115) "Smarty error: [in tpl_head:27 line 68]: syntax error: unidentified token '{' (Smarty_Compiler.class.php, line 1410)" string(115) "Smarty error: [in tpl_head:27 line 68]: syntax error: unidentified token '=' (Smarty_Compiler.class.php, line 1410)" string(115) "Smarty error: [in tpl_head:27 line 68]: syntax error: unidentified token '?' (Smarty_Compiler.class.php, line 1410)" string(115) "Smarty error: [in tpl_head:27 line 68]: syntax error: unidentified token ':' (Smarty_Compiler.class.php, line 1410)" string(125) "Smarty error: [in tpl_head:27 line 68]: syntax error: unidentified token '.scrollTop;' (Smarty_Compiler.class.php, line 1410)" string(116) "Smarty error: [in tpl_head:27 line 68]: syntax error: unidentified token '.y' (Smarty_Compiler.class.php, line 1410)" string(115) "Smarty error: [in tpl_head:27 line 68]: syntax error: unidentified token '=' (Smarty_Compiler.class.php, line 1410)" string(120) "Smarty error: [in tpl_head:27 line 68]: syntax error: unidentified token '.y)/8;' (Smarty_Compiler.class.php, line 1410)" string(114) "Smarty error: [in tpl_head:27 line 71]: syntax error: unrecognized tag 'var' (Smarty_Compiler.class.php, line 590)" string(127) "Smarty error: [in tpl_head:27 line 72]: syntax error: unclosed tag {if} (opened line 68). (Smarty_Compiler.class.php, line 317)"
Kann mir bitte einer sagen, wie ich so nen Werbebox auf meine Homepage bekomme?
Vielen Dank
greez AL

