This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a href="#" style="background-color: lightblue;" onclick="alert($(this).position().left + $(this).height() + ',' + $(this).width());">Click Me</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).click(function(e) { | |
$('<div/>', { | |
'id':'myDiv', | |
'class':'myClass', | |
'text':'Text Only' | |
}).appendTo('body') | |
.css({ | |
'position': 'absolute', | |
'left': e.pageX, | |
'top': e.pageY |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a href="javascript:if(document.cookie.indexOf('isLoaded=true')!=-1){$.getScript('http://localhost:63342/MouseClick/src/js/xyDiv.js', function(){});loaded++;document.cookie='isLoaded=true';}">test</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var dynamicDivIDs = new Array(); | |
function random() { | |
return Math.floor(Math.random() * 10000) + 1; | |
} | |
function newDivID() { | |
var newIDPrefix = 'dynamicDiv'; | |
var newID = newIDPrefix + random(); |
NewerOlder