Tag Archives: Get

Creating a FIXED element with re-size and scroll detection using YUI dom and event

We have all see them and some of us love them. It’s those elements that seem to float on the page like hovering little angels. Ok enough with the sappy crap…down to business. So you need to create a browser independent simple script to position an element on a page. I put together a simple [...]

Using the YUI Loader and Yahoo’s CDN Rollup

Using the YUI Loader and the script below will allow you to implement the YUI framework within your application with out downloading and installing the YUI framework to your server. var loader = new YAHOO.util.YUILoader({ require: ["get","dom","event"], loadOptional: true, onSuccess: function() { YAHOO.util.Event.onDOMReady(init); }, timeout: 10000, combine: true }); loader.insert(); function init(){ console.warn(‘YUI Loaded’); } [...]