") > '-1' || storydiv.indexOf("
") > '-1'){ var beflen=storydiv.indexOf('
'); if (beflen == '-1'){beflen=storydiv.indexOf('
');} var befart=storydiv.substring(0,beflen)+"
"; var aftart=storydiv.substring((beflen+8),storydiv.length); } document.getElementById("storydiv").innerHTML=befart+aftart; } var storycontent = document.getElementById("storydiv").innerHTML; var firstpara = storycontent.substring(0,storycontent.toLowerCase().indexOf("")).toLowerCase(); function findptt(cnt){ zz++; if(zz == 10)return; var xxx=-1,yyy=-1; var ccnt = cnt; for(ii=0; ii "); if(yyy != -1){ taglen += yyy; stp = stp + yyy; yyy+=1; } break; taglen = taglen + tagcheck[ii].length + 3; } } if(xxx == -1 || xxx >= 150){ return; }else{ var tmp2 = ccnt.substring(0,xxx); tmp2 += ccnt.substring((yyy+xxx),ccnt.length); findptt(tmp2); } }findptt(firstpara); if(firstpara.length ")){ }else{ tmpminus = tmpcon.length - tmpcon.lastIndexOf("
No hay comentarios:
Publicar un comentario