|
Post by tunescool on Nov 23, 2011 21:29:40 GMT -8
where does it go i tried this, i dont ever remember that being anywhere
art = '<select onchange="do_ubbc(this);">'; var sel_end = '</select> '; var ubbc_str = sel_start + web_ubbc + sel_end + sel_start + text_ubbc + sel_end + sel_start + format_ubbc + sel_end + sel_start + custom_ubbc + sel_end; var ubbc_str2= sel_start + font_ubbc + sel_end + sel_start + size_ubbc + sel_end + sel_start + tables_ubbc + sel_end;
document.postForm.color.parentNode.innerHTML = ubbc_str + '<select onChange="aC(this.options[this.selectedIndex].value);this.selectedIndex=0;">' + document.postForm.color.innerHTML + sel_end+ ubbc_str2 + '</br><a href="http://celebnook.proboards.com/index.cgi?board=ass&action=display&thread=5475&page=1"><b>UBBC Tutorial</b></a>; }
|
|
|
Post by Wormopolis on Nov 24, 2011 20:08:29 GMT -8
post the whole code for me. now you lost the variable "sel_start". I dont know how you keep erasing lines.
|
|
|
Post by tunescool on Nov 24, 2011 23:22:34 GMT -8
<script type="text/javascript"> <!-- /* UBBC Drop Down Menus - Ross */ if(document.postForm) { function do_ubbc(obj) { eval(obj.options[obj.selectedIndex].value) obj.selectedIndex = 0; } var web_ubbc = '<option>Web</option>'; web_ubbc += '<option value=\'add("[url=http://url.com]Text[/url]")\'>URL</option>'; web_ubbc += '<option value=\'add("[img]", "[/img]")\'>Image</option>'; web_ubbc += '<option value=\'add("[youtube]","[/youtube]")\'>YouTube</option>';
var text_ubbc = '<option>Text</option>'; text_ubbc += '<option value=\'add("[b]", "[/b]")\'>Bold</option>'; text_ubbc += '<option value=\'add("[i]", "[/i]")\'>Italic</option>'; text_ubbc += '<option value=\'add("[u]", "[/u]")\'>Underline</option>'; text_ubbc += '<option value=\'add("[s]", "[/s]")\'>Strike Thru</option>'; text_ubbc += '<option value=\'add("[move]", "[/move]")\'>Marquee</option>';
var format_ubbc = '<option>Format</option>'; format_ubbc += '<option value=\'add("[hr]")\'>HR Line</option>'; format_ubbc += '<option value=\'add("[pre]", "[/pre]")\'>Preformatted Text</option>'; format_ubbc += '<option value=\'add("[left]", "[/left]")\'>Align Left</option>'; format_ubbc += '<option value=\'add("[center]", "[/center]")\'>Align Center</option>'; format_ubbc += '<option value=\'add("[right]", "[/right]")\'>Align Right</option>'; format_ubbc += '<option value=\'add("[sup]", "[/sup]")\'>Superscript</option>'; format_ubbc += '<option value=\'add("[sub]", "[/sub]")\'>Subscript</option>'; format_ubbc += '<option value=\'add("[ul]\\n[li]\\n[/li][li]\\n[/li][li]\\n", "[/li][/ul]")\'>List</option>'; format_ubbc += '<option value=\'add("[tt]", "[/tt]")\'>Teletype</option>'; format_ubbc += '<option value=\'add("[spoiler=Spoiler Title]", "[/spoiler]")\'>Spoiler</option>'; format_ubbc += '<option value=\'add("• [url=http://www.url.com]Link Name[/url]\\n• [url=http://www.url.com]Link Name[/url]\\n• [url=http://www.url.com]Link Name[/url]\\n• [url=http://www.url.com]Link Name[/url]\\n• [url=http://www.url.com]Link Name[/url]")\'>Archives</option>'; format_ubbc += '<option value=\'add("[ul]\\n[li]\\n[/li][li]\\n[/li][li]\\n[/li][/ul]\\n[ul]\\n[li]\\n[/li][li]\\n[/li][li]\\n[/li][/ul]\\n[ul]\\n[li]\\n[/li][li]\\n[/li][li]\\n[/li][/ul]\\n[ul]\\n[li]\\n[/li][li]\\n[/li][li]\\n[/li][/ul]\\n[ul]\\n[li]\\n[/li][li]\\n[/li][li]\\n", "[/li][/ul]")\'>Archives List</option>'; format_ubbc += '<option value=\'add("• [url=http://www.url.com]Link Name[/url]")\'>One Archive</option>';
var custom_ubbc = '<option>Custom</option>'; custom_ubbc += '<option value=\'add("<font color="FF03DD">"</font><font color="AA1D97">,</font><font color="553851"> </font><font color="0052B">"</font>")\'>ColorSmear</option>'; custom_ubbc += '<option value=\'add("[b][i]", "[/i][/b]")\'>Bold Italic</option>'; custom_ubbc += '<option value=\'add("[size=3][b][i][color=808080]", "[/color][/i][/b][/size]")\'>Titles</option>';
var font_ubbc = '<option>Font</option>'; font_ubbc += '<option value=\'add("[font=Verdana]", "[/font]")\'>Verdana</option>'; font_ubbc += '<option value=\'add("[font=Times]", "[/font]")\'>Times</option>'; font_ubbc += '<option value=\'add("[font=Times New Roman]", "[/font]")\'>Times New Roman</option>'; font_ubbc += '<option value=\'add("[font=Comic Sans MS]", "[/font]")\'>Comic Sans MS</option>'; font_ubbc += '<option value=\'add("[font=Arial]", "[/font]")\'>Arial</option>'; font_ubbc += '<option value=\'add("[font=Geneva]", "[/font]")\'>Geneva</option>'; font_ubbc += '<option value=\'add("[font=Helvetica]", "[/font]")\'>Helvetica</option>'; font_ubbc += '<option value=\'add("[font=Lucida Grande]", "[/font]")\'>Lucida Grande</option>'; font_ubbc += '<option value=\'add("[font=Arial Rounded MT Bold]", "[/font]")\'>Arial Rounded MT Bold</option>';
var size_ubbc = '<option>Size</option>'; size_ubbc += '<option value=\'add("[size=1]", "[/size]")\'>1</option>'; size_ubbc += '<option value=\'add("[size=2]", "[/size]")\'>2</option>'; size_ubbc += '<option value=\'add("[size=3]", "[/size]")\'>3</option>'; size_ubbc += '<option value=\'add("[size=4]", "[/size]")\'>4</option>'; size_ubbc += '<option value=\'add("[size=5]", "[/size]")\'>5</option>'; size_ubbc += '<option value=\'add("[size=6]", "[/size]")\'>6</option>'; size_ubbc += '<option value=\'add("[size=7]", "[/size]")\'>7</option>'; size_ubbc += '<option value=\'add("[size=8]", "[/size]")\'>8</option>'; size_ubbc += '<option value=\'add("[size=9]", "[/size]")\'>9</option>'; size_ubbc += '<option value=\'add("[size=10]", "[/size]")\'>10</option>';
var tables_ubbc = '<option>Tables</option>'; tables_ubbc += '<option value=\'add("[table][tr][td]", "[/td][/tr][/table]")\'>Table</option>'; tables_ubbc += '<option value=\'add("[tr]", "[/tr]")\'>Row</option>'; tables_ubbc += '<option value=\'add("[td]", "[/td]")\'>Column</option>';
var sel_start = '<select onchange="do_ubbc(this);">'; var sel_end = '</select> '; var ubbc_str = sel_start + web_ubbc + sel_end + sel_start + text_ubbc + sel_end + sel_start + format_ubbc + sel_end + sel_start + custom_ubbc + sel_end + sel_start + font_ubbc + sel_end + sel_start + size_ubbc + sel_end + sel_start + tables_ubbc + sel_end; document.postForm.color.parentNode.innerHTML = ubbc_str + '<select onChange="aC(this.options[this.selectedIndex].value);this.selectedIndex=0;">' + document.postForm.color.innerHTML + sel_end+ ubbc_str2 + '</br><a href="http://celebnook.proboards.com/index.cgi?board=ass&action=display&thread=5475&page=1"><b>UBBC Tutorial</b></a>; } //--> </script>
|
|
|
Post by Wormopolis on Nov 25, 2011 9:56:54 GMT -8
all THAT code is missing is the ubbc_str2 line. put that line back in under the line
var ubbc_str = sel_start + web_ubbc + sel_end + sel_start + text_ubbc + sel_end + sel_start + format_ubbc + sel_end + sel_start + custom_ubbc + sel_end + sel_start + font_ubbc + sel_end + sel_start + size_ubbc + sel_end + sel_start + tables_ubbc + sel_end;
|
|
|
Post by tunescool on Nov 25, 2011 10:40:03 GMT -8
im obviously not getting it, can you just put it in and repost the whole code. i tried it again and it didnt work
|
|
|
Post by Wormopolis on Nov 25, 2011 16:05:23 GMT -8
<script type="text/javascript"> <!-- /* UBBC Drop Down Menus - Ross */ if(document.postForm) { function do_ubbc(obj) { eval(obj.options[obj.selectedIndex].value) obj.selectedIndex = 0; } var web_ubbc = '<option>Web</option>'; web_ubbc += '<option value=\'add("[url=http://url.com]Text[/url]")\'>URL</option>'; web_ubbc += '<option value=\'add("[img]", "[/img]")\'>Image</option>'; web_ubbc += '<option value=\'add("[youtube]","[/youtube]")\'>YouTube</option>';
var text_ubbc = '<option>Text</option>'; text_ubbc += '<option value=\'add("[b]", "[/b]")\'>Bold</option>'; text_ubbc += '<option value=\'add("[i]", "[/i]")\'>Italic</option>'; text_ubbc += '<option value=\'add("[u]", "[/u]")\'>Underline</option>'; text_ubbc += '<option value=\'add("[s]", "[/s]")\'>Strike Thru</option>'; text_ubbc += '<option value=\'add("[move]", "[/move]")\'>Marquee</option>';
var format_ubbc = '<option>Format</option>'; format_ubbc += '<option value=\'add("[hr]")\'>HR Line</option>'; format_ubbc += '<option value=\'add("[pre]", "[/pre]")\'>Preformatted Text</option>'; format_ubbc += '<option value=\'add("[left]", "[/left]")\'>Align Left</option>'; format_ubbc += '<option value=\'add("[center]", "[/center]")\'>Align Center</option>'; format_ubbc += '<option value=\'add("[right]", "[/right]")\'>Align Right</option>'; format_ubbc += '<option value=\'add("[sup]", "[/sup]")\'>Superscript</option>'; format_ubbc += '<option value=\'add("[sub]", "[/sub]")\'>Subscript</option>'; format_ubbc += '<option value=\'add("[ul]\\n[li]\\n[/li][li]\\n[/li][li]\\n", "[/li][/ul]")\'>List</option>'; format_ubbc += '<option value=\'add("[tt]", "[/tt]")\'>Teletype</option>'; format_ubbc += '<option value=\'add("[spoiler=Spoiler Title]", "[/spoiler]")\'>Spoiler</option>'; format_ubbc += '<option value=\'add("• [url=http://www.url.com]Link Name[/url]\\n• [url=http://www.url.com]Link Name[/url]\\n• [url=http://www.url.com]Link Name[/url]\\n• [url=http://www.url.com]Link Name[/url]\\n• [url=http://www.url.com]Link Name[/url]")\'>Archives</option>'; format_ubbc += '<option value=\'add("[ul]\\n[li]\\n[/li][li]\\n[/li][li]\\n[/li][/ul]\\n[ul]\\n[li]\\n[/li][li]\\n[/li][li]\\n[/li][/ul]\\n[ul]\\n[li]\\n[/li][li]\\n[/li][li]\\n[/li][/ul]\\n[ul]\\n[li]\\n[/li][li]\\n[/li][li]\\n[/li][/ul]\\n[ul]\\n[li]\\n[/li][li]\\n[/li][li]\\n", "[/li][/ul]")\'>Archives List</option>'; format_ubbc += '<option value=\'add("• [url=http://www.url.com]Link Name[/url]")\'>One Archive</option>';
var custom_ubbc = '<option>Custom</option>'; custom_ubbc += '<option value=\'add("<font color="FF03DD">"</font><font color="AA1D97">,</font><font color="553851"> </font><font color="0052B">"</font>")\'>ColorSmear</option>'; custom_ubbc += '<option value=\'add("[b][i]", "[/i][/b]")\'>Bold Italic</option>'; custom_ubbc += '<option value=\'add("[size=3][b][i][color=808080]", "[/color][/i][/b][/size]")\'>Titles</option>';
var font_ubbc = '<option>Font</option>'; font_ubbc += '<option value=\'add("[font=Verdana]", "[/font]")\'>Verdana</option>'; font_ubbc += '<option value=\'add("[font=Times]", "[/font]")\'>Times</option>'; font_ubbc += '<option value=\'add("[font=Times New Roman]", "[/font]")\'>Times New Roman</option>'; font_ubbc += '<option value=\'add("[font=Comic Sans MS]", "[/font]")\'>Comic Sans MS</option>'; font_ubbc += '<option value=\'add("[font=Arial]", "[/font]")\'>Arial</option>'; font_ubbc += '<option value=\'add("[font=Geneva]", "[/font]")\'>Geneva</option>'; font_ubbc += '<option value=\'add("[font=Helvetica]", "[/font]")\'>Helvetica</option>'; font_ubbc += '<option value=\'add("[font=Lucida Grande]", "[/font]")\'>Lucida Grande</option>'; font_ubbc += '<option value=\'add("[font=Arial Rounded MT Bold]", "[/font]")\'>Arial Rounded MT Bold</option>';
var size_ubbc = '<option>Size</option>'; size_ubbc += '<option value=\'add("[size=1]", "[/size]")\'>1</option>'; size_ubbc += '<option value=\'add("[size=2]", "[/size]")\'>2</option>'; size_ubbc += '<option value=\'add("[size=3]", "[/size]")\'>3</option>'; size_ubbc += '<option value=\'add("[size=4]", "[/size]")\'>4</option>'; size_ubbc += '<option value=\'add("[size=5]", "[/size]")\'>5</option>'; size_ubbc += '<option value=\'add("[size=6]", "[/size]")\'>6</option>'; size_ubbc += '<option value=\'add("[size=7]", "[/size]")\'>7</option>'; size_ubbc += '<option value=\'add("[size=8]", "[/size]")\'>8</option>'; size_ubbc += '<option value=\'add("[size=9]", "[/size]")\'>9</option>'; size_ubbc += '<option value=\'add("[size=10]", "[/size]")\'>10</option>';
var tables_ubbc = '<option>Tables</option>'; tables_ubbc += '<option value=\'add("[table][tr][td]", "[/td][/tr][/table]")\'>Table</option>'; tables_ubbc += '<option value=\'add("[tr]", "[/tr]")\'>Row</option>'; tables_ubbc += '<option value=\'add("[td]", "[/td]")\'>Column</option>';
var sel_start = '<select onchange="do_ubbc(this);">'; var sel_end = '</select> '; var ubbc_str = sel_start + web_ubbc + sel_end + sel_start + text_ubbc + sel_end + sel_start + format_ubbc + sel_end + sel_start + custom_ubbc + sel_end + sel_start + font_ubbc + sel_end + sel_start + size_ubbc + sel_end + sel_start + tables_ubbc + sel_end; var ubbc_str2= sel_start + font_ubbc + sel_end + sel_start + size_ubbc + sel_end + sel_start + tables_ubbc + sel_end; document.postForm.color.parentNode.innerHTML = ubbc_str + '<select onChange="aC(this.options[this.selectedIndex].value);this.selectedIndex=0;">' + document.postForm.color.innerHTML + sel_end+ ubbc_str2 + '</br><a href="http://celebnook.proboards.com/index.cgi?board=ass&action=display&thread=5475&page=1"><b>UBBC Tutorial</b></a>'; } //--> </script>
|
|
|
Post by tunescool on Nov 25, 2011 17:15:05 GMT -8
now i have two font, size, and table drop downs?
|
|
|
Post by Wormopolis on Nov 25, 2011 21:54:54 GMT -8
I remember at one point you wanted color dropdown in a different place. that is what the ubbc_str2 was added for, so it could be broken up.
do you want color at the end again?
|
|
|
Post by tunescool on Nov 25, 2011 22:00:05 GMT -8
color should be at the end, its after tables. but with the ubbc str 2 you added theres 3 drop downs i dont need, that were never there before and that i never put in the code before
|
|
|
Post by Wormopolis on Nov 25, 2011 23:45:01 GMT -8
var sel_start = '<select onchange="do_ubbc(this);">'; var sel_end = '</select> '; var ubbc_str = sel_start + web_ubbc + sel_end + sel_start + text_ubbc + sel_end + sel_start + format_ubbc + sel_end + sel_start + custom_ubbc + sel_end + sel_start + font_ubbc + sel_end + sel_start + size_ubbc + sel_end + sel_start + tables_ubbc + sel_end; document.postForm.color.parentNode.innerHTML = ubbc_str + '<select onChange="aC(this.options[this.selectedIndex].value);this.selectedIndex=0;">' + document.postForm.color.innerHTML + sel_end + '</br><a href="http://celebnook.proboards.com/index.cgi?board=ass&action=display&thread=5475&page=1"><b>UBBC Tutorial</b></a>';
|
|
|
Post by tunescool on Nov 26, 2011 2:21:40 GMT -8
alrite everythings fine except tables isnt at the end, i tried copying what you did on the first page of this thread but i couldnt get it to work
|
|
|
Post by Wormopolis on Nov 26, 2011 2:26:12 GMT -8
right.. color is at the end. that is the way you wanted it?
|
|
|
Post by tunescool on Nov 26, 2011 3:05:05 GMT -8
if it was implied in 2 post agos i didnt mean it, i never really looked at where tables was i just saw the extra 3 drop downs. but yea id like tables at the end again
|
|
|
Post by Wormopolis on Nov 26, 2011 10:51:15 GMT -8
var sel_start = '<select onchange="do_ubbc(this);">'; var sel_end = '</select> '; var ubbc_str = sel_start + web_ubbc + sel_end + sel_start + text_ubbc + sel_end + sel_start + format_ubbc + sel_end + sel_start + custom_ubbc + sel_end + sel_start + font_ubbc + sel_end + sel_start + size_ubbc + sel_end; var ubbc_str2= sel_start + tables_ubbc + sel_end; document.postForm.color.parentNode.innerHTML = ubbc_str + '<select onChange="aC(this.options[this.selectedIndex].value);this.selectedIndex=0;">' + document.postForm.color.innerHTML + sel_end+ ubbc_str2 + '</br><a href="http://celebnook.proboards.com/index.cgi?board=ass&action=display&thread=5475&page=1"><b>UBBC Tutorial</b></a>';
|
|
|
Post by tunescool on Nov 26, 2011 11:05:59 GMT -8
sorry for all the trouble with this, taking the video drop down threw it all off. thanks wormer
|
|