script-handle-04-b
|
SVG Image
|
PNG Image
|
script-handle-04-b
This test validates basic support for the mouse events defined in SVG.
Mouse event handlers test.
Target
Use the target to trigger events
onmouseover
onmousemove
onmouseout
function onEvent(evt, indicatorId){
// Get Document
var target = evt.target;
var doc = target.ownerDocument;
// Mark test as passed
var testPassed = doc.getElementById(indicatorId);
testPassed.setAttribute('visibility', 'hidden');
}
$Revision: 1.2 $
|
|
|
Tests basic mouse event handlers.
The test shows a target that can be used to generate the various
kinds of mouse and keyboard events supported in SVG. Below the
target, the list of events is shown with red markers next to each.
If the test passes, all the markers should have turned to green
after the events have been triggered on the target. If any event
has not triggered, its marker will remain red.