Hjælp mig med min Facemash
Jeg vil prøve at lave en Facemash, men jeg er gået lidt i stå. Jeg ved ikke hvordan jeg skal lave point systemet er der nogen der kan hjælpe?Scriptet:
<!DOCTYPE html>
<html>
<head>
<title>Facemash</title>
<link rel="stylesheet" href="stylesheet.css" type="text/css" />
<script type="text/javascript">
<!--//Random Banner image on Page Reload
//store the images in arrays below
images = new Array(5);
images[0] = "<a href='index.html'><img id='pics' src='http://i.telegraph.co.uk/multimedia/archive/02368/potd-cowboy-cat_2368962k.jpg'> </a>";
images[1] = "<a href='index.html'><img id='pics' src='http://i.telegraph.co.uk/multimedia/archive/02413/seal-shark-leap_2413378k.jpg'> </a>";
images[2] = "<a href='index.html'><img id='pics' src='http://i.telegraph.co.uk/multimedia/archive/02384/squirrel-michelang_2384189k.jpg'> </a>";
images[3] = "<a href='index.html'><img id='pics' src='http://images.nationalgeographic.com/wpf/media-live/photos/000/355/cache/best-pictures-night-sky-astrophotography-photo-contest-aurora-borealis-iceland_35561_600x450.jpg'> </a>";
images[4] = "<a href='index.html'><img id='pics' src='https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcT2MRJW6AlcVV6CzbR4cltIhqwwuluvvfm3s7U7_w4OTLDnG0yp'> </a>";
index = Math.floor(Math.random() * images.length);
document.write(images[index]);
//done
// -->
</script>
<script type="text/javascript">
<!--//Random Banner image on Page Reload
//store the images in arrays below
images = new Array(5);
images[0] = "<a href='index.html'><img id='pics1' src='http://i.telegraph.co.uk/multimedia/archive/02368/potd-cowboy-cat_2368962k.jpg'> </a>";
images[1] = "<a href='index.html'><img id='pics1' src='http://i.telegraph.co.uk/multimedia/archive/02413/seal-shark-leap_2413378k.jpg'> </a>";
images[2] = "<a href='index.html'><img id='pics1' src='http://i.telegraph.co.uk/multimedia/archive/02384/squirrel-michelang_2384189k.jpg'> </a>";
images[3] = "<a href='index.html'><img id='pics1' src='http://images.nationalgeographic.com/wpf/media-live/photos/000/355/cache/best-pictures-night-sky-astrophotography-photo-contest-aurora-borealis-iceland_35561_600x450.jpg'> </a>";
images[4] = "<a href='index.html'><img id='pics1' src='https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcT2MRJW6AlcVV6CzbR4cltIhqwwuluvvfm3s7U7_w4OTLDnG0yp'> </a>";
index = Math.floor(Math.random() * images.length);
document.write(images[index]);
//done
// -->
</script>
<script type="text/javascript">
var point = "points.php";
if (images) {
echo ("point + 1");
} else{
echo ("point + 0");
}
</script>
</head>
<body>
<div id="menu"><a href="index.html" style="text-decoration: none;"><h2>Facemash</h2></a></div>
<h3>Hvem er hottest? klik for at vælge.</h3>
<h4>eller</h4>
</body>
</html>