Hi, Yesterday I searched a lot about js and css.
found several
interesting and even amazing things:
Pure CSS pop-out menus
[to my surprise doesnt work on IE but works on Mozilla :))]
http://www.meyerweb.com/eric/css/edge/menus/demo.html
ToolBox 1sorting tables, dynamic tree from UL, words search&highlight
http://www.kryogenix.org/code/browser/
Dynamic Tree could be used in threads to reverse the order of posts.
ToolBox 2 Pay attention to "Anchor Position" it can help with Tigra menu in fixed-width columns layout to make it find its position ;)
http://www.mattkruse.com/javascript/
http://www.javascript-games.org/gamelib/
Miscsome nice drag&drop and tooltips
http://www.walterzorn.com
SyntaxHihtglight with js - cute thing
http://simon.incutio.com/js/syntaxHighlight.html
I think, it would also be convenient to use js for message-edit preview (sometimes my bandwith gets on my nerves :\)
FontSize
http://www.dyn-web.com/dhtml/sizefont/
(more
http://www.stcassociates.com/lab/fontbrowser.html)
fun sutff
http://javascript.internet.com/games/picture-puzzle.html (ups, it made my Moziila not responding..)
http://javascript.internet.com/games/picture-memory.html
even
http://javascript.internet.com/games/javascript-chess-with-cpu-oppo.html I also found
more general js API's out there for dealing with DOM.
www.cross-browser.com (X and CBE) //I guess, X is the lightest of all
http://sourceforge.net/projects/dynapi/
http://www.dithered.com/javascript/index.html
a pile of work-arounds www.quirksmode.org
a workaround to deal with non-js browsers
if (document.getElementById){
document.write('<style type="text/css">n')
document.write('.dyncontent{display: none; width: 250px; height: 60px;}n')
document.write('</style>')
// could be whatever
}
the idea to get elements by class_name
<script type="text/javascript">
function getElementbyClass(classname){
var inc=0
var alltags=document.getElementsByTagName("*");
for (i=0; i<alltags.length; i++){
if (alltags[i].className==classname)
customcollection[inc++]=alltags[i]
}
}
getElementbyClass("dyncontent")
</script>