Previous Message
Next Message

Tool to show what classes are applied to an element

Sent by Dejan Kozina on 29 October 2004 14:02


This is a multi-part message in MIME format.
--------------060007080004020806020403
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

A very handi way to do this is using a bookmarklet like this:

javascript:(function(){function A(n,g){var 
p=n.parentNode,t=n.tagName;if(!p)return %22%22;if(!t)return A(p,g);var 
T=t.toUpperCase(),b=(T!=%22TABLE%22&&T!=%22TBODY%22&&T!=%22THEAD%22&&T!=%22TR%22),c=n.className,i=n.id;return

A(p,' > 
')+(b?T:T.toLowerCase())+(c?%22.%22+c:%22%22)+(i?%22#%22+i:%22%22)+(b?g:' 
');}document.onmouseover=function(e){e=e?e:event;var 
s,g=e.target;g=g?g:e.srcElement;try{s=A(g,'');}catch(err){s=err.message;}window.status=s;return 
true;};window.status=A(document.documentElement,'');})()

I've found it at http://www.squarefree.com/bookmarklets/ and use it all 
the time. There is some other useful stuff  on the same page; if you 
happen to like the idea you can query Google for bookmarklets, there is 
no shortage of similar stuff.

djn


--------------060007080004020806020403
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit

______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

--------------060007080004020806020403--
Previous Message
Next Message

Possibly related: