Hjælp med et script
Jeg har dette script, hvordan får jeg det til at virke i php<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title></title>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
NewImg = new Array (
"image1.jpg",
"image2.jpg",
"image3.jpg",
"image4.jpg",
"image5.jpg",
"image6.jpg",
"image7.jpg",
"image8.jpg",
"image9.jpg",
"image10.jpg"
);
var ImgNum = 0;
var ImgLength = NewImg.length - 1;
//Time delay between Slides in milliseconds
var delay = 5000;
var lock = false;
var run;
function chgImg(direction) {
if (document.images) {
ImgNum = ImgNum + direction;
if (ImgNum > ImgLength) {
ImgNum = 0;
}
if (ImgNum < 0) {
ImgNum = ImgLength;
}
document.slideshow.src = NewImg[ImgNum];
}
}
function auto() {
if (lock == true) {
lock = false;
window.clearInterval(run);
}
else if (lock == false) {
lock = true;
run = setInterval("chgImg(1)", delay);
}
}
// End -->
</script>
</head>
<body topmargin="6" bgcolor="#ffffff" leftmargin="6">
<center>
<img src="image1.jpg" name="slideshow" width="704" height="508" style="border: 1 solid #C0C0C0">
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="737">
<tr>
<td width="153"><p align="center"><font face="Verdana" color="#FFFFFF" size="1"><b><a href="#" onClick="window.close();"><<<<TIL
GALLERI </a> </b></font></p>
</td>
</center>
<td width="185">
<p align="center"><font face="Verdana" color="#FFFFFF" size="1"><b><a href="java script:chgImg(-1)"><<<<TILBAGE</a> </b></font>
</p>
</td>
<center>
<td width="126"><p align="center"><font face="Verdana" color="#FFFFFF" size="1"><b>
<a href="java script:auto()">Start show </a></b></font></p>
</td>
<td width="187"><p align="left"><font face="Verdana" color="#FFFFFF" size="1"><b>
<a href="java script:auto()">Stop show </a></b></font></p>
</td>
</center>
<td width="96"><p><b><font face="Verdana" color="#FFFFFF" size="1"><a href="java script:chgImg(1)">NÆSTE>>>></font></b><b><font face="Verdana" color="#FFFFFF" size="1"> </font></b></p>
</a>
</td>
</tr>
</table>
</div>
</body>
</html>
Det vil ikke hente billederne når jeg bruger det sammen med php
