Eight.setCss

Sets the CSS of a DOM Element based on an object map. Mainly implemented to avoid a dependency on jQuery while still keeping the library's code simple and pretty.

Example

var box = document.getElementById("box");

Eight.setCss(box, {
    width: "20px",
    height: "20px",
    backgroundColor: "blue"
});

Last edited Feb 10, 2013 at 3:43 AM by gotdibbs, version 2

Comments

No comments yet.