Try this:
Code:
<html>
<head>
<title></title>
<script type="text/javascript" language="javascript"><!--
function ChgText(s)
{
var MyElement = document.getElementById("MyTextBox");
MyElement.value = "["+s+"][\"+s+"]";
return true;
}
//--></script>
</head>
<body>
<br><br>
<center>
<img src="my_image.gif" alt="Click Me!" onClick="ChgText('b')" /><!-- This makes the Bold click --!>
<img src="my_image.gif" alt="Click Me!" onClick="ChgText('i')" /><!-- This makes the Italics click --!>
<img src="my_image.gif" alt="Click Me!" onClick="ChgText('u')" /><!-- This makes the Underline click --!>
<br><br><br>
<input type="text" size="35" id="MyTextBox" />
</center>
</body>
</html>
Edit: Read the comments in the HTML!
Bookmarks