Yes, this is exactly what I want.
This tool is really useful.
Thanks.
On 9月8日, 下午11時45分, Tzury <[EMAIL PROTECTED]> wrote:
> > When mouse over an object, say a DIV for simplicity, I can use JQuery
> > to get its absolute position in DOM tree,
>
> There is Modi (http://slayeroffice.com/tools/modi
> When mouse over an object, say a DIV for simplicity, I can use JQuery
> to get its absolute position in DOM tree,
There is Modi (http://slayeroffice.com/tools/modi/v2.0/modi_help.html)
not jQuery but still JavaScript
Do you mean its top, left, right and bottom values?
$('div').mouseover(function(){
var $this = $(this);
var top = $this.css('top');
var bottom = $this.css('bottom');
var left = $this.css('left');
var right = $this.css('right');
console.log($this, top, bottom, left, right);
I've done a function like this:
myId = function(me){ return me.id ? '#' + me.id : '' }
myTag = function(me){ return me.tagName ? me.tagName.toLowerCase() : '' }
myClass = function(me){ return me.className ? '.' + me.className.split('
').join('.') : '' }
breadcrumbs = function(me){
var path = [m
Something like this?
$('#myDiv').click(function() {
var path = [this.tagName + '#' + this.id];
$(this).parents().each(function() {
path[path.length] = this.tagName;
});
alert(path.join(' < '));
});
- Richard
On 9/8/07, howa <[EMAIL PROTECTED]> wrote:
>
>
> When mouse over an object,
5 matches
Mail list logo