Supportnet / Forum / Skripte(PHP,ASP,Perl...)
2 scripte in einer seite
Frage
Moin erstmal!
Ich habe ein Problem, ich bekomme in meiner page keine 2 scripte rein!
wenn ich nur ein script benutze dann klappt das auch, aber wenn ich beide nehme klappt das ein fach nicht!
Hier sind die einzelnen SCRIPTE:
<script language="JavaScript">
<!--
/* MjM'S JAVA CODENAME = FLASH
This JavaScript Code was written by MjM for Hyperchat UK
I am not responsible for any damage caused by my code.
This code can be modified as long as the Author's Name is still attached.
Email : MjM@hyperchat.co.uk
© Copyright 1996
*/
var yourwords = "×._.·´¯)·• KiKa4ever.de.vu •·(¯`·._.×";
var speed = 150;
var control = 1;
function flash()
{
if (control == 1)
{
window.status=yourwords;
control=0;
}
else
{
window.status="";
control=1;
}
setTimeout("flash();",speed);
}
// -->
</script>
<body onload="flash();">
und hier der zweite:
<SCRIPT LANGUAGE="JavaScript">
<!-- Idea by: Nic Wolfe (Nic@TimelapseProductions.com) -->
<!-- Web URL: http://fineline.xs.mw -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Begin
function popUp() {
props=window.open('popupcontent.htm', 'poppage', 'toolbars=0, scrollbars=0, location=0, statusbars=0, menubars=0, resizable=0, width=200, height=150, left = 540, top = 437');
}
// End -->
</script>
<BODY onLoad="javascript:popUp()">
Bitte hilft mir die beiden scripte zusammen zufügen!!
MFG mas123crew
Antwort 1 von mm_go
Hmm, kenne mich mit Javascript zwar nicht so gut aus, aber dass du zwei <body> tags hast, kommt mir doch sehr seltsam vor.
Probier mal:
Probier mal:
<script language="JavaScript">
<!--
unction popUp() {
props=window.open('popupcontent.htm', 'poppage', 'toolbars=0, scrollbars=0, location=0, statusbars=0, menubars=0, resizable=0, width=200, height=150, left = 540, top = 437');
}
/* MjM'S JAVA CODENAME = FLASH
This JavaScript Code was written by MjM for Hyperchat UK
I am not responsible for any damage caused by my code.
This code can be modified as long as the Author's Name is still attached.
Email : MjM@hyperchat.co.uk
© Copyright 1996
*/
var yourwords = "×._.·´¯)·• KiKa4ever.de.vu •·(¯`·._.×";
var speed = 150;
var control = 1;
function flash()
{
if (control == 1)
{
window.status=yourwords;
control=0;
}
else
{
window.status="";
control=1;
}
setTimeout("flash();",speed);
popUp();
}
// -->
</script>
<body onload="flash();">
Antwort 2 von mas123crew
hallo nochmal! Irgendwie klappt das immer noch nicht bei mir ich weiß auch nicht wieso!?
ich hoffe du (ihr) bekommt das hin!
ich hoffe du (ihr) bekommt das hin!
Antwort 3 von Dr.Ma-Busen
Da fehlt ein f gleich am anfang des Scripts. Muss function nicht unction heißen.
Geht mich ja nichts an, aber wofür ist das Script, dass es alle 150ms ein Popup erzeugt?
MfG
Dr. Ma-Busen
Geht mich ja nichts an, aber wofür ist das Script, dass es alle 150ms ein Popup erzeugt?
MfG
Dr. Ma-Busen
Antwort 4 von Dr.Ma-Busen
Schreib mal das popUp(); hinter dem letzten } dann sollte das moch beser gehen.
Man sollte sich den Qulltext richtig ansehen *schäm*
MfG
Dr. Ma-Busen
Man sollte sich den Qulltext richtig ansehen *schäm*
MfG
Dr. Ma-Busen

