View Single Post
05-26-2011, 04:32 PM
#2
scrappy is offline scrappy
scrappy's Avatar
Status: Member
Join date: Aug 2006
Location: Newcastle upon Tyne
Expertise:
Software:
 
Posts: 172
iTrader: 1 / 100%
 

scrappy is on a distinguished road

Send a message via MSN to scrappy

  Old

I finally found something.

I use this script:

HTML Code:
<SCRIPT>
flag=0
 
function addTex(let)
{
var story = document.tex.texarea.value
if(let=="BACK"){
story=story.substring(0, story.length-1)
document.tex.texarea.value=story
document.tex.texarea.focus()
**
 
else if(flag==1)
{
story+=let.toUpperCase()
flag=0
document.tex.texarea.value=story
document.tex.texarea.focus()
**
else
{
story+=let
flag=0
document.tex.texarea.value=story
document.tex.texarea.focus()
**
**
function capIt()
{
flag=1
**
</SCRIPT>
As well as this one:

HTML Code:
<a href="javascript:addTex(' -   Test Text 2  \n')" CLASS="B10">      Test Text 2  </a>
This adds the text into a form:

HTML Code:
<TEXTAREA NAME="texarea" COLS="50" ROWS="10"onDblClick="document.getElementById('texarea').innerText=''" oncontextmenu="javascript:HighlightAll('tex.texarea')" VALUE="Clipboard"></TEXTAREA></td>
</tr>
<tr>
<td ALIGN="Center" Height="30"><INPUT NAME="copy" TYPE="button" onClick="javascript:HighlightAll('tex.texarea')" VALUE="Clipboard"></td>
</tr>
</table>
</FORM>

This seems to function correctly. A little bit of styling and I should be ok.

Only problem is, is that when I put more than 1 onto a page, they don't work.