兄弟们啊,,等得急啊,,今天就要交啦!!!!!!
看看这句是什么意思咯!!
function fix4NS(instr){
var re = /STYLE=\"WIDTH\s*:\s*(\d+)px;\s*HEIGHT:\s*(\d+)px;*\s*\"/gi;
var re1 = /<A\s+href=".*?"\s*>\s*<\/A>/gi; // for taking out blank links
/* changes width and height from style definitions
to plain HTML that NS can understand.
A troublesome output -
<IMG style="WIDTH: 10px; HEIGHT: 10px" width=20 height=30>
will be changed to
<IMG width=10 height=10 width=20 height=30>
DHTML editor takes care of the extra tags.. phew!
S Babu - 11/23/2000
*/
instr=instr.replace(re1, "");
return(instr.replace(re, "width=$1 height=$2"));
}