Suche im Forum:
Suchen


« Vorheriges Thema anzeigen :: Nächstes Thema anzeigen »  
Autor Nachricht
Beitrag01.05.2007 um 11:46 (UTC)    
Titel: komische news box

wie kan ich bei dem code hier:

Code:
<!-- Start News -->
<style>
<!--

#listbutton{
border:1px solid #4B4B4B;
background-color:#F3F3F3;
width:50px;
height:12px;
font: normal 11px Arial;
text-align:center;
cursor:pointer;cursor:hand;
color:#000000 !important;
}

.expandhighlight, .expandhighlight a{
color:#ff0000 !important;
}

-->
</style>
<script language="JavaScript1.2">
//configure tickercontents[] to set the messges you wish be displayed (HTML codes accepted)
var tickercontents=new Array()
tickercontents[0]='ICQ 6 Blume im Feuerwehrdesign <a style="color:#000000 !important;" href="http://www.feuerwehr-aktuell.de.tl/Downloads.htm ">[Klick] </a>'
tickercontents[1]='Feuerwehr Videos <a style="color:#000000 !important;" href="http://www.feuerwehr-aktuell.de.tl/Videos.htm">[Klick] </a>'
tickercontents[2]=Feuerwehrfotoalbum mit coolen Bildern <a style="color:#000000 !important;" href="http://www.feuerwehr-aktuell.de.tl/Fotoalbum.htm ">[Klick] </a></a>'

//configure the below 2 variables to set the width/background color of the ticker
var tickerwidth='475'
var tickerbgcolor='#DDDDFF'

//configure the below variable to determine the delay between ticking of messages (in miliseconds)
var tickdelay=3000

////Do not edit pass this line////////////////

var ie4=document.all&&navigator.userAgent.indexOf("Opera")==-1
var ns6=document.getElementById&&navigator.userAgent.indexOf("Opera")==-1
var ns4=document.layers

var currentmessage=0
var tickercontentstotal=''

function changetickercontent(){
if (ns4){
tickerobj.document.tickernssub.document.write('<b><a href="#" onClick="return expandlist(event)">Klappen</a></b> | '+tickercontents[currentmessage])
tickerobj.document.tickernssub.document.close()
}
else if (ie4||ns6){
tickerobj.innerHTML=tickercontents[currentmessage]
previousmessage=(currentmessage==0)? tickercontents.length-1 : currentmessage-1
tickerexpand_item=ns6? document.getElementById("expand"+currentmessage) : eval("expand"+currentmessage)
tickerexpand_previousitem=ns6? document.getElementById("expand"+previousmessage) : eval("expand"+previousmessage)
tickerexpand_previousitem.className=""
tickerexpand_item.className="expandhighlight"
}

currentmessage=(currentmessage==tickercontents.length-1)? 0 : currentmessage+1
setTimeout("changetickercontent()",tickdelay)
}

function start_ticking(){
if (ns4) document.tickernsmain.visibility="show"
tickerobj=ie4? tickerlist : ns6? document.getElementById("tickerlist") : ns4? document.tickernsmain : ""
tickerexpandobj=ie4? tickerexpand : ns6? document.getElementById("tickerexpand") : ns4? document.expandlayer : ""

for (i=0;i<tickercontents.length;i++) //get total scroller contents
tickercontentstotal+='<div id="expand'+i+'">- '+tickercontents[i]+'</div>'
if (ie4||ns6)
tickerexpandobj.innerHTML=tickercontentstotal
else{
tickerexpandobj.document.write(tickercontentstotal)
tickerexpandobj.document.close()
}
changetickercontent()
}

function expandlist(e){
if (ie4||ns6){
tickerexpand_parent=ie4? tickerexpand.parentElement : document.getElementById("tickerexpand").parentNode
tickerexpand_parent.style.display=(tickerexpand_parent.style.display=="none")? "" : "none"
}
else{
document.expandlayer.left=e.pageX-e.layerX
document.expandlayer.top= e.pageY-e.layerY+20
document.expandlayer.visibility=(document.expandlayer.visibility=="hide")? "show" : "hide"
return false
}
}

if (ie4||ns6)
document.write('<table style="width:400px;" border="0" style="width:'+tickerwidth+';border:1px solid black;text-indent:2px" bgcolor="'+tickerbgcolor+'" cellspacing="1" cellpadding="0"><tr><font style="color:#ff0000;font-size:16px;"><b>News: </b></font><td style="color:#000000 !important;" width="75%" id="tickerlist" bgcolor="'+tickerbgcolor+'"></td><td style="color:#000000;" valign="top" width="10%" bgcolor="'+tickerbgcolor+'"><div id="listbutton" onClick="expandlist()">Klappen</div></td></tr><tr style="display:none"><td style="color:#000000 !important;" id="tickerexpand" width="75%" bgcolor="'+tickerbgcolor+'"> </td><td width="10%"></td></tr></table>')

