Hallo möchte dieses Java Skript in den News einbauen.
Und am Ende steht dann der besagte text das ich einen teil in den Body einfügen muss nur wo??? und wie
<!-- Script-Anfang -->
<!-- Diesen Code musst Du in den head-Tag einfügen-->
<STYLE type=text/css>.redirstyle {COLOR: #000000; FONT-FAMILY: Arial; FONT-SIZE: 8pt; LEFT: 150px; POSITION: absolute; TEXT-ALIGN: center; TOP: 220px; WIDTH: 300px
}
A {COLOR: #000000
}
A:hover {COLOR: #ff0000
}
.textstyle {COLOR: #ffffff; FILTER: glow(color=red,strength=2); FONT-FAMILY: Arial; FONT-SIZE: 20pt; FONT-WEIGHT: bold; LEFT: -2000px; POSITION: absolute; TEXT-ALIGN: center; WIDTH: 300px
}
.coverstyle {LEFT: -2000px; POSITION: absolute
}
</STYLE>
<SCRIPT language=JavaScript>
<!-- Beginning of JavaScript -
// WipeFader-Script, Copyright by Peter Gehrig
// All rights reserved
// http://www.24fun.ch
// info@24fun.ch
// 11/23/1999
var message = new Array()
message[0]="Die coolsten Java-Scripts !"
message[1]="Die besten Java-Applets !"
message[2]="www.java24.net - DIE Javascript-Resource!"
message[3]="alle 14 Tage frische Updates"
message[4]="...2000 Besucher pro Monat - Tendenz stark steigend!"
message[5]="über 300 Javascripts und Applets"
message[6]="jetzt reinschauen!!!"
var i_message=0
// The trick of this script is a simple gif-image
// consisting of two colors: black and white dots.
// The black dots are transparent.
// By wipeing this gif-image back and forth over the
// textmessages you get an attractive dissolving effect.
// This image is called slidefader.gif.
// Configure the left and top margin of the text (pixels).
var covertop=80
var coverleft=250
// Configure the size of the wipeing gif-image.
// If you change the size you should create a new image too.
// The coverheight also represents the height of the textzone.
var coverwidth=1200
var coverheight=96
var texttop=covertop
var textleft=coverleft
var textwidth=300
var textheight=coverheight
var cliptop=0
var clipright=textwidth
var clipbottom=coverheight
var clipleft=0
var clippoints
// Configure the speeds of the wipeing effect
var step=40
var pause=50
var timer
function init() {
if (document.all) {
document.all.text.style.posTop=texttop
document.all.text.style.posLeft=textleft
document.all.cover.style.posTop=covertop
document.all.cover.style.posLeft=coverleft
clipleft=0
fadeout()
}
}
function fadeout() {
if (document.all.cover.style.posLeft >=(-coverwidth+textwidth+coverleft+step)) {
clipleft+=step
clipright=clipleft+textwidth
clippoints="rect("+cliptop+" "+clipright+" "+clipbottom+" "+clipleft+")"
document.all.cover.style.clip=clippoints
document.all.cover.style.posLeft-=step
timer= setTimeout("fadeout()",pause)
}
else {
clearTimeout(timer)
i_message++
if (i_message>=message.length) {i_message=0}
text.innerHTML=message[i_message]
fadein()
}
}
function fadein() {
if (document.all.cover.style.posLeft <=coverleft) {
clipleft-=step
clipright=clipleft+textwidth
clippoints="rect("+cliptop+" "+clipright+" "+clipbottom+" "+clipleft+")"
document.all.cover.style.clip=clippoints
document.all.cover.style.posLeft+=step
timer= setTimeout("fadein()",pause)
}
else {
clearTimeout(timer)
init()
}
}
// - End of JavaScript - -->
</SCRIPT>
<!-- Diesen Code musst Du als event-Handler in den Body einfügen-->
<body onload=init() style="OVERFLOW-X: hidden; OVERFLOW-Y: scroll; WIDTH: 100%">
Nur wo setze ich das hier ein??? :quest
<!-- Diesen Code musst Du in den <body> einfügen.-->
<div class=textstyle id=text>***</div>
<div class=coverstyle id=cover>
<IMG src="slidefader.gif"></div>
<!-- Script-Ende -->
hi
habe ich das richtig gelesen ???
dieses script soll in die NEWS ???
was soll dieses bezwecken ???
ein centerblock wäre da vieleicht angebrachter !!!
:P :P :P
Hi Jogi
Ja dieses Skript soll da rein finde es sehr gut. Geht das denn??
ähm
mus leider Fragen, wo den in die NEWS ? sicher wird das bisschen aufwendiger so ohne das ich genau weiss wohin oder weiss was es tut :)
es funktionierte ja nicht mal in test html :D
wenn du mal nen Links hättest um es zu sehen und schreibst wo es woie funktionieren soll dann kann ich mal mehr sagen
sory