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

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

Some text to explain what the page is about.

File size: 589 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        var img = e.target;
19        var x = e.pageX - img.offsetLeft;
20        var y = img.height-(e.pageY - img.offsetTop);
21
22        var s6x = Math.round(x/6);
23        var s6y = Math.round(y/6);
24
25        window.location=("map.html?" + s6x + "," + s6y + ",3");
26
27        return false;
28}
29
30        var link = document.getElementById("link");
31
32        link.onclick = click;
33        link.href='#';
34
35</script>
36
37</html>
Note: See TracBrowser for help on using the repository browser.