Kombinere to script på samme side, hvordan gøres dette?
Hej der!Jeg har fundet dette script, >http://dynamicdrive.com/dynamicindex14/image4.htm<
som jeg dog gerne vil have to af, på samme side!!
De skriver at jeg skal gøre sådan:
The way to go about solving this conflict is simple, though not quite the same to explain. Essentially, what you want is to end up with only ONE delta for both scripts, with that delta calling the two scripts. Let's list some possible scenarios now, and their resolutions:
EXAMPLE #1:
SCRIPT 1: <body onload="dothis()">
SCRIPT 2: <body onload="dothat()">
RESOLUTION: <body onload="dothis();dothat()">
EXAMPLE #2:
SCRIPT 1: <body onload="dothis()">
SCRIPT 2: window.onload=dothat()
RESOLUTION: <body onload="dothis();dothat()">
EXAMPLE #3:
SCRIPT 1: window.onload=dothis
SCRIPT 2: window.onload=dothat
RESOLUTION: <body onload="dothis();dothat()">
As you can see, regardless of whether the two scripts contain "delta" or "beta", the resolution is the same- remove BOTH lines, and call the scripts directly within the <body> tag, each separated by a semicolon. If you wish to combine three scripts, the procedure is the exact same.
Men _ikke_ om jeg kan finde ud af det!!!
Enten vises den ene ok, og den anden viser første billede, for derefter at overtage andet billede fra den første!
Eller også får jeg vist min FPTdir mappe???
Er der en venlig sjæl der kan hjælpe mig, da jeg ikke har meget forstand på dette???
MVH Marianne
