YUI Anywhere
This is among the coolest items I have lately seen. My buddy Mike G. showed it to me, and it was originally posted on phpied.com. Now, you can bring your web2 tool kit with you everywhere.
Drag this to your bookmarks bar: YUI Anywhere
The question is... what can we do with this?
The famous example: Make everything draggable:
I am currently working on a fun example of what can be done with YUI Anywhere.
(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('*');
for(var i = 0; i < all.length; i++) {
new YAHOO.util.DD(all[i]);
}
The point is to run this code in firebug after clicking your new YUI Anywhere button.I am currently working on a fun example of what can be done with YUI Anywhere.
Labels: javascript, self invoke, singleton, YUI

0 Comments:
Post a Comment
<< Home