<html><head><script language="JScript">function startDoc() {myeditor.document.designMode="On";}function performEditorFunction(mycommand) {myeditor.focus();myeditor.document.execCommand(mycommand,false);}function myMouseOverAction(actionButtonRef){actionButtonRef.style.borderColor = '#999999';actionButtonRef.style.backgroundColor = '#FFFF00';actionButtonRef.style.cursor = 'hand';}function myMouseOutAction(actionButtonRef) { actionButtonRef.style.borderColor = '#999999'; actionButtonRef.style.backgroundColor = '#FFFFFF'; } function myMouseDownAction(actionButtonRef) { actionButtonRef.style.backgroundColor = '#00FF00'; } function myMouseUpAction(actionButtonRef) { actionButtonRef.style.backgroundColor = '#FFFFFF'; }</script><style>.actionButton{border: 1px solid;border-color: #000000;}</style><title>Sample Code for Rich Text Editor</title></head><body onload="startDoc();"><iframe width="600" height="300" id="myeditor"></iframe><IMG src="bold.gif" class="actionButton" onClick="performEditorFunction('Bold');" onMouseOver="myMouseOverAction(this)" onMouseOut="myMouseOutAction(this)" onMouseDown="myMouseDownAction(this)" onMouseUp="myMouseUpAction(this)"></body></html>
<IMG src="bold.gif" class="actionButton" onClick="performEditorFunction('Bold');" onMouseOver="myMouseOverAction(this)" onMouseOut="myMouseOutAction(this)" onMouseDown="myMouseDownAction(this)" onMouseUp="myMouseUpAction(this)">