Regular CSS for FF, IE7, Opera, Safari:

#subnav li {background-color: green;}
#subnav li:first-child {background-color: red;}

CSS for IE 6 (using conditional comments):

<!–-[if IE 6]>
#subnav li {background-color: expression(this.previousSibling==null?'red':'green');}

Similar to :last-child
Instead of this.previousSibling==null there should be this.nextSibling==null


The concept of Jing is the always-ready program that instantly captures and shares images and video…from your computer to anywhere.

It’s something we want to give you, along with some online media hosting, to see how you use it. The project will eventually turn into something else.

Awesome! 😉

Also useful to help your parents/kids to configure anything: create a simple video – step by step – and share it to them.


picasa2flickr: A simple “plugin” that allows picasa users to upload their photos to flickr.
Thanks to author.
Hope he will make nice interface soon 😉


Crash your IE6

On 5-30-2007, in Coding, DOM, HTML, by Alex

Do you want to crash your visitors IE6?
Add <div id="tags">anything</div> to your page and suggest them to print it.

To avoid printing crash for IE6 just avoid id name tags

It seems it works (umm, crashes) to “native” IE6 and doesn’t work to IE6 within MultipleIE installation.


Simplest Classname Switcher

On 5-29-2007, in Coding, JavaScript, by Alex

Simplest JS function to add/remove custom classname with carrying about another classes.
just to remember.

function toggleClassName(obj,sClassName,switcher){
			obj.className=obj.className + ' ' + sClassName;
		var re = new RegExp(sClassName,'g');

sapienti sat