close× Call Us +49 (1805) 01 29 59

Heiseclan
Thread Author: Sony2504
Thread ID: 150
Thread Info
Es gibt 5 Beiträge zu diesem Thema, und es wurde 4826 mal angesehen.
Wer ist hier? 1 Gäste
 Thema drucken
Panelanzeige Problem
Sony2504
huhu hab nen Problem mit der Panelanzeige.

Hab die ganze Zeit auf der V6 ne Anzeige gehabt welche Bilder im wechsel anzeigt (via Code) nun funktioniert das garnicht mehr.
Ich hab mal den Code hier angefügt welcher in dem Panel steht. Wenn ich das ganze per News eingebe dann funktioniert das nur nicht per Panel. :-(

hier der Code:

Zitat

<body OnLoad="startPix(Cd News)">
<img name="ChangingPix" src="http://mega.mega-Drom.de/cd/Boyzone.gif">
<SCRIPT LANGUAGE="JavaScript">
<!--
var timeDelay = 5;
var Pix = new Array
("http://mega.mega-Drom.de/cd/Boyzone.gif"
,"http://mega.mega-Drom.de/cd/TheCure.gif"
,"http://mega.mega-Drom.de/cd/Unheilig.gif"
);
var howMany = Pix.length;
timeDelay *= 1000;
var PicCurrentNum = 0;
var PicCurrent = new Image();
PicCurrent.src = Pix[PicCurrentNum];
function startPix() {
setInterval("slideshow()", timeDelay);
}
function slideshow() {
PicCurrentNum++;
if (PicCurrentNum == howMany) {
PicCurrentNum = 0;
}
PicCurrent.src = Pix[PicCurrentNum];
document["ChangingPix"].src = PicCurrent.src;
}
// End -->
</script>
 
SC-Ad-Bot
 
firemike
das hier in der panelinhalt... fertig.

[geshi=php]openside("blabla");
echo '<body OnLoad="startPix(Cd News)">
<img name="ChangingPix" src="http://mega.mega-Drom.de/cd/Boyzone.gif">
<SCRIPT LANGUAGE="JavaScript">
<!--
var timeDelay = 5;
var Pix = new Array
("http://mega.mega-Drom.de/cd/Boyzone.gif"
,"http://mega.mega-Drom.de/cd/TheCure.gif"
,"http://mega.mega-Drom.de/cd/Unheilig.gif"
);
var howMany = Pix.length;
timeDelay *= 1000;
var PicCurrentNum = 0;
var PicCurrent = new Image();
PicCurrent.src = Pix[PicCurrentNum];
function startPix() {
setInterval("slideshow()", timeDelay);
}
function slideshow() {
PicCurrentNum++;
if (PicCurrentNum == howMany) {
PicCurrentNum = 0;
}
PicCurrent.src = Pix[PicCurrentNum];
document["ChangingPix"].src = PicCurrent.src;
}
// End -->
</script> ';
closeside();[/geshi]
 
emblinux
ich würds eher so machen:

[geshi=php] openside("blabla");
echo '
<img name="ChangingPix" src="http://mega.mega-Drom.de/cd/Boyzone.gif">
<SCRIPT LANGUAGE="JavaScript">
<!--
var timeDelay = 5;
var Pix = new Array
("http://mega.mega-Drom.de/cd/Boyzone.gif"
,"http://mega.mega-Drom.de/cd/TheCure.gif"
,"http://mega.mega-Drom.de/cd/Unheilig.gif"
);
var howMany = Pix.length;
timeDelay *= 1000;
var PicCurrentNum = 0;
var PicCurrent = new Image();
PicCurrent.src = Pix[PicCurrentNum];
function startPix() {
setInterval("slideshow()", timeDelay);
}
function slideshow() {
PicCurrentNum++;
if (PicCurrentNum == howMany) {
PicCurrentNum = 0;
}
PicCurrent.src = Pix[PicCurrentNum];
document["ChangingPix"].src = PicCurrent.src;
}
// End -->
startPix();
</script> ';
closeside();[/geshi]

Weil ein body Tag innerhalb eines Body-Tags nicht erlaubt sind. Und wenn man einen Tag auf macht, muss man ihn auch zumachen, wernn es einen schließenden Tag gibt.
Und ein Übergabeparameter ist auch nicht notwendig, da die Javascript FUnktion keinen hat.
Das Lernen ist wie ein Meer ohne Ufer. Konfuzius

Alles wird Gut!

KEIN Support per Mail, ICQ oder PN !
www.heiseclan.de/fusion/sig.gif

www.heiseclan.de/geosig.gif
 
firemike
embli hat wie fast immer Recht...
 
Sony2504
ja supi funktioniert. nur irgendwie wird nun das neue Panel nicht angezeigt. weiss nciht woran das liegen mag.


DANKE RALF ;-)

Erledigt...
Bearbeitet von Sony2504 am 31.10.2008 00000010 19:04
 
Springe ins Forum:

 Ähnliche Themen 

TEST
Thema Forum Antworten Letzter Beitrag
Fusion Board Spalten Problem Infusionen 4 05.11.2019 00000011 07:48
V-Bank Problem Infusionen 28 30.08.2016 00000008 17:21
pds_status_panel problem Infusionen 1 09.07.2016 00000007 19:08
Shoutbox problem Infusionen 1 22.06.2016 00000006 21:16
Problem mit preg_replace Allgemeine Support Fragen 3 24.03.2016 00000003 13:58
Datalus