(function(){
var yui = document.createElement('script');
yui.src='http://yui.yahooapis.com/2.3.1/build/utilities/utilities.js';
yui.type='text/javascript';
document.getElementsByTagName('head')[0].appendChild(yui);
})();
Drag this to your bookmarks bar: YUI Anywhere
The question is... what can we do with this?
The famous example: Make everything draggable:
var all = document.getElementsByTagName('*');The point is to run this code in firebug after clicking your new YUI Anywhere button.
for(var i = 0; i < all.length; i++) {
new YAHOO.util.DD(all[i]);
}
I am currently working on a fun example of what can be done with YUI Anywhere.
No comments:
Post a Comment