Depending on which browser versions you need to support, you could try CSS tranforms.
First, define a CSS class like this:
.rotated {
transform: rotate(90deg);
-ms-transform: rotate(90deg); /* IE 9 */
-moz-transform: rotate(90deg); /* Firefox */
-webkit-transform: rotate(90deg); /* Safari and Chrome */
-o-transform: rotate(90deg); /* Opera */
}
And then you can use jQuery to add the class when clicking the link:
<img src="down_arrow.png" onclick="$(this).addClass('rotated');" />
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…