|
1 | | -<html><head><title>DHTML Interface Test</title> |
| 1 | +<!DOCTYPE html> |
| 2 | +<html> |
| 3 | +<head> |
| 4 | + <title>DHTML Interface Test</title> |
| 5 | + <script type="text/javascript" src="javascript/cbe/cbe_core.js"></script> |
| 6 | + <script type="text/javascript" src="javascript/cbe/cbe_event.js"></script> |
| 7 | + <script type="text/javascript" src="javascript/cbe/cbe_util.js"></script> |
| 8 | + <script type="text/javascript" src="javascript/cbe/cbe_debug.js"></script> |
| 9 | + <script type="text/javascript" src="javascript/cbe/cbe_slide.js"></script> |
| 10 | + <script type="text/javascript"> |
| 11 | +<!-- |
| 12 | + var map, anchor; |
| 13 | + function windowOnload() { |
| 14 | + // with (map = cbeGetElementById('map').cbe) { |
| 15 | + // resizeTo(400,400); |
| 16 | + // moveTo('ne',1); |
| 17 | + // show(); |
| 18 | + // } |
| 19 | + map = cbeGetElementById('map').cbe |
| 20 | + map.resizeTo(400, 400); |
| 21 | + map.moveTo('ne', 1); |
| 22 | + map.show(); |
2 | 23 |
|
3 | | -<script type="text/javascript" src="javascript/cbe/cbe_core.js"></script> |
4 | | -<script type="text/javascript" src="javascript/cbe/cbe_event.js"></script> |
5 | | -<script type="text/javascript" src="javascript/cbe/cbe_util.js"></script> |
6 | | -<script type="text/javascript" src="javascript/cbe/cbe_debug.js"></script> |
7 | | -<script type="text/javascript" src="javascript/cbe/cbe_slide.js"></script> |
| 24 | + anchor = cbeGetElementById('anchor').cbe; |
| 25 | + cbeMouseMoveStatus(); |
| 26 | + } |
8 | 27 |
|
9 | | -<script type="text/javascript"><!-- |
10 | | -var map, anchor; |
11 | | -function windowOnload() { |
12 | | - // with (map = cbeGetElementById('map').cbe) { |
13 | | - // resizeTo(400,400); |
14 | | - // moveTo('ne',1); |
15 | | - // show(); |
16 | | - // } |
17 | | - map = cbeGetElementById('map').cbe |
18 | | - map.resizeTo(400,400); |
19 | | - map.moveTo('ne',1); |
20 | | - map.show(); |
21 | | - |
22 | | - anchor = cbeGetElementById('anchor').cbe; |
23 | | - cbeMouseMoveStatus(); |
24 | | -} |
25 | | - |
26 | | -function swapimage() { |
27 | | - document.testimg.src = "graphics/reference.gif"; |
28 | | -} |
29 | | -//--></script></head><body bgcolor="#cccccc"> |
30 | | - |
31 | | -<img name="testimg" src="graphics/red_pixel.gif"> |
32 | | -<table border="1"> |
33 | | -<tbody> |
34 | | -<tr> |
35 | | - <td>This<br> workshop<br> is<br> lame.<br></td> |
36 | | - <td> |
37 | | - <div id="anchor" style="position: relative; visibility: visible; width: 400px; height: 400px; left: 0px; top: 0px;"> |
38 | | - <!-- place holder image, same size as the map --> |
39 | | - <img width="400" height="400" src="graphics/red_pixel.gif"> |
40 | | - </div> |
41 | | - <div id="map" style="background: transparent none repeat scroll 0%; clip: rect(0px, 400px, 400px, 0px); position: absolute; -moz-background-clip: initial; -moz-background-inline-policy: initial; -moz-background-origin: initial; width: 400px; height: 400px; visibility: inherit; left: 555px; top: 1px;"> |
42 | | - <!-- <div id='map' style='position:absolute; visibility:visible; width:400px; height:400px; clip:rect(0px,0px,400px,400px); background:transparent;'> --> |
43 | | - <img name="main" src="graphics/white_pixel.gif" alt="the map" border="0" width="400" height="400"> |
44 | | - </div> |
45 | | - </td> |
46 | | -</tr> |
47 | | -</tbody></table> |
48 | | - |
49 | | -<a href="javascript:map.moveTo(anchor.pageX(),anchor.pageY())">move map</a> |
50 | | -<a href="javascript:map.moveTo('ne',1)">reset map</a> |
51 | | -<a href="javascript:swapimage()">swap images</a> |
52 | | - |
53 | | -</body></html> |
| 28 | + function swapimage() { |
| 29 | + document.testimg.src = "graphics/reference.gif"; |
| 30 | + } |
| 31 | +//--></script> |
| 32 | +</head> |
| 33 | +<body bgcolor="#cccccc"> |
| 34 | + <img name="testimg" src="graphics/red_pixel.gif"> |
| 35 | + <table border="1"> |
| 36 | + <tbody> |
| 37 | + <tr> |
| 38 | + <td>This<br> workshop<br> is<br> lame.<br></td> |
| 39 | + <td> |
| 40 | + <div id="anchor" style="position: relative; visibility: visible; width: 400px; height: 400px; left: 0px; top: 0px;"> |
| 41 | + <!-- place holder image, same size as the map --> |
| 42 | + <img width="400" height="400" src="graphics/red_pixel.gif"> |
| 43 | + </div> |
| 44 | + <div id="map" style="background: transparent none repeat scroll 0%; clip: rect(0px, 400px, 400px, 0px); position: absolute; -moz-background-clip: initial; -moz-background-inline-policy: initial; -moz-background-origin: initial; width: 400px; height: 400px; visibility: inherit; left: 555px; top: 1px;"> |
| 45 | + <!-- <div id='map' style='position:absolute; visibility:visible; width:400px; height:400px; clip:rect(0px,0px,400px,400px); background:transparent;'> --> |
| 46 | + <img name="main" src="graphics/white_pixel.gif" alt="the map" border="0" width="400" height="400"> |
| 47 | + </div> |
| 48 | + </td> |
| 49 | + </tr> |
| 50 | + </tbody> |
| 51 | + </table> |
| 52 | + <a href="javascript:map.moveTo(anchor.pageX(),anchor.pageY())">move map</a> |
| 53 | + <a href="javascript:map.moveTo('ne',1)">reset map</a> |
| 54 | + <a href="javascript:swapimage()">swap images</a> |
| 55 | +</body> |
| 56 | +</html> |
0 commit comments