PDA

View Full Version : Center js Button on New Reply/Thread


Platinumgamer
04-13-2002, 08:45 PM
I have altered a hack with permission but I can't get it to work yet. Can someone help me with this? It will be much appreciated.

Vbcode.JS:


function center(theform) {

centertext = prompt("center_text_prompt");



theform.message.value += ""+centertext+" ";

else

theform.message.value += "+centertext+ ";

}

theform.message.focus();






VBCodeLanguage:


center_text_prompt = "Enter the text you would like to center.";
center_text = "Center your text.";



VB_Buttons Template:


<input type="button" class="bginput" value=" Center " onclick="center(this.form)" onmouseover="stat('center')" title="Center (alt+c)" accesskey="c">

Platinumgamer
04-14-2002, 12:24 AM
Anyone?