Slide show
Hi I have uploaded the following script onto my home page
This is coming up with quite a few script errors whilst it looks fine I need it tweaked to remove these errors
the errors are HTML Validation any help available
<layer id="placeholderlayer"></layer>
<div id="placeholderdiv"></div>
<script language="JavaScript1.2" type="text/javascript">// <![CDATA[
var howOften = 4; //number often in seconds to rotate
var current = 0; //start the counter at 0
var ns6 = document.getElementById&&!document.all; //detect netscape 6
// place your images, text, etc in the array elements here
var items = new Array();
items[0]="<a href='http://www.handmadebyme.co.uk/Save+The+Date+Cards+PU1ETndBVE02a25jdmRXWjBGMlk' ><img alt='image0 (9K)' src='s2g/handmadebyme/Header Image 1.jpg' height='236' width='550' border='0' /></a>"; //a linked image
items[1]="<a href='lhttp://www.handmadebyme.co.uk/Table+Names+PVlETndBVE02a25jdmRXWjBGMlk'><img alt='image1 (9K)' src='s2g/handmadebyme/Header%20Image%202.jpg' height='236' width='550' border='0' /></a>"; //a linked image
items[2]="<a href='http://www.handmadebyme.co.uk/Albums+and+Guest+Books+PU1ETXdBVE02a25jdmRXWjBGMlk'><img alt='image2 (9K)' src='s2g/handmadebyme/Header%20Image%203.jpg' height='236' width='550' border='0' /></a>"; //a linked image
items[3]="<a href='http://www.handmadebyme.co.uk/Table+Plans+PUFUTXdBVE02a25jdmRXWjBGMlk'><img alt='image3 (9K)' src='s2g/handmadebyme/Header%20Image%204.jpg' height='236' width='550' border='0' /></a>"; //a linked image
items[4]="<a href='http://www.handmadebyme.co.uk/Wedding+Invitations+PUVETXdBVE02a25jdmRXWjBGMlk'><img alt='image4 (9K)' src='s2g/handmadebyme/Header%20Image%205.jpg' height='236' width='550' border='0' /></a>"; //a linked image
items[5]="<a href='http://www.handmadebyme.co.uk/Christening+Invitations+PUlETXdBVE02a25jdmRXWjBGMlk'><img alt='image5 (18K)' src='s2g/handmadebyme/Header%20Image%206.jpg' height='236' width='550' border='0' /></a>"; //a linked image
function rotater() {
document.getElementById("placeholder").innerHTML = items[current];
current = (current==items.length-1) ? 0 : current + 1;
setTimeout("rotater()",howOften*1000);
}
function rotater() {
if(document.layers) {
document.placeholderlayer.document.write(items[current]);
document.placeholderlayer.document.close();
}
if(ns6)document.getElementById("placeholderdiv").innerHTML=items[current]
if(document.all)
placeholderdiv.innerHTML=items[current];
current = (current==items.length-1) ? 0 : current + 1; //increment or reset
setTimeout("rotater()",howOften*1000);
}
window.onload=rotater;
// ]]></script>
<br />
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Bookmarks