KidsLovePC Contact Us
  Home   PHP  Graphics ASP  JavaScript   J2EE  HTML  JAVA   Swing   Webtip  Forums  Lyric  Free sheet music  Ringtones

Best books about Javasript

JavaScript Rotate the text 90 degree

javascript, javascript detect chinese input formClick on the following text. It will rotate 90 degree. (It only works for Internet Explorerer)

<div id=test style="POSITION: relative">this is test. Turn it 90 Degree. Can you read?</div>

javascript, javascript detect chinese input formHow to do it?

Since IE version 5.5, it is allowed to rotate text. The following javascript rewrite the property writingMode in object's style to rotate the text

<SCRIPT language=JavaScript>
document.onclick = rotate; function rotate() {
if ( == "lr-tb") { = "tb-rl";
else { = "lr-tb";


Add <div id=test style="POSITION: relative">your rotated text here </div> to your web page





Best books about ASP & ASP.Net from Amazon
JavaScript Bible, Fifth Edition (Paperback) JavaScript & DHTML Cookbook (Paperback) JavaScript: The Definitive Guide (Paperback) Beginning JavaScript Second Edition (Paperback) JavaScript: The Complete Reference, Second Edition (Paperback)


Printer Inkjet A Z lyricsLearn ChineseHome|PHP|Swing|HTML|JavaScript|ASP|JAVA|Forum|WebTip|Contact Us
Copyright © All rights reserved(new). Privacy|Copyright
designed by

Please help us cover the web site maintenance fee.
barcode scanner Thermal Printer credit card machine bar code printer