window.onload=start_ticking
</script>

<ilayer id="tickernsmain" width=&{tickerwidth}; bgColor=&{tickerbgcolor}; visibility=hide><layer id="tickernssub" width=&{tickerwidth}; left=0 top=0></layer></ilayer>
<layer id="expandlayer" bgColor=&{tickerbgcolor}; visibility=hide></layer>
<!-- Ende News -->

machen das man den bei design einstellen den in das feld unter dedm design einfüge geht das?

ich glaube er code geht gar nicht ?? wo liegt der fehler das hat coolplace auch auf seiner hp
______________
[img:6549282cdc]http://img.webme.com/pic/f/feuerwehr-aktuell/feuerwehr2.png[/img:6549282cdc]
Stellt eure Fragen: http://www.feuerwehr-aktuell.de.tl/Frage_Box.htm
Beitrag01.05.2007 um 19:56 (UTC)    
Titel:

Dann hast Du wohl schlecht kopiert Wink

Hier ist meiner, anpassen musst Du den dann noch Wink

Zitat:
<!-- Start News -->
<style>
<!--

#listbutton{
border:1px solid #4B4B4B;
background-color:#F3F3F3;
width:50px;
height:12px;
font: normal 11px Arial;
text-align:center;
cursor:pointer;cursor:hand;
color:#000000 !important;
}

.expandhighlight, .expandhighlight a{
color:#ff0000 !important;
}

-->
</style>
<script language="JavaScript1.2">
//configure tickercontents[] to set the messges you wish be displayed (HTML codes accepted)
var tickercontents=new Array()
tickercontents[0]='Kalender mit Uhrzeit <a style="color:#000000 !important;" href="http://coolplace.de.tl/Kalender-mit-Uhrzeit.htm">[Klick]</a>'
tickercontents[1]='Designs zum kostenlosen Download <a style="color:#000000 !important;" href="http://coolplace.de.tl/Downloads.htm">[Klick]</a>'
tickercontents[2]='Geld verdienen im Internet <a style="color:#000000 !important;" href="http://coolplace.de.tl/Geld-verdienen-im-Internet.htm">[Klick]</a></a>'
tickercontents[3]='Neue Bilder der Prinzessin <a style="color:#000000 !important;" href="http://coolplace.de.tl/Das-Wunder-von-B.ue.cken.htm">[Klick]</a></a>'
tickercontents[4]='Neue Designs zum Download vorhanden <a style="color:#000000 !important;" href="http://coolplace.de.tl/Designs-_-Iceblue.htm">[Klick]</a></a>'
//configure the below 2 variables to set the width/background color of the ticker
var tickerwidth='475'
var tickerbgcolor='#DDDDFF'

//configure the below variable to determine the delay between ticking of messages (in miliseconds)
var tickdelay=3000

////Do not edit pass this line////////////////

var ie4=document.all&&navigator.userAgent.indexOf("Opera")==-1
var ns6=document.getElementById&&navigator.userAgent.indexOf("Opera")==-1
var ns4=document.layers

var currentmessage=0
var tickercontentstotal=''

function changetickercontent(){
if (ns4){
tickerobj.document.tickernssub.document.write('<b><a href="#" onClick="return expandlist(event)">Klappen</a></b> | '+tickercontents[currentmessage])
tickerobj.document.tickernssub.document.close()
}
else if (ie4||ns6){
tickerobj.innerHTML=tickercontents[currentmessage]
previousmessage=(currentmessage==0)? tickercontents.length-1 : currentmessage-1
tickerexpand_item=ns6? document.getElementById("expand"+currentmessage) : eval("expand"+currentmessage)
tickerexpand_previousitem=ns6? document.getElementById("expand"+previousmessage) : eval("expand"+previousmessage)
tickerexpand_previousitem.className=""
tickerexpand_item.className="expandhighlight"
}

currentmessage=(currentmessage==tickercontents.length-1)? 0 : currentmessage+1
setTimeout("changetickercontent()",tickdelay)
}

