PDA

View Full Version : Code in the box with select all



billyvision
01-04-2006, 02:53 PM
Script: i am looking for it!

Where in Dynamic drive: In all the JS pages of dynamic drive!

Description:
ok i have some codes that i wish to give out to other members on my website.
Kindly tell me how to make the box (containing the code) and the highlight fuction as used by dynamic drive itself..

a demo is given below!
thanks


http://img.photobucket.com/albums/v158/billyvision/box.jpg

Twey
01-04-2006, 05:28 PM
All the DD script does is call the element's select() method.

<a href="javascript:void(0);" onclick="document.getElementById('codebox').select();">Select All</a>
<textarea id="codebox">
Your code goes here
</textarea>