Hallo zusammen,
ich habe eine Frage zu meiner Slide Show... Meine Slide Show will nicht ganz funktioniern. Firefox sagt: ReferenceError: rechts is not defined ()
Code(rechts):
<script type="text/javascript">
function rechts() {
int i;
var display = document.slide[int i].style.getAttriute(display, false) = "inline";
switch(int i) {
case "1":
document.all.slide1.style.removeAttribute("display", false); /*Blendet aus*/
document.all.slide1.style.setAttribute("display", "none", false);
document.all.slide2.style.setAttribute("display", "inline", false); /*Blendet ein*/
break;
case "2":
document.all.slide2.style.removeAttribute("display", false);
document.all.slide2.style.setAttribute("display", "none", false);
document.all.slide3.style.setAttribute("display", "inline", false);
break;
case "3":
document.all.slide3.style.removeAttribute("display", false);
document.all.slide3.style.setAttribute("display", "none", false);
document.all.slide4.style.setAttribute("display", "inline", false);
break;
case "4":
document.all.slide4.style.removeAttribute("display", false);
document.all.slide4.style.setAttribute("display", "none", false);
document.all.slide1.style.setAttribute("display", "inline", false);
break;
}
}
</script>
....(HTML)
<a onclick="return linkss()" ><div id="slide-left"><img src="icons/left.png" alt="" height="50px" width="50px" /></div></a>
<a onclick="return rechts()"><div id="slideright"><img src="icons/right.png" alt="" width="50px" height="50px" /></div></a>
<div id="progress"></div>
<div id="slide1">...usw....
ich habe eine Frage zu meiner Slide Show... Meine Slide Show will nicht ganz funktioniern. Firefox sagt: ReferenceError: rechts is not defined ()
Code(rechts):
<script type="text/javascript">
function rechts() {
int i;
var display = document.slide[int i].style.getAttriute(display, false) = "inline";
switch(int i) {
case "1":
document.all.slide1.style.removeAttribute("display", false); /*Blendet aus*/
document.all.slide1.style.setAttribute("display", "none", false);
document.all.slide2.style.setAttribute("display", "inline", false); /*Blendet ein*/
break;
case "2":
document.all.slide2.style.removeAttribute("display", false);
document.all.slide2.style.setAttribute("display", "none", false);
document.all.slide3.style.setAttribute("display", "inline", false);
break;
case "3":
document.all.slide3.style.removeAttribute("display", false);
document.all.slide3.style.setAttribute("display", "none", false);
document.all.slide4.style.setAttribute("display", "inline", false);
break;
case "4":
document.all.slide4.style.removeAttribute("display", false);
document.all.slide4.style.setAttribute("display", "none", false);
document.all.slide1.style.setAttribute("display", "inline", false);
break;
}
}
</script>
....(HTML)
<a onclick="return linkss()" ><div id="slide-left"><img src="icons/left.png" alt="" height="50px" width="50px" /></div></a>
<a onclick="return rechts()"><div id="slideright"><img src="icons/right.png" alt="" width="50px" height="50px" /></div></a>
<div id="progress"></div>
<div id="slide1">...usw....