Version 1.1.1

This commit is contained in:
Neo committed 2025-12-19 00:16:25 -08:00
1 parent aabfdc1f57
commit 7ef3d1712a
179 files changed
+57457 -44972

No files matched your search

+1 -1
View File
@@ -1 +1 @@
bbtags = new Array();␍␍//--------------------------------------------␍// Get stack size␍//--------------------------------------------␍␍function stacksize(thearray)␍{␍ for (i = 0 ; i < thearray.length; i++ )␍ {␍ if ( (thearray[i] == "") || (thearray[i] == null) || (thearray == 'undefined') )␍ {␍ return i;␍ }␍ }␍ ␍ return thearray.length;␍}␍␍//--------------------------------------------␍// Push stack␍//--------------------------------------------␍␍function pushstack(thearray, newval)␍{␍ arraysize = stacksize(thearray);␍ thearray[arraysize] = newval;␍}␍␍//--------------------------------------------␍// Pop stack␍//--------------------------------------------␍␍function popstack(thearray)␍{␍ arraysize = stacksize(thearray);␍ theval = thearray[arraysize - 1];␍ delete thearray[arraysize - 1];␍ return theval;␍}␍␍//--------------------------------------------␍// Close current open tag␍//--------------------------------------------␍␍function closelast()␍{␍␍ if (bbtags[0])␍ {␍ document.REPLIER.Post.value += "[/" + popstack(bbtags) + "]";␍ }␍ ␍ document.REPLIER.Post.focus();␍ ␍}␍␍//--------------------------------------------␍// Close all tags␍//--------------------------------------------␍␍function closeall()␍{␍ if (bbtags[0])␍ {␍ while (bbtags[0])␍ {␍ document.REPLIER.Post.value += "[/" + popstack(bbtags) + "]";␍ }␍ ␍ document.REPLIER.Post.value += " ";␍ }␍ ␍ document.REPLIER.Post.focus();␍}␍␍//--------------------------------------------␍// EMOTICONS␍//--------------------------------------------␍␍function emoticon(theSmilie)␍ {␍ if (document.REPLIER.Post.caretPos && document.REPLIER.Post.createTextRange)␍ {␍ var caretPos = document.REPLIER.Post.caretPos;␍ caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? theSmilie + ' ' : theSmilie;␍ }␍ else␍ {␍ document.REPLIER.Post.value += ' ' + theSmilie + ' ';␍ }␍ ␍ document.REPLIER.Post.focus();␍}␍␍//--------------------------------------------␍// ADD CODE␍//--------------------------------------------␍␍function add_code(NewCode)␍{␍ document.REPLIER.Post.value += NewCode;␍ document.REPLIER.Post.focus();␍ return;␍}␍␍//--------------------------------------------␍// ALTER FONT␍//--------------------------------------------␍␍function alterfont(theval, thetag)␍{␍ if (theval == 0)␍ {␍ return;␍ }␍ else␍ {␍ document.REPLIER.Post.value += "[" + thetag + "=" + theval + "]";␍ pushstack(bbtags, thetag);␍ }␍ ␍ document.REPLIER.ffont.selectedIndex = 0;␍ document.REPLIER.fsize.selectedIndex = 0;␍ document.REPLIER.fcolor.selectedIndex = 0;␍ ␍ document.REPLIER.Post.focus();␍}␍␍␍//--------------------------------------------␍// SIMPLE TAGS (such as B, I U, etc)␍//--------------------------------------------␍␍function simpletag(thetag)␍{␍ document.REPLIER.Post.value += "[" + thetag + "]";␍ ␍ pushstack(bbtags, thetag);␍ ␍ document.REPLIER.Post.focus();␍}␍␍function tag_url()␍{␍ var FoundErrors = '';␍ var enterURL = prompt(text_enter_url, "http://");␍ var enterTITLE = prompt(text_enter_url_name, "My Webpage");␍ if (!enterURL)␍ {␍ FoundErrors += " " + error_no_url;␍ }␍ if (!enterTITLE)␍ {␍ FoundErrors += " " + error_no_title;␍ }␍ if (FoundErrors)␍ {␍ alert("Error!"+FoundErrors);␍ return;␍ }␍ var ToAdd = "[URL="+enterURL+"]"+enterTITLE+"[/URL]";␍ document.REPLIER.Post.value+=ToAdd;␍ document.REPLIER.Post.focus();␍}␍␍function tag_image()␍{␍ var FoundErrors = '';␍ var enterURL = prompt(text_enter_image, "http://");␍ if (!enterURL) {␍ FoundErrors += " " + error_no_url;␍ }␍ if (FoundErrors) {␍ alert("Error!"+FoundErrors);␍ return;␍ }␍ var ToAdd = "[IMG]"+enterURL+"[/IMG]";␍ document.REPLIER.Post.value+=ToAdd;␍ document.REPLIER.Post.focus();␍}␍␍function tag_email()␍{␍ var emailAddress = prompt(text_enter_email,"");␍ if (!emailAddress) { alert(error_no_email); return; }␍ var ToAdd = "[EMAIL]"+emailAddress+"[/EMAIL]";␍ document.REPLIER.Post.value+=ToAdd;␍ document.REPLIER.Post.focus();␍}
//-------------------------------------------- // Set up our simple tag open values //-------------------------------------------- var B_open = 0; var I_open = 0; var U_open = 0; var QUOTE_open = 0; var CODE_open = 0; var SQL_open = 0; var HTML_open = 0; var bbtags = new Array(); // Set the initial radio button status based on cookies var allcookies = document.cookie; var pos = allcookies.indexOf("bbmode="); prep_mode(); function prep_mode() { if (pos != 1) { var cstart = pos + 7; var cend = allcookies.indexOf(";", cstart); if (cend == -1) { cend = allcookies.length; } cvalue = allcookies.substring(cstart, cend); if (cvalue == 'ezmode') { document.REPLIER.bbmode[0].checked = true; } else { document.REPLIER.bbmode[1].checked = true; } } else { // default to normal mode. document.REPLIER.bbmode[1].checked = true; } } function setmode(mVal) { document.cookie = "bbmode="+mVal+"; path=/; expires=Wed, 1 Jan 2020 00:00:00 GMT;"; } function get_easy_mode_state() { // Returns true if we've chosen easy mode if (document.REPLIER.bbmode[0].checked) { return true; } else { return false; } } //-------------------------------------------- // Set the help bar status //-------------------------------------------- function hstat(msg) { document.REPLIER.helpbox.value = eval( "help_" + msg ); } // Set the number of tags open box function cstat() { var c = stacksize(bbtags); if ( (c < 1) || (c == null) ) { c = 0; } if ( ! bbtags[0] ) { c = 0; } document.REPLIER.tagcount.value = c; } //-------------------------------------------- // Get stack size //-------------------------------------------- function stacksize(thearray) { for (i = 0 ; i < thearray.length; i++ ) { if ( (thearray[i] == "") || (thearray[i] == null) || (thearray == 'undefined') ) { return i; } } return thearray.length; } //-------------------------------------------- // Push stack //-------------------------------------------- function pushstack(thearray, newval) { arraysize = stacksize(thearray); thearray[arraysize] = newval; } //-------------------------------------------- // Pop stack //-------------------------------------------- function popstack(thearray) { arraysize = stacksize(thearray); theval = thearray[arraysize - 1]; delete thearray[arraysize - 1]; return theval; } //-------------------------------------------- // Close all tags //-------------------------------------------- function closeall() { if (bbtags[0]) { while (bbtags[0]) { tagRemove = popstack(bbtags) document.REPLIER.Post.value += "[/" + tagRemove + "]"; // Change the button status eval("document.REPLIER." + tagRemove + ".value = ' " + tagRemove + " '"); eval(tagRemove + "_open = 0"); } } // Ensure we got them all document.REPLIER.tagcount.value = 0; bbtags = new array(); document.REPLIER.Post.focus(); } //-------------------------------------------- // EMOTICONS //-------------------------------------------- function emoticon(theSmilie) { if (document.REPLIER.Post.caretPos && document.REPLIER.Post.createTextRange) { var caretPos = document.REPLIER.Post.caretPos; caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? theSmilie + ' ' : theSmilie; } else { document.REPLIER.Post.value += ' ' + theSmilie + ' '; } document.REPLIER.Post.focus(); } //-------------------------------------------- // ADD CODE //-------------------------------------------- function add_code(NewCode) { document.REPLIER.Post.value += NewCode; document.REPLIER.Post.focus(); return; } //-------------------------------------------- // ALTER FONT //-------------------------------------------- function alterfont(theval, thetag) { if (theval == 0) { return; } else { document.REPLIER.Post.value += "[" + thetag + "=" + theval + "] [/" + thetag + "]"; } document.REPLIER.ffont.selectedIndex = 0; document.REPLIER.fsize.selectedIndex = 0; document.REPLIER.fcolor.selectedIndex = 0; document.REPLIER.Post.focus(); } //-------------------------------------------- // SIMPLE TAGS (such as B, I U, etc) //-------------------------------------------- function simpletag(thetag) { var tagOpen = eval(thetag + "_open"); if ( get_easy_mode_state() ) { inserttext = prompt(prompt_start + "\n[" + thetag + "]xxx[/" + thetag + "]"); if ( (inserttext != null) && (inserttext != "") ) { document.REPLIER.Post.value += "[" + thetag + "]" + inserttext + "[/" + thetag + "] "; } } else { if (tagOpen == 0) { document.REPLIER.Post.value += "[" + thetag + "]"; eval(thetag + "_open = 1"); // Change the button status eval("document.REPLIER." + thetag + ".value += '*'"); pushstack(bbtags, thetag); cstat(); hstat('click_close'); } else { // Find the last occurance of the opened tag lastindex = 0; for (i = 0 ; Line truncated
BIN
View File
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 65 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 B

