No two ways about it -- this is a great piece of work. It's an HTML Editor that allows for a great deal of flexibility. Thanks for letting me display it, Tom. Make sure when you grab the script that you include the Copyright -- it's only fair (and legal).
Please note: This script is being offered in simple text format. When you click to Grab the Script, the text should display. Internet Explorer and AOL users may get a blank page or the script may run and produce the effect. If this happens, choose SAVE AS from the FILE menu and save the blank or compiled page.
You can send me your documents and I will put them on the Net for you!
AND NOW THE REMOTE:
JavaScript Goodies
" + nl
if (ind == 3)
return "" + nl
if (ind == 4)
return "" + nl
if (ind == 5)
if (mode == 0)
return "" + nl
else {
var prompt1 = prompt("Enter background color:","white")
prompt1 = (prompt1) ? " BGCOLOR=\"" + prompt1 + "\"" : ""
var prompt2 = prompt("Enter background image:","")
prompt2 = (prompt2) ? " BACKGROUND=\"" + prompt2 + "\"" : ""
return "" + nl
}
if (ind == 6)
return "" + nl
if (ind == 7)
if (mode == 0)
return "" + nl
else {
var prompt1 = prompt("Enter title:", "My Document")
prompt1 = (prompt1) ? prompt1 : ""
return "" + prompt1 + "" + nl
}
if (ind == 8)
if (mode == 0)
return "" + nl
else {
var prompt1 = prompt("Enter the size for the default font on this page:", "")
prompt1 = (prompt1) ? " SIZE=\"" + prompt1 + "\"" : ""
var prompt2 = prompt("Enter the default color for the font on this page:", "")
prompt2 = (prompt2) ? " COLOR=\"" + prompt2 + "\"" : ""
var prompt3 = prompt("Enter the default type of font for this page:", "")
prompt3 = (prompt3) ? " FACE=\"" + prompt3 + "\"" : ""
return ""
}
}
function font(mode) {
var ind = document.forms[0].select3.selectedIndex
if (ind == 0)
return ""
if (ind == 1)
if (mode == 0)
return "" + nl
else {
var prompt1 = prompt("Enter header level:", "1")
prompt1 = (prompt1) ? prompt1 : ""
var prompt2 = prompt("Enter header text:", "")
prompt2 = (prompt2) ? prompt2 : ""
return "" + prompt2 + "" + nl
}
if (ind == 2)
if (mode == 0)
return "" + nl
else {
var prompt1 = prompt("Enter font size:", "")
prompt1 = (prompt1) ? " SIZE=" + prompt1 : ""
var prompt2 = prompt("Enter font color:", "")
prompt2 = (prompt2) ? " COLOR=\"" + prompt2 + "\"" : ""
var prompt3 = prompt("Enter font text:", "")
prompt3 = (prompt3) ? prompt3 : ""
return "" + prompt3 + nl
}
if (ind == 3)
return ""
if (ind == 4)
if (mode == 0)
return "" + nl
else {
var prompt1 = prompt("Enter bold text:", "")
prompt1 = (prompt1) ? prompt1 : ""
return "" + prompt1 + "" + nl
}
if (ind == 5)
if (mode == 0)
return "" + nl
else {
var prompt1 = prompt("Enter blinking text:", "")
prompt1 = (prompt1) ? prompt1 : ""
return "" + nl
}
if (ind == 6)
if (mode == 0)
return "" + nl
else {
var prompt1 = prompt("Enter underlined text:","")
prompt1 = (prompt1) ? prompt1 : ""
return "" + prompt1 + "" + nl
}
if (ind == 7)
if (mode == 0)
return "" + nl
else {
var prompt1 = prompt("Enter PRE text:", "")
prompt1 = (prompt1) ? prompt1 : ""
return "