diff options
Diffstat (limited to 'chrome/test/data/mouseleave.html')
-rw-r--r-- | chrome/test/data/mouseleave.html | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/chrome/test/data/mouseleave.html b/chrome/test/data/mouseleave.html new file mode 100644 index 0000000..dd4f581 --- /dev/null +++ b/chrome/test/data/mouseleave.html @@ -0,0 +1,42 @@ +<html> + <head> + <style> + body { + margin: 0px; + padding: 0px; + } + #mybox { + padding: 20px; + margin: 0px; + border: 1px solid #000; + } + #mystatus { + border: 1px solid #000; + padding: 20px; + margin: 0px; + } + </style> + <script> + var state = ''; + function load() { + state = 'initial'; + document.getElementById("mystatus").innerHTML = state; + document.cookie = '__state=' + state + '; path=/'; + } + function enter() { + state += ',entered'; + document.getElementById("mystatus").innerHTML = state; + document.cookie = '__state=' + state + '; path=/'; + } + function leave() { + state += ',left'; + document.getElementById("mystatus").innerHTML = state; + document.cookie = '__state=' + state + '; path=/'; + } + </script> + </head> + <body onload="load()"> + <div id="mybox" onmouseover="enter()" onmouseout="leave()"></div> + <div id="mystatus"></div> + </body> +</html> |