Sarge
08-15-2001, 05:39 PM
What I want to do is when people use the IMG dropdown for the code buttons it uses this
<img src="the pic" align="left">
instead of the [ img] the pic [ /img]
Basically I want to align the pictures to the left
IS this possible?
Sarge
function vbcode(theform,vbcode,prompttext) {
// insert yyy style markup
if ((normalmode(theform)) || (vbcode=="IMG")) {
inserttext = prompt(tag_prompt+"\n["+vbcode+"]xxx[/"+vbcode+"]",prompttext);
if ((inserttext != null) && (inserttext != ""))
theform.message.value += "["+vbcode+"]"+inserttext+"[/"+vbcode+"] ";
}
else {
donotinsert = false;
for (i = 0; i < tags.length; i++) {
if (tags[i] == vbcode)
donotinsert = true;
}
if (donotinsert)
stat("already_open");
else {
theform.message.value += "["+vbcode+"]";
arraypush(tags,vbcode);
}
}
theform.message.focus();
}
<img src="the pic" align="left">
instead of the [ img] the pic [ /img]
Basically I want to align the pictures to the left
IS this possible?
Sarge
function vbcode(theform,vbcode,prompttext) {
// insert yyy style markup
if ((normalmode(theform)) || (vbcode=="IMG")) {
inserttext = prompt(tag_prompt+"\n["+vbcode+"]xxx[/"+vbcode+"]",prompttext);
if ((inserttext != null) && (inserttext != ""))
theform.message.value += "["+vbcode+"]"+inserttext+"[/"+vbcode+"] ";
}
else {
donotinsert = false;
for (i = 0; i < tags.length; i++) {
if (tags[i] == vbcode)
donotinsert = true;
}
if (donotinsert)
stat("already_open");
else {
theform.message.value += "["+vbcode+"]";
arraypush(tags,vbcode);
}
}
theform.message.focus();
}