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

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

Give clickme a better name.

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