MyBB Community Forums

Full Version: MySelect
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
MySelect:
This is a pretty cool MyCode that I made, that allows you to select everything inside the text area. It will copy everything inside the textarea if you are using IE, other wise it just highlights it.


Title:
Select


Short Description:
Auto Highlights/Copy to clipboard text

Regular Expression:
\[select\](.*?)\[/select\]

Replacement:
<html>
<title>CodeAve.com (JavaScript: Select All)</title>
<body bgcolor="#FFFFFF">

<center>
<form name="select_all">

<textarea name="text_area" rows="10" cols="80">
$1
</textarea>
<input type="button" value="Highlight Text" onClick="javascript:this.form.text_area.focus();this.form.text_area.select();" "ClipBoard();">

</form>
</center>

</body>
</html>

How to use:
[select]YOUR TEXT HERE[/select]


Preview:

[Image: 9tn30o.png]
Very cool.
Thanks.