Friday, September 25, 2009

How to display code box with "onclick" select text and "mouse actions"


code box

You can use <textarea> code for the code box its is easy .
Just write your text between the <textarea></textarea> code .


Let see some more actions with this hack:-

CODE BOX WITH "ONCLICK SELECT" and MOUSE ACTIONS


  • Some details to customize 
  1. YOUR TEXT AREA  [Fill this area with the text for the box]
  2.  onmouseout="this.style.borderColor='blue'" [put the colour you want in the "code box border" mouse pointer is out of the code box . Here it is in "blue" colour ].
  3.  onmouseover="this.style.borderColor='green'" [put the colour you want in the "code box border" mouse pointer is inside of the code box . Here it is in "green" colour ].
  4. Width: 200px[width of your code box]
  5. height: 35px[height of your code box]
  6. readonly="readonly" [readonly will protect your text inside the box for editing  .If you want to edit the text inside it just remove it from the code . ] It will look like this :-


  • NOTE SOME IMPORTANT TIPS BEFORE YOU USE IT .
  1.  Inside the text area .Please , convert these symbols if you are going to put in it.
  • &gt; : >
  • &lt;  :<
    2. If your blog is enable to convert new lines into <br> then don't leave lines in the text area .



ENJOY !

0 comments:

Post a Comment

 

About

Site Info

Text

Daltbos Blogging Garage Copyright © 2009 Community is Designed by Free Blogger Template