Testing relatedTarget onmouseover

This commit is contained in:
Eduardo Lundgren 2008-05-27 02:29:55 +00:00
parent 18ed665ae6
commit 9a671aef8f

View File

@ -44,13 +44,13 @@
$(function() { $(function() {
/*$('#resizable1').mouseover(function() { $('#resizable1').mouseover(function() {
$(this).css('background', 'red'); $(this).css('background', 'red');
}); });
$('#resizable1').mouseout(function() { $('#resizable1').mouseout(function() {
$(this).css('background', 'yellow'); $(this).css('background', 'yellow');
});*/ });
$('#key').keydown(function() { $('#key').keydown(function() {
console.log('keydown') console.log('keydown')
@ -66,10 +66,10 @@
charCode: 67, charCode: 67,
keyCode: 67, keyCode: 67,
after: function(e) { after: function(e) {
console.log(e) //console.log(e)
}, },
before: function(e) { before: function(e) {
console.log(e) //console.log(e)
} }
}); });
@ -104,33 +104,49 @@
} }
}); });
/*$('#main').userAction("mouseout", { $('#main').userAction("mouseout", {
target: '.ui-resizable-e', target: '.ui-resizable-e',
//relatedTarget: '#resizable1',
relatedTarget: '#resizable1',
//x: $('#resizable1').offset().left, //x: $('#resizable1').offset().left,
//y: $('#resizable1').offset().top, //y: $('#resizable1').offset().top,
//bubbles: true, //bubbles: true,
//cancelable: false, //cancelable: false,
//view: window, //view: window,
//ctrlKey: false, //ctrlKey: false,
//altKey: false, //altKey: false,
//shiftKey: false, //shiftKey: false,
//relatedTarget: null, //relatedTarget: null,
//screenX: 0, //screenX: 0,
//screenY: 0, //screenY: 0,
//metaKey: false, //metaKey: false,
//button: 0, //button: 0,
//center: false, //center: false,
//center: [100, 100], //center: [100, 100],
before: function(e, o) { before: function(e, x, y) {
//console.log('before') console.log(e)
}, },
after: function(e, o) { after: function(e, x, y) {
//console.log('after') console.log(e)
} }
});*/ });
}); });