
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
- YOUR TEXT AREA [Fill this area with the text for the box]
- 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 ].
- 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 ].
- Width: 200px[width of your code box]
- height: 35px[height of your code box]
- 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 .
- Inside the text area .Please , convert these symbols if you are going to put in it.
- > : >
- < :<

0 comments:
Post a Comment