
Oct 18th, 2004, 03:54
|
|
Most Reputable Member
|
|
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,608
Thanks: 0
Thanked 4 Times in 3 Posts
|
|
- Code: Select all
<head>
<SCRIPT language=JavaScript1.2>
function hiliteToBold(txtArea){
txtAreaName = txtArea.name;
txtRange = document.all[txtArea].createTextRange();
txtContainer = txtRange.parentElement().name;
objRange = document.selection.createRange();
hiliteTxt = objRange.text;
toBoldTxt = "" + hiliteTxt + "";
if(hiliteTxt != ""){
objRange.text = toBoldTxt;
}
}
</SCRIPT>
<head>
- Code: Select all
<body>
<IMG: set your image button here..>
<TEXTAREA name=txtMainText rows=15 cols=30></TEXTAREA>
|