Hola, tengo un inconveniente que no puedo solucionar, he colocado un Foro en mi sitio y no puedo borrar los mensajes .
Mi conocimiento de javascript es muy elemental.Aclaro que "citar" y "modificar mensaje" funcionan correctamente.
Si alguien puede ayudarme aqui coloco el archivo que supongo tiene el error. Gracias
function DoConfirm(message, url) {
if(confirm(message)) location.href = url;
}
function WhichClicked(ww) {
window.document.postmodify.waction.value = ww;
}
function submitonce(theform) {
// if IE 4+ or NS 6+
if (document.all || document.getElementById) {
// hunt down "submit" and "reset"
for (i=0;i<theform.length;i++) {
var tempobj=theform.elements[i];
if(tempobj.type.toLowerCase()=="submit"||tempobj.t ype.toLowerCase()=="reset") {
//disable it
tempobj.disabled=true;
}
}
}
}
function storeCaret(text) {
if (text.createTextRange) {
text.caretPos = document.selection.createRange().duplicate();
}
}
function AddText(text) {
if (document.postmodify.message.createTextRange && document.postmodify.message.caretPos) {
var caretPos = document.postmodify.message.caretPos;
caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ?
text + ' ' : text;
}
else document.postmodify.message.value += text;
document.postmodify.message.focus(caretPos)
}
function hr() {
AddTxt="[hr]";
AddText(AddTxt);
}
function size() {
AddTxt="";
AddText(AddTxt);
}
function font() {
AddTxt="";
AddText(AddTxt);
}
function teletype() {
AddTxt="[tt][/tt]";
AddText(AddTxt);
}
function right() {
AddTxt="";
AddText(AddTxt);
}
function left() {
AddTxt="";
AddText(AddTxt);
}
function superscript() {
AddTxt="[sup][/sup]";
AddText(AddTxt);
}
function subscript() {
AddTxt="[sub][/sub]";
AddText(AddTxt);
}
function image() {
AddTxt="[img]URL[/img]";
AddText(AddTxt);
}
function ftp() {
AddTxt="[ftp][/ftp]";
AddText(AddTxt);
}
function move() {
AddTxt="[move]STUFF[/move]";
AddText(AddTxt);
}
function shadow() {
AddTxt="[shadow=red,left,300]TEXT[/shadow]";
AddText(AddTxt);
}
function glow() {
AddTxt="[glow=red,2,300]TEXT[/glow]";
AddText(AddTxt);
}
function flash() {
AddTxt="[flash=200,200]URL[/flash]";
AddText(AddTxt);
}
function pre() {
AddTxt="[pre][/pre]";
AddText(AddTxt);
}
function tcol() {
AddTxt="[td][/td]";
AddText(AddTxt);
}
function trow() {
AddTxt="[tr][/tr]";
AddText(AddTxt);
}
function table() {
AddTxt="[table][tr][td][/td][/tr][/table]";
AddText(AddTxt);
}
function strike() {
AddTxt="";
AddText(AddTxt);
}
function underline() {
AddTxt="";
AddText(AddTxt);
}
function emai1() {
AddTxt="";
AddText(AddTxt);
}
function bold() {
AddTxt="";
AddText(AddTxt);
}
function italicize() {
AddTxt="";
AddText(AddTxt);
}
function quote() {
AddTxt="";
AddText(AddTxt);
}
function center() {
AddTxt="";
AddText(AddTxt);
}
function hyperlink() {
AddTxt="";
AddText(AddTxt);
}
function showcode() {
AddTxt="";
AddText(AddTxt);
}
function list() {
AddTxt="
";
AddText(AddTxt);
}
function showcolor(color) {
AddTxt="[color="+color+"][/color]";
AddText(AddTxt);
}
function smiley() {
AddTxt=" :)";
AddText(AddTxt);
}
function wink() {
AddTxt=" ;)";
AddText(AddTxt);
}
function cheesy() {
AddTxt=" :D";
AddText(AddTxt);
}
function grin() {
AddTxt=" ;D";
AddText(AddTxt);
}
function angry() {
AddTxt=" >:(";
AddText(AddTxt);
}
function sad() {
AddTxt=" :(";
AddText(AddTxt);
}
function shocked() {
AddTxt=" :o";
AddText(AddTxt);
}
function cool() {
AddTxt=" 8)";
AddText(AddTxt);
}
function huh() {
AddTxt=" ???";
AddText(AddTxt);
}
function rolleyes() {
AddTxt=" ::)";
AddText(AddTxt);
}
function tongue() {
AddTxt=" :P";
AddText(AddTxt);
}
function lipsrsealed() {
AddTxt=" :-X";
AddText(AddTxt);
}
function embarassed() {
AddTxt=" :-[";
AddText(AddTxt);
}
function undecided() {
AddTxt=" :-/";
AddText(AddTxt);
}
function kiss() {
AddTxt=" :-*";
AddText(AddTxt);
}
function cry() {
AddTxt=" ";
AddText(AddTxt);
}