danke

/edit
Mir fällt grad auf...
da sind zwar zwei Kästchen aber auch ein "Eingabekasten". Welchen Code könnte man raus nehmen um dieses Feld wegzumachen?
Code: Alles auswählen
function setMessageSelect(){
if(parent.info.mSelectSet){return;}
if(!parent.info.document){
window.setTimeout(setMessageSelect,500);
return;
}
pid=parent.info.document;
parent.info.sel=pid.createElement('span');
parent.info.sel.innerHTML='<select name="messageSelect1"><option value=""></option><option value="/f ">/f</option><option value="/comment ">/comment</option><option value="/pm ">/pm</option><option value="@ ">@</option><option value="<font color=#ff0000>">rote Schrift</option></select>';
pid.eingabe.insertBefore(parent.info.sel, pid.eingabe.message);
parent.info.sel2=pid.createElement('span');
parent.info.sel2.innerHTML='<select name="messageSelect2"><option value=""></option><option value="wasauchimmer">wasauchimmer</option></select><input type="text" name="messageSelect3" class="input">';
pid.eingabe.insertBefore(parent.info.sel, pid.eingabe.message.nextSibling);
parent.info.mSelect=function(evt){
evt=evt?evt:window.event;
with(parent.info.document.eingabe){
message.value=messageSelect1.value+message.value+messageSelect2.value+messageSelect3.value;
parent.setTimeout("with(parent.info.document.eingabe){if(message.value!=''){submit(); message.value=''; message.focus();}}", 100);
}
};
with(parent.info.document){
check=0;
if(typeof addEventListener != "undefined"){
check=1;
eingabe.addEventListener("submit", parent.info.mSelect, false);
}else if(attachEvent){
check=1;
eingabe.attachEvent("onsubmit", parent.info.mSelect);
}
if(check)parent.info.submitForm=function(a){void(a)};
}
parent.info.mSelectSet = true;
}
setTimeout(setMessageSelect,100);
Code: Alles auswählen
function setMessageSelect(){
if(parent.info.mSelectSet){return;}
if(!parent.info.document){
window.setTimeout(setMessageSelect,500);
return;
}
pid=parent.info.document;
parent.info.sel=pid.createElement('select');
parent.info.sel.innerHTML='<option value=""></option><option value="/f ">/f</option><option value="/comment ">/comment</option><option value="/pm ">/pm</option><option value="@ ">@</option><option value="<font color=#ff0000>">rote Schrift</option>';
parent.info.sel.name='messageSelect';
pid.eingabe.insertBefore(parent.info.sel, pid.eingabe.message);
parent.info.mSelect=function(evt){
evt=evt?evt:window.event;
with(parent.info.document.eingabe){
if(message.value!='' && !message.value.match(/^\//))
message.value=messageSelect.value+message.value;
parent.setTimeout("with(info.document.eingabe){if(message.value!=''){submit(); message.value=''; message.focus();}}", 100);
}
};
with(parent.info.document){
check=0;
if(typeof addEventListener != "undefined"){
check=1;
eingabe.addEventListener("submit", parent.info.mSelect, false);
}else if(attachEvent){
check=1;
eingabe.attachEvent("onsubmit", parent.info.mSelect);
}
if(check)parent.info.submitForm=function(a){void(a)};
}
parent.info.mSelectSet = true;
}
setTimeout(setMessageSelect,100);
Mitglieder in diesem Forum: 0 Mitglieder und 2 Gäste