Něco navíc v zeleném?A proč ne...Lopuch.cz
@include *lapiduch.cz
<body bgcolor="#bfccce" ONLOAD="set();"> <form name=Line method="POST" action="RoomLine.jsp"> <table border="0" cellspacing="0" cellpading="0"><tr> <td> <nobr><b> <font face="Arial" size="2" color="000000">user</b> <input type="text" name="AddText" size="40" maxlength="150"> <input type="checkbox" name="Lock" value="true"> <input type="submit" value="OK" style="background-color: rgb(191,204,206)"> </nobr></font></td></tr></table> </form> </body>
var p = str.split("AAA");
var pred = [];
var po = [];
for (var i = 0; i < p.length; i++) {
var cast = p[i];
if (po.length > 0 || cast.indexOf("BBB") > -1) {
po.push(cast);
} else {
pred.push(cast);
}
if (po.length > 0) {
n = pred.join("AAA") + "CCC" + po.join("AAA");