+1 -1
View File
@@ -1 +1 @@
<html> <head> <title>CSS Generator</title> <style type="text/css"> TABLE, TR, TD { font: 10px Verdana; color:#000000 } BODY { font: 10px Verdana; color:#000000 } INPUT, SUBMIT { font-family: Courier, Courier New, Monaco; font-size: 10pt; font-family: verdana, helvetica, sans-serif; vertical-align:middle; background-color: #CCCCCC; } </style> <script language='Javascript'> // It's crappy, it's by Matt! function do_css() { var theForm = document.css_form; var theName = theForm.NAME.value; var theFont = theForm.FONT.value; var theSize = theForm.SIZE.value; var theSizeT = theForm.SIZE_TYPE.value; var theWeight = theForm.WEIGHT.value; var theColor = theForm.COLOUR.value; var theBG = theForm.BGCOLOUR.value; var theBW = theForm.BWEIGHT.value; var theBC = theForm.BCOLOUR.value; var theSpace = theForm.SPACE.value; var theSpaceT = theForm.SPACING.value; var theLSpace = theForm.LSPACE.value; //defaults var tmp_style = "solid"; var tmp_col = "black"; var tmp_thick = "1px"; // Check for empties var msg = ""; if (theName == "") { msg = "You must enter a CSS definition name"; } // more here eventually? if (msg != "") { alert(msg); return; } var thecss = "#" + theName + " {\n"; // start the build the css if (theFont != "") { thecss += "\t font-family: " + theFont + ";\n"; } if (theSize != "") { thecss += "\t font-size: " + theSize + theSizeT + ";\n"; } if (theWeight != "normal") { thecss += "\t font-weight: " + theWeight + ";\n"; } if (theColor != "") { thecss += "\t color: " + theColor + ";\n"; } if (theBG != "") { thecss += "\t background-color: " + theBG + ";\n"; } if (theBW != "") { tmp_thick = theBW + "px"; } if (theBC != "") { tmp_col = theBC; } if (theBW != "" && theBC != "") { thecss += "\t border: " + tmp_style + " " + tmp_col + " " + tmp_thick + ";\n"; } if (theSpace != "") { thecss += "\t line-height: " + theSpace + theSpaceT + ";\n"; } if (theLSpace != "") { thecss += "\t letter-spacing: " + theLSpace + "px;\n"; } thecss += "}"; theForm.CSS.value = thecss; return; } function preview() { var theCSS = document.css_form.CSS.value; var theID = document.css_form.NAME.value; var Template = "<html><head><title>testing CSS</title><style type=\"text/css\">"+theCSS+"</style></head>\n<body bgcolor='#FFFFFF'>\n"; Template += "<span id='"+theID+"'>Cozy lummox gives smart squid who asks for job pen<br>Apparently....</span>"; Template += "\n</body></html>"; var newWin = window.open( '', 'PREVIEW', 'width=500,height=200,top=0,left=0,resizable=1,scrollbars=1,location=no,directories=no,status=no,menubar=no,toolbar=no'); newWin.document.write(Template); } <!-- //--> </script> </head> <body bgcolor='#FFFFFF'> <b><span style='font-size:12px'>Simple CSS Generator</span></b> <br><br> This is designed to generate a simple CSS definition. It does not contain all the CSS attributes, just the most commonly used ones. <br><br> <form name='css_form'> <table width='95%' align='center' border='0' bgcolor='#000000' cellspacing='1' cellpadding='0'> <tr> <td> <table width='100%' align='center' border='0' bgcolor='#EFEFEF' cellspacing='0' cellpadding='4'> <tr> <td width='40%'><b>CSS ID Definition name?</b></td> <td width='60%'><input type='text' name='NAME'></td> </tr> <tr> <td width='40%'><b>Font name (seperate many with a comma)</b></td> <td width='60%'><input type='text' name='FONT'></td> </tr> <tr> <td width='40%'><b>Font size</b></td> <td width='60%'><input type='text' name='SIZE' size='5'>&nbsp;<select name='SIZE_TYPE'><option value='px'>Pixels<option value='pt'>Points<option value='em'>em</select></td> </tr> <tr> <td width='40%'><b>Font Weight</b></td> <td width='60%'><select name='WEIGHT'><option value='normal'>normal<option value='bold'>Bold<option value='bolder'>Bolder</select></td> </tr> <tr> <td width='40%'><b>Font Colour</b></td> <td width='60%'><input type='text' name='COLOUR'></td> </tr> <tr> <td width='40%'><b>Background Colour</b></td> <td width='60%'><input type='text' name='BGCOLOUR'></td> </tr> <tr> <td width='40%'><b>Border...</b></td> <td width='60%'>Weight (in pixels or leave blank)<input type='text' name='BWEIGHT' size='5'>&nbsp;Colour<input type='text' name='BCOLOUR' size='15'></td> </tr> <tr> <td width='40%'><b>Line Spacing</b></td> <td width='60%'><input type='text' name='SPACE' size='5'>&nbsp;<select name='SPACING'><option value='px'>Pixels<option value='pt'>Points<option valuLine truncated
<html> <head> <title>CSS Generator</title> <style type="text/css"> TABLE, TR, TD { font: 10px Verdana; color:#000000 } BODY { font: 10px Verdana; color:#000000 } INPUT, SUBMIT { font-family: Courier, Courier New, Monaco; font-size: 10pt; font-family: verdana, helvetica, sans-serif; vertical-align:middle; background-color: #FFFFFF; } </style> <script language='Javascript'> // It's crappy, it's by Matt! function do_css() { var theForm = document.css_form; var theName = theForm.NAME.value; var theFont = theForm.FONT.value; var theSize = theForm.SIZE.value; var theSizeT = theForm.SIZE_TYPE.value; var theWeight = theForm.WEIGHT.value; var theColor = theForm.COLOUR.value; var theBG = theForm.BGCOLOUR.value; var theBW = theForm.BWEIGHT.value; var theBC = theForm.BCOLOUR.value; var theSpace = theForm.SPACE.value; var theSpaceT = theForm.SPACING.value; var theLSpace = theForm.LSPACE.value; //defaults var tmp_style = "solid"; var tmp_col = "black"; var tmp_thick = "1px"; // Check for empties var msg = ""; if (theName == "") { msg = "You must enter a CSS definition name"; } // more here eventually? if (msg != "") { alert(msg); return; } var thecss = "#" + theName + " {\n"; // start the build the css if (theFont != "") { thecss += "\t font-family: " + theFont + ";\n"; } if (theSize != "") { thecss += "\t font-size: " + theSize + theSizeT + ";\n"; } if (theWeight != "normal") { thecss += "\t font-weight: " + theWeight + ";\n"; } if (theColor != "") { thecss += "\t color: " + theColor + ";\n"; } if (theBG != "") { thecss += "\t background-color: " + theBG + ";\n"; } if (theBW != "") { tmp_thick = theBW + "px"; } if (theBC != "") { tmp_col = theBC; } if (theBW != "" && theBC != "") { thecss += "\t border: " + tmp_style + " " + tmp_col + " " + tmp_thick + ";\n"; } if (theSpace != "") { thecss += "\t line-height: " + theSpace + theSpaceT + ";\n"; } if (theLSpace != "") { thecss += "\t letter-spacing: " + theLSpace + "px;\n"; } thecss += "}"; theForm.CSS.value = thecss; return; } function preview() { var theCSS = document.css_form.CSS.value; var theID = document.css_form.NAME.value; var Template = "<html><head><title>testing CSS</title><style type=\"text/css\">"+theCSS+"</style></head>\n<body bgcolor='#FFFFFF'>\n"; Template += "<span id='"+theID+"'>Cozy lummox gives smart squid who asks for job pen<br>Apparently....</span>"; Template += "\n</body></html>"; var newWin = window.open( '', 'PREVIEW', 'width=500,height=200,top=0,left=0,resizable=1,scrollbars=1,location=no,directories=no,status=no,menubar=no,toolbar=no'); newWin.document.write(Template); newWin.document.close(); } <!-- //--> </script> </head> <body bgcolor='#FFFFFF'> <table width='95%' align='center' border='0' cellspacing='1' cellpadding='0'> <tr> <td> <b><span style='font-family: verdana, arial; font-size:20px; color:#4C77B6; font-weight:bold; letter-spacing:-1px'>Simple CSS Generator</span></b> <br><br> This is designed to generate a simple CSS definition. It does not contain all the CSS attributes, just the most commonly used ones. <br><br> </td> </tr> </table> <form name='css_form'> <table width='95%' border='0' align='center'> <tr> <td width='60%'> <table width='100%' align='center' border='0' bgcolor='#000000' cellspacing='1' cellpadding='0'> <tr> <td> <table width='100%' align='center' border='0' bgcolor='#EEF2F7' cellspacing='0' cellpadding='4'> <tr> <td width='40%'><b>CSS ID Definition name?</b></td> <td width='60%'><input type='text' name='NAME'></td> </tr> <tr> <td width='40%'><b>Font name (separate many with a comma)</b></td> <td width='60%'><input type='text' name='FONT'></td> </tr> <tr> <td width='40%'><b>Font size</b></td> <td width='60%'><input type='text' name='SIZE' size='5'>&nbsp;<select name='SIZE_TYPE'><option value='px'>Pixels<option value='pt'>Points<option value='em'>em</select></td> </tr> <tr> <td width='40%'><b>Font Weight</b></td> <td width='60%'><select name='WEIGHT'><option value='normal'>normal<option value='bold'>Bold<option value='bolder'>Bolder</select></td> </tr> <tr> <td width='40%'><b>Font Colour</b></td> <td width='60%'><input type='text' name='COLOUR'></td> </tr> <tr> <td width='40%'><b>Background Colour</b></td> <td width='60%'><input type='text' name='BGCOLOUR'></td> </tr> <tr> <td width='40%'><b>Border...</b></td> <td width='60%'>Weight (in pixels or leave blank)&nbsp;<input type='textLine truncated
Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB