source: trunk/npemap.org.uk/static/tiles/allmaps.html @ 57

Last change on this file since 57 was 57, checked in by David Sheldon, 15 years ago

Some IE fixes.

File size: 633 bytes
Line 
1
2<html>
3<head>
4  <title>England and Wales maps</title>
5</head>
6
7<body>
8<p>
9Click on the map to zoom in.
10</p>
11<a href="#" id="link">
12<img src="thumbnail.jpg" style="border: none" />
13</a>
14</body>
15
16<script type="text/javascript">
17function click(e) {
18  e = (e)?e:event;
19  var img = (e.target)?e.target:e.srcElement;
20        var x = e.pageX - img.offsetLeft;
21        var y = img.height-(e.pageY - img.offsetTop);
22
23        var s6x = Math.round(x/6);
24        var s6y = Math.round(y/6);
25
26        window.location=("map.html?" + s6x + "," + s6y + ",3");
27
28        return false;
29}
30
31        var link = document.getElementById("link");
32
33        link.onclick = click;
34        link.href='#';
35
36</script>
37
38</html>
Note: See TracBrowser for help on using the repository browser.