Board Logo

 Username:    Password:    Stay logged in: Welcome Guest. Please Login or Register.  Oct 21st, 2017, 8:06pm


Board Hacks
Important News
Please read the notes posted with any codes carefully, as they will usually tell you where they need to go.
Welcome to the Conforums Hacks Board!

All codes here have been tested but we accept no responsibility if these codes do not work on your board, or have an adverse effect when used in combination with other codes.

This board is read only. Any queries or requests for codes should be made on the Coding Forum

Helpful sites
Google
Dynamic Drive

The Staff
Roger
Dave
GIzzy



« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Add UBBC Buttons To Signature in profile  (Read 3560 times)
Dave
I've always wanted one of these wink
Conforums Administrator


member is offline

Avatar

Mr Fixit...


Homepage PM

Gender: Male
Posts: 17645
xx Add UBBC Buttons To Signature in profile
« Thread started on: Nov 3rd, 2005, 2:21pm »

Posted by Jaw

<script language="javascript">
/*
Created by Willie Wilson
Use freely but do not post in other locations PLEASE?
sig_add UBBC buttons to signature textarea
*/

// path to get images
// root path to find UBBC images, include an ending /

var pth = "http://207.44.144.11/boardimages/" //

if(location.href.match(/=profile/))
{
var sig = document.getElementsByTagName("TEXTAREA")["signature"].parentNode;
sig.innerHTML+="<br /><a href=javascript:sig_add('[b]text[/b]')><img src="+pth+"bold.gif border=0></a><a href=javascript:sig_add('[i]text[/i]')><img src="+pth+"italicize.gif border=0></a><a href=javascript:sig_add('[u]text[/u]')><img src="+pth+"underline.gif border=0</a><a href=javascript:sig_add('[s]text[/s]')><img src="+pth+"strike.gif border=0></a><a href=javascript:sig_add('[glow=red,2,300]TEXT [/glow]')><img src="+pth+"glow.gif border=0></a><a href=javascript:sig_add('[shadow=red,left,300]TEXT[/shadow]')><img src="+pth+"shadow.gif border=0></a><a href=javascript:sig_add('[move]text[/move]')><img src="+pth+"move.gif border=0></a><a href=javascript:sig_add('[pre]text[/pre]')><img src="+pth+"pre.gif border=0></a><a href=javascript:sig_add('[left]text[/left]')><img src="+pth+"left.gif border=0></a><a href=javascript:sig_add('[center]text[/center]')><img src="+pth+"center.gif border=0></a><a href=javascript:sig_add('[right]text[/right]')><img src="+pth+"right.gif border=0></a><a href=javascript:sig_add('[hr]')><img src="+pth+"hr.gif border=0></a><a href=javascript:sig_add('[size=2]text[/size]')><img src="+pth+"size.gif border=0></a><a href=javascript:sig_add('[font=Verdana]text[/font]')><img src="+pth+"face.gif border=0></a><br /><a href=javascript:sig_add('[url][/url]')><img src="+pth+"url.gif border=0></a><a href=javascript:sig_add('[ftp][/ftp]')><img src="+pth+"ftp.gif border=0></a><a href=javascript:sig_add('[img]url[/img]')><img src="+pth+"img.gif border=0></a><a href=javascript:sig_add('[email][/email]')><img src="+pth+"email2.gif border=0></a><a href=javascript:sig_add('[table][tr][td][/td][/tr][/table]')><img src="+pth+"table.gif border=0></a><a href=javascript:sig_add('[tr][/tr]')><img src="+pth+"tr.gif border=0></a><a href=javascript:sig_add('[td][/td]')><img src="+pth+"td.gif border=0></a><a href=javascript:sig_add('[sup][/sup]')><img src="+pth+"sup.gif border=0></a><a href=javascript:sig_add('[sub][/sub]')><img src="+pth+"sub.gif border=0></a><a href=javascript:sig_add('[tt][/tt]]')><img src="+pth+"tele.gif border=0></a><a href=javascript:sig_add('[code][/code]')><img src="+pth+"code.gif border=0></a><a href=javascript:sig_add('[quote][/quote]')><img src="+pth+"quote2.gif border=0</a><a href=javascript:sig_add('[list][*][*][*][/list]')><img src="+pth+"list.gif border=0></a>";
}

function sig_add(text) {
if (text == "cry") {
text = " :'(";
}

if(location.href.match(/=profile/)){
var caretPos = document.creator.signature.caretPos;
if (document.creator.signature.createTextRange && document.creator.signature.caretPos) {
caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text + ' ' : text;
} else {
document.creator.signature.value += text;
}
document.creator.signature.focus(caretPos)
}
}

</script>

To see a preview of this code's effects Click Here

Goes in main footer only
« Last Edit: Jul 4th, 2006, 01:04am by Garet » User IP Logged

Have you read the FAQ or checked the Hacks board before posting?
No?
Then please do so...
Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

Back To Top
Donate $6.99 for 50,000 Ad-Free Pageviews!

| |

This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls