OpalCat
Mon 18th Mar '02, 6:37am
I'm editing my vbcode_buttons template and I want to add some buttons that add special symbols. I have them in my replacements, but they are not open & close tags, they are only single tags. For example, the tag puts a © symbol. I want to set up the buttons, but if I just put them in the way the other buttons are coded (as I've done for a cite and spoiler button) then the "close tags" buttons would add, say, and that would be just silly.
How do I do this? Here is how I have the buttons so far:
<input type="button" class="bginput" value="€" title="Insert Euro Symbol" onClick="vbcode(this.form,'euro','')" name="button" >
<input type="button" class="bginput" value="£" title="Insert Pound Symbol" onClick="vbcode(this.form,'pound','')" name="button2" >
<input type="button" class="bginput" value="¥" title="Insert Yen Symbol" onClick="vbcode(this.form,'yen','')" name="button3" >
<input type="button" class="bginput" value="½" title="Insert 1/2 Symbol" onClick="vbcode(this.form,'1/2','')" name="button4" >
<input type="button" class="bginput" value="¼" title="Insert 1/4 Symbol" onClick="vbcode(this.form,'1/4','')" name="button5" >
<input type="button" class="bginput" value="¾" title="Insert 3/4 Symbol" onClick="vbcode(this.form,'3/4','')" name="button6" >
<input type="button" class="bginput" value="©" title="Insert Copyright Symbol" onClick="vbcode(this.form,'copy','')" name="button7" >
<input type="button" class="bginput" value="®" title="Insert Registered Symbol" onClick="vbcode(this.form,'reg','')" name="button8" >
<input type="button" class="bginput" value="TM" title="Insert Trademark Symbol" onClick="vbcode(this.form,'tm','')" name="button9" >
<input type="button" class="bginput" value="º" title="Insert Degree Symbol" onClick="vbcode(this.form,'deg','')" name="button10" >
<input type="button" class="bginput" value="¢" title="Insert Cent Symbol" onClick="vbcode(this.form,'cent','')" name="button11" >
I assume I need to edit some javascript somewhere to do this...?
I'm attaching a screenshot of my current vbcode buttons panel, which works perfectly:
How do I do this? Here is how I have the buttons so far:
<input type="button" class="bginput" value="€" title="Insert Euro Symbol" onClick="vbcode(this.form,'euro','')" name="button" >
<input type="button" class="bginput" value="£" title="Insert Pound Symbol" onClick="vbcode(this.form,'pound','')" name="button2" >
<input type="button" class="bginput" value="¥" title="Insert Yen Symbol" onClick="vbcode(this.form,'yen','')" name="button3" >
<input type="button" class="bginput" value="½" title="Insert 1/2 Symbol" onClick="vbcode(this.form,'1/2','')" name="button4" >
<input type="button" class="bginput" value="¼" title="Insert 1/4 Symbol" onClick="vbcode(this.form,'1/4','')" name="button5" >
<input type="button" class="bginput" value="¾" title="Insert 3/4 Symbol" onClick="vbcode(this.form,'3/4','')" name="button6" >
<input type="button" class="bginput" value="©" title="Insert Copyright Symbol" onClick="vbcode(this.form,'copy','')" name="button7" >
<input type="button" class="bginput" value="®" title="Insert Registered Symbol" onClick="vbcode(this.form,'reg','')" name="button8" >
<input type="button" class="bginput" value="TM" title="Insert Trademark Symbol" onClick="vbcode(this.form,'tm','')" name="button9" >
<input type="button" class="bginput" value="º" title="Insert Degree Symbol" onClick="vbcode(this.form,'deg','')" name="button10" >
<input type="button" class="bginput" value="¢" title="Insert Cent Symbol" onClick="vbcode(this.form,'cent','')" name="button11" >
I assume I need to edit some javascript somewhere to do this...?
I'm attaching a screenshot of my current vbcode buttons panel, which works perfectly: