CSS: More Functionality with MoreCSS Javascript Library

download_button CSS: More Functionality with MoreCSS Javascript Library

MoreCSS is a small JavaScript library for everyday things, like creating popups, tab menus, tables and lists with “zebra”-style and etc… But the really special thing is: you can do these things in regular CSS. Just include MoreCSS.js and an external stylesheet file in your page header. And then you can use MoreCSS properties like normal CSS properties.

Example:

a {
target:popup;
target-width:640px;
target-height:640px;
}

This will open all links in a 640 × 640 px popup window. Easy, isn’t it?

Installation

Just include MoreCSS.js and an external stylesheet file in your page header like this (of course without the spaces).

< link rel="MoreCSS" href="path/to/the/MoreCSS/stylesheet.css" />
< script type="text/javascript" src="MoreCSS.js">< /script >

Be sure to include the stylesheet before the script, because the stylesheet must be loaded already when the script starts. If possible include both files before all other included files. Because MoreCSS will try to hide some special elements on startup until the processes completed to avoid loading effects.

After that you can use all MoreCSS properties in the external stylesheet.

Spread the words

Digg Del.icio.us Stumble Float Technorati Bump
Whatever you want to say!
Leave a comment!
Note: You can also use your free Gravatar avatar on Knowtebook! Please also read our Publishing Policy before posting.

Yes, I would like to receive notification on incoming comments!

Trackbacks/Pings
Trackback-URL