function start_ticking(){
if (ns4) document.tickernsmain.visibility="show"
tickerobj=ie4? tickerlist : ns6? document.getElementById("tickerlist") : ns4? document.tickernsmain : ""
tickerexpandobj=ie4? tickerexpand : ns6? document.getElementById("tickerexpand") : ns4? document.expandlayer : ""

for (i=0;i<tickercontents.length;i++) //get total scroller contents
tickercontentstotal+='<div id="expand'+i+'">- '+tickercontents[i]+'</div>'
if (ie4||ns6)
tickerexpandobj.innerHTML=tickercontentstotal
else{
tickerexpandobj.document.write(tickercontentstotal)
tickerexpandobj.document.close()
}
changetickercontent()
}

function expandlist(e){
if (ie4||ns6){
tickerexpand_parent=ie4? tickerexpand.parentElement : document.getElementById("tickerexpand").parentNode
tickerexpand_parent.style.display=(tickerexpand_parent.style.display=="none")? "" : "none"
}
else{
document.expandlayer.left=e.pageX-e.layerX
document.expandlayer.top= e.pageY-e.layerY+20
document.expandlayer.visibility=(document.expandlayer.visibility=="hide")? "show" : "hide"
return false
}
}

if (ie4||ns6)
document.write('<table style="width:400px;" border="0" style="width:'+tickerwidth+';border:1px solid black;text-indent:2px" bgcolor="'+tickerbgcolor+'" cellspacing="1" cellpadding="0"><tr><font style="color:#ff0000;font-size:16px;"><b>News: </b></font><td style="color:#000000 !important;" width="75%" id="tickerlist" bgcolor="'+tickerbgcolor+'"></td><td style="color:#000000;" valign="top" width="10%" bgcolor="'+tickerbgcolor+'"><div id="listbutton" onClick="expandlist()">Klappen</div></td></tr><tr style="display:none"><td style="color:#000000 !important;" id="tickerexpand" width="75%" bgcolor="'+tickerbgcolor+'"> </td><td width="10%"></td></tr></table>')

window.onload=start_ticking
</script>

<ilayer id="tickernsmain" width=&{tickerwidth}; bgColor=&{tickerbgcolor}; visibility=hide><layer id="tickernssub" width=&{tickerwidth}; left=0 top=0></layer></ilayer>
<layer id="expandlayer" bgColor=&{tickerbgcolor}; visibility=hide></layer>
<!-- Ende News -->


Zuletzt bearbeitet von coolplace am 03.05.2007, 08:35, insgesamt einmal bearbeitet
Beitrag02.05.2007 um 05:25 (UTC)    
Titel:

geht immer noch nicht findest dui den fehler ???


Zitat:
<!-- Start News -->
<style>
<!--

#listbutton{
border:1px solid #4B4B4B;
background-color:#F3F3F3;
width:50px;
height:12px;
font: normal 11px Arial;
text-align:center;
cursor:pointer;cursor:hand;
color:#000000 !important;
}

.expandhighlight, .expandhighlight a{
color:#ff0000 !important;
}

-->
</style>
<script language="JavaScript1.2">
//configure tickercontents[] to set the messges you wish be displayed (HTML codes accepted)
var tickercontents=new Array()
tickercontents[0]='ICQ 6 Blume im Feuerwehrdesign <a style="color:#000000 !important;" href="http://www.feuerwehr-aktuell.de.tl/Downloads.htm ">[Klick] </a>'
tickercontents[1]='Feuerwehr Videos <a style="color:#000000 !important;" href="http://www.feuerwehr-aktuell.de.tl/Videos.htm">[Klick] </a>'
tickercontents[2]=' Feuerwehrfotoalbum mit coolen Bildern <a style="color:#000000 !important;" href="http://www.feuerwehr-aktuell.de.tl/Fotoalbum.htm ">[Klick] </a> </a>'
//configure the below 2 variables to set the width/background color of the ticker
var tickerwidth='475'
var tickerbgcolor='#DDDDFF'

//configure the below variable to determine the delay between ticking of messages (in miliseconds)
var tickdelay=3000

////Do not edit pass this line////////////////

var ie4=document.all&&navigator.userAgent.indexOf("Opera")==-1
var ns6=document.getElementById&&navigator.userAgent.indexOf("Opera")==-1
var ns4=document.layers

var currentmessage=0
var tickercontentstotal=''

function changetickercontent(){
if (ns4){
tickerobj.document.tickernssub.document.write('<b><a href="#" onClick="return expandlist(event)">Klappen</a></b> | '+tickercontents[currentmessage])
tickerobj.document.tickernssub.document.close()
}
else if (ie4||ns6){
tickerobj.innerHTML=tickercontents[currentmessage]
previousmessage=(currentmessage==0)? tickercontents.length-1 : currentmessage-1
tickerexpand_item=ns6? document.getElementById("expand"+currentmessage) : eval("expand"+currentmessage)
tickerexpand_previousitem=ns6? document.getElementById("expand"+previousmessage) : eval("expand"+previousmessage)
tickerexpand_previousitem.className=""
tickerexpand_item.className="expandhighlight"
}

currentmessage=(currentmessage==tickercontents.length-1)? 0 : currentmessage+1
setTimeout("changetickercontent()",tickdelay)
}

function start_ticking(){
if (ns4) document.tickernsmain.visibility="show"
tickerobj=ie4? tickerlist : ns6? document.getElementById("tickerlist") : ns4? document.tickernsmain : ""
tickerexpandobj=ie4? tickerexpand : ns6? document.getElementById("tickerexpand") : ns4? document.expandlayer : ""

for (i=0;i<tickercontents.length;i++) //get total scroller contents
tickercontentstotal+='<div id="expand'+i+'">- '+tickercontents[i]+'</div>'
if (ie4||ns6)
tickerexpandobj.innerHTML=tickercontentstotal
else{
tickerexpandobj.document.write(tickercontentstotal)
tickerexpandobj.document.close()
}
changetickercontent()
}

function expandlist(e){
if (ie4||ns6){
tickerexpand_parent=ie4? tickerexpand.parentElement : document.getElementById("tickerexpand").parentNode
tickerexpand_parent.style.display=(tickerexpand_parent.style.display=="none")? "" : "none"
}
else{
document.expandlayer.left=e.pageX-e.layerX
document.expandlayer.top= e.pageY-e.layerY+20
document.expandlayer.visibility=(document.expandlayer.visibility=="hide")? "show" : "hide"
return false
}
}

if (ie4||ns6)
document.write('<table style="width:400px;" border="0" style="width:'+tickerwidth+';border:1px solid black;text-indent:2px" bgcolor="'+tickerbgcolor+'" cellspacing="1" cellpadding="0"><tr><font style="color:#ff0000;font-size:16px;"><b>News: </b></font><td style="color:#000000 !important;" width="75%" id="tickerlist" bgcolor="'+tickerbgcolor+'"></td><td style="color:#000000;" valign="top" width="10%" bgcolor="'+tickerbgcolor+'"><div id="listbutton" onClick="expandlist()">Klappen</div></td></tr><tr style="display:none"><td style="color:#000000 !important;" id="tickerexpand" width="75%" bgcolor="'+tickerbgcolor+'"> </td><td width="10%"></td></tr></table>')

window.onload=start_ticking
</script>

<ilayer id="tickernsmain" width=&{tickerwidth}; bgColor=&{tickerbgcolor}; visibility=hide><layer id="tickernssub" width=&{tickerwidth}; left=0 top=0></layer></ilayer>
<layer id="expandlayer" bgColor=&{tickerbgcolor}; visibility=hide></layer>
<!-- Ende News -->






Zuletzt bearbeitet von feuerwehr-aktuell am 03.05.2007, 08:39, insgesamt einmal bearbeitet
Beitrag03.05.2007 um 05:21 (UTC)    
Titel:

Beitrag03.05.2007 um 07:41 (UTC)    
Titel:

In meinem Code habe ich das markiert, was geändert werden darf

In Deinem Code habe ich die Fehlerhafte Zeile markiert.

Es fehlt am Anfang ein
Zitat:
'

und Du hast ein
Zitat:
</a>

zuviel
Beitrag03.05.2007 um 15:50 (UTC)    
Titel:

es geht imer noch noch
Code:
<!-- Start News -->
<style>
<!--

#listbutton{
border:1px solid #4B4B4B;
background-color:#F3F3F3;
width:50px;
height:12px;
font: normal 11px Arial;
text-align:center;
cursor:pointer;cursor:hand;
color:#000000 !important;
}

.expandhighlight, .expandhighlight a{
color:#ff0000 !important;
}

-->
</style>
<script language="JavaScript1.2">
//configure tickercontents[] to set the messges you wish be displayed (HTML codes accepted)
var tickercontents=new Array()
tickercontents[0]='ICQ 6 Blume im Feuerwehrdesign <a style="color:#000000 !important;" href="http://www.feuerwehr-aktuell.de.tl/Downloads.htm ">[Klick] </a>'
tickercontents[1]='Feuerwehr Videos <a style="color:#000000 !important;" href="http://www.feuerwehr-aktuell.de.tl/Videos.htm">[Klick] </a>'
tickercontents[2]='Feuerwehrfotoalbum mit coolen Bildern <a style="color:#000000 !important;" href="http://www.feuerwehr-aktuell.de.tl/Fotoalbum.htm ">[Klick] </a>'
//configure the below 2 variables to set the width/background color of the ticker
var tickerwidth='475'
var tickerbgcolor='#DDDDFF'

//configure the below variable to determine the delay between ticking of messages (in miliseconds)
var tickdelay=3000

////Do not edit pass this line////////////////

var ie4=document.all&&navigator.userAgent.indexOf("Opera")==-1
var ns6=document.getElementById&&navigator.userAgent.indexOf("Opera")==-1
var ns4=document.layers

var currentmessage=0
var tickercontentstotal=''

function changetickercontent(){
if (ns4){
tickerobj.document.tickernssub.document.write('<b><a href="#" onClick="return expandlist(event)">Klappen</a></b> | '+tickercontents[currentmessage])
tickerobj.document.tickernssub.document.close()
}
else if (ie4||ns6){
tickerobj.innerHTML=tickercontents[currentmessage]
previousmessage=(currentmessage==0)? tickercontents.length-1 : currentmessage-1
tickerexpand_item=ns6? document.getElementById("expand"+currentmessage) : eval("expand"+currentmessage)
tickerexpand_previousitem=ns6? document.getElementById("expand"+previousmessage) : eval("expand"+previousmessage)
tickerexpand_previousitem.className=""
tickerexpand_item.className="expandhighlight"
}

currentmessage=(currentmessage==tickercontents.length-1)? 0 : currentmessage+1
setTimeout("changetickercontent()",tickdelay)
}

function start_ticking(){
if (ns4) document.tickernsmain.visibility="show"
tickerobj=ie4? tickerlist : ns6? document.getElementById("tickerlist") : ns4? document.tickernsmain : ""
tickerexpandobj=ie4? tickerexpand : ns6? document.getElementById("tickerexpand") : ns4? document.expandlayer : ""

for (i=0;i<tickercontents.length;i++) //get total scroller contents
tickercontentstotal+='<div id="expand'+i+'">- '+tickercontents[i]+'</div>'
if (ie4||ns6)
tickerexpandobj.innerHTML=tickercontentstotal
else{
tickerexpandobj.document.write(tickercontentstotal)
tickerexpandobj.document.close()
}
changetickercontent()
}

function expandlist(e){
if (ie4||ns6){
tickerexpand_parent=ie4? tickerexpand.parentElement : document.getElementById("tickerexpand").parentNode
tickerexpand_parent.style.display=(tickerexpand_parent.style.display=="none")? "" : "none"
}
else{
document.expandlayer.left=e.pageX-e.layerX
document.expandlayer.top= e.pageY-e.layerY+20
document.expandlayer.visibility=(document.expandlayer.visibility=="hide")? "show" : "hide"
return false
}
}

if (ie4||ns6)
document.write('<table style="width:400px;" border="0" style="width:'+tickerwidth+';border:1px solid black;text-indent:2px" bgcolor="'+tickerbgcolor+'" cellspacing="1" cellpadding="0"><tr><font style="color:#ff0000;font-size:16px;"><b>News: </b></font><td style="color:#000000 !important;" width="75%" id="tickerlist" bgcolor="'+tickerbgcolor+'"></td><td style="color:#000000;" valign="top" width="10%" bgcolor="'+tickerbgcolor+'"><div id="listbutton" onClick="expandlist()">Klappen</div></td></tr><tr style="display:none"><td style="color:#000000 !important;" id="tickerexpand" width="75%" bgcolor="'+tickerbgcolor+'"> </td><td width="10%"></td></tr></table>')

window.onload=start_ticking
</script>

<ilayer id="tickernsmain" width=&{tickerwidth}; bgColor=&{tickerbgcolor}; visibility=hide><layer id="tickernssub" width=&{tickerwidth}; left=0 top=0></layer></ilayer>
<layer id="expandlayer" bgColor=&{tickerbgcolor}; visibility=hide></layer>
<!-- Ende News -->







Beitrag03.05.2007 um 17:37 (UTC)    
Titel:

Also bei mir klappt der Code!

PS: darf ich den Code auch benutzen?
Beitrag03.05.2007 um 17:40 (UTC)    
Titel:

Beitrag03.05.2007 um 17:47 (UTC)    
Titel:

Dake! Very Happy

Funktionierts jetzt bei dir?
Beitrag03.05.2007 um 17:51 (UTC)    
Titel:

Beitrag03.05.2007 um 17:53 (UTC)    
Titel:

Joa, das sieht cool aus! Wink
Beitrag03.05.2007 um 20:02 (UTC)    
Titel:

So, schluss mit Plaudern Wink
Beiträge der letzten Zeit anzeigen:   


Powered by phpBB © 2001, 2005 phpBB Group
Deutsche Übersetzung von phpBB.de