/ Forside / Teknologi / Udvikling / Java Scripts / Nyhedsindlæg
Login
Glemt dit kodeord?
Brugernavn

Kodeord


Reklame
Top 10 brugere
Java Scripts
#NavnPoint
molokyle 5410
Klaudi 2799
smorch 2439
kim 1360
Harlekin 1134
bentjuul 984
gibson 800
severino 695
Random 675
10  konsulent.. 626
Hjælp til galleri kode???
Fra : Anders Pedersen


Dato : 15-07-08 15:45

Hej.

Jeg har en kode som skulle vise et galleri. Men det gør koden
også i mozilla, men i IE vil den ikke vise billederne. Nogen der
kan sige mig hvorfor, og hvor jeg skal rette i koden?

<SCRIPT LANGUAGE="JavaScript">
<!-- Begin

//3-way slideshow- by Suzanne Arnold (http://jandr.com/,
suzanne@mail.jandr.com)
//Script featured on JavaScript Kit (http://javascriptkit.com)
//Credit must stay intact

var Onerotate_delay = 2000; // delay in milliseconds (5000 = 5
secs)
Onecurrent = 0;
var OneLinks = new Array(3);
OneLinks[0] = "http://www.freewarejava.com";
OneLinks[1] = "http://www.javascriptkit.com";
OneLinks[2] = "http://www.dynamicdrive.com";
function Onenext() {
if (document.Oneslideform.Oneslide[Onecurrent+1]) {
document.images.Oneshow.src =
document.Oneslideform.Oneslide[Onecurrent+1].value;
document.Oneslideform.Oneslide.selectedIndex = ++Onecurrent;
}
else Onefirst();
}
function Oneprevious() {
if (Onecurrent-1 >= 0) {
document.images.Oneshow.src =
document.Oneslideform.Oneslide[Onecurrent-1].value;
document.Oneslideform.Oneslide.selectedIndex = --Onecurrent;
}
else Onelast();
}
function Onefirst() {
Onecurrent = 0;
document.images.Oneshow.src =
document.Oneslideform.Oneslide[0].value;
document.Oneslideform.Oneslide.selectedIndex = 0;
}
function Onelast() {
Onecurrent = document.Oneslideform.Oneslide.length-1;
document.images.Oneshow.src =
document.Oneslideform.Oneslide[Onecurrent].value;
document.Oneslideform.Oneslide.selectedIndex = Onecurrent;
}
function Oneap(text) {
document.Oneslideform.Oneslidebutton.value = (text == "Stop") ?
"Start" : "Stop";
Onerotate();
}
function Onechange() {
Onecurrent = document.Oneslideform.Oneslide.selectedIndex;
document.images.Oneshow.src =
document.Oneslideform.Oneslide[Onecurrent].value;
}
function Onerotate() {
if (document.Oneslideform.Oneslidebutton.value == "Stop") {
Onecurrent = (Onecurrent ==
document.Oneslideform.Oneslide.length-1) ? 0 : Onecurrent+1;
document.images.Oneshow.src =
document.Oneslideform.Oneslide[Onecurrent].value;
document.Oneslideform.Oneslide.selectedIndex = Onecurrent;
window.setTimeout("Onerotate()", Onerotate_delay);
}
}
function Onetransport(){
window.location=OneLinks[Onecurrent]
}
// End -->
</SCRIPT>

<TABLE border="0" cellspacing="0" cellpadding="0">
<TR>
<TD>
<form name="Oneslideform" >
<DIV align="center">
<TABLE width="300" border="1" cellspacing="0"
cellpadding="4" bordercolor="#330099">
<TR>
<TD bgcolor="#330099">
<DIV align="center"><B><FONT
color="#FFFFFF">Landskamp 2007</FONT></B></DIV>
</TD>
</TR>
<TR>
<TD bgcolor="#FFFFFF">
<DIV align="center"><IMG
src="galleri_files/landskamp2007_files/1.jpg" width="" height=""
name="Oneshow" border="0"></A></DIV>

</TD>
</TR>
<TR>
<TD bgcolor="#330099">
<DIV align="center">
<SELECT name="Oneslide"
onChange="Onechange();">
<OPTION
value="galleri_files/landskamp2007_files/1.jpg">Billede
1</OPTION>
<OPTION
value="galleri_files/landskamp2007_files/2.jpg">Billede
2</OPTION>
<OPTION
value="galleri_files/landskamp2007_files/3.jpg">Billede
3</OPTION>
<OPTION
value="galleri_files/landskamp2007_files/4.jpg">Billede
4</OPTION>
<OPTION
value="galleri_files/landskamp2007_files/5.jpg">Billede
5</OPTION>
<OPTION
value="galleri_files/landskamp2007_files/6.jpg">Billede
6</OPTION>
<OPTION
value="galleri_files/landskamp2007_files/7.jpg">Billede
7</OPTION>
<OPTION
value="galleri_files/landskamp2007_files/8.jpg">Billede
8</OPTION>
<OPTION
value="galleri_files/landskamp2007_files/9.jpg">Billede
9</OPTION>
<OPTION
value="galleri_files/landskamp2007_files/10.jpg">Billede
10</OPTION>
<OPTION
value="galleri_files/landskamp2007_files/11.jpg">Billede
11</OPTION>
<OPTION
value="galleri_files/landskamp2007_files/12.jpg">Billede
12</OPTION>
<OPTION
value="galleri_files/landskamp2007_files/13.jpg">Billede
13</OPTION>
<OPTION
value="galleri_files/landskamp2007_files/14.jpg">Billede
14</OPTION>
</SELECT>
</DIV>
</TD>
</TR>
<TR>
<TD bgcolor="#330099">
<DIV align="center">
<INPUT type=button onClick="Oneprevious();"
value="Tilbage" title="Previous">
<INPUT type=button name="Oneslidebutton"
onClick="Oneap(this.value);" value="Start" title="AutoPlay">
<INPUT type=button onClick="Onenext();"
value="Næste" title="Next">
</DIV>
</TD>
</TR>
</TABLE>
</DIV>
</form>
</TD>
</TR>
</TABLE>

Link: http://www.kviknaestvedbtk.dk/galleri4.php

Anders Pedersen

--
Vil du lære at kode HTML, XHTML, CSS, SSI, ASP eller ASP.NET?
- Pædagogiske tutorials på dansk
- Kom godt i gang med koderne
KLIK HER! => http://www.html.dk/tutorials

 
 
Søg
Reklame
Statistik
Spørgsmål : 177558
Tips : 31968
Nyheder : 719565
Indlæg : 6408927
Brugere : 218888

Månedens bedste
Årets bedste
Sidste års bedste