så kører bussen :D
<html>
<head>
<title>Untitled</title>
</head>
<body>
<!-- START OF SCRIPT -->
<!-- For more scripts visit
http://www.netpedia.com -->
<HTML>
<HEAD><TITLE>Pagemaker</Title></HEAD>
<BODY BGCOLOR=#FFFFFF>
<Center><H1>Pagemaker</H1></Center>
<Script language="Javascript">
<!--
var body=0;
linkvar = 0;
function colors() {
body=1;
document.Form1.none.value=document.Form1.none.value + '<Body BGcolor=' +
document.Form1.Bgcolor.options[document.Form1.Bgcolor.selectedIndex].value + '\rTEXT=' +
document.Form1.text.options[document.Form1.text.selectedIndex].value + '\rVlink=' +
document.Form1.vlink.options[document.Form1.vlink.selectedIndex].value + '\rAlink=' +
document.Form1.alink.options[document.Form1.alink.selectedIndex].value + '\rLink=' +
document.Form1.links.options[document.Form1.links.selectedIndex].value + '>'
}
function Background(hexNumber)
{
document.bgColor=hexNumber
}
function list(type) {
num = prompt('How many list items', "");
if (num != "" || null) {document.Form1.none.value=document.Form1.none.value + '<' + type+ '>\r'}
for (i = 0; i < num; i++){
item=prompt('please type an item',"");
if (item != "" || null) {
document.Form1.none.value=document.Form1.none.value + '<LI>' + item + '\r'}
}
document.Form1.none.value=document.Form1.none.value + '</' + type + '>\r'
}
function prompt2(String , msg, tags, tags2) {
String=prompt(msg, "");
if (String != "" || null) {document.Form1.none.value=document.Form1.none.value + tags + String + tags2 + '\r'
}
}
function prompt3(String , msg, tags, tags2) {
String=prompt(msg, "");
if (String != "" || null) {document.Form1.none.value=document.Form1.none.value + tags + '"' + String + '"' + tags2 + '\r'
}
}
function addlink() {
var L=prompt('Type the complete address of the link',"");
var N=prompt('type the name of the link as you want it to be shown on the page',"");
if (L || N != "" || null) {document.Form1.none.value=document.Form1.none.value + '<A HREF="' + L + '">' + N + '</A>' + '\r'
}
}
function end() {
if (body == 0) { addtag('</HTML>') }
else { addtag('</BODY></HTML>') }
}
function writ() {
f = window.open();
f.document.write(document.Form1.none.value);
f.document.close();
}
function addtag(tag) {
document.Form1.none.value=document.Form1.none.value + tag + '\r'
}
function hr() {
var size=prompt('what size HR',"");
if (size != "" || null) {document.Form1.none.value=document.Form1.none.value + '<HR size=' + size + '>\r'
}
}
function addform() {
if (confirm("Do you want to give this form an action and a method?")) {
var action = prompt('what action', "");
var method = prompt('What Method' , "");
document.Form1.none.value = document.Form1.none.value + "<Form action=" + action + "\nMethod=" + method + ">"}
else { document.Form1.none.value = document.Form1.none.value + "<form>" }
}
function addformbutt() {
var buttname = prompt('Button Name' , "");
var buttvalue = prompt('Buttons Label' , "");
document.Form1.none.value = document.Form1.none.value + "<Input type=Button name=" + buttname +
'\rValue="' + buttvalue + '">';
}
function addformtext() {
if (confirm("Are you Sure")) {
var textname = prompt("Text name" , "");
document.Form1.none.value = document.Form1.none.value + '<Input type = Text name=' + textname + '\nvalue=""' + '>'
}
else { alert("stopping Text generation"); }
}
function addformtextarea() {
if (confirm("Are you sure?")) {
var textareaname = prompt("Textarea name" , "");
var textcols = prompt("How many Text Columns?", "");
var textrows = prompt("How many Text Rows?" , "");
document.Form1.none.value = document.Form1.none.value + '<Textarea name=' + textareaname + '\nCOLS="' + textcols + '"' + '\nRows="' + textrows + '"' + '></Textarea>'
}
else { alert("Stopping Textarea") }
}
function addformselect() {
if (confirm("Are you sure")) {
var selectname = prompt('What is the name of the select?' , "");
document.Form1.none.value = document.Form1.none.value + '<Select name=' + selectname + '>\n'
var selectobjs = prompt('How many select box items?', "");
for (s = 0; s < selectobjs; s++) {
var selitems = prompt('Please type an item' , "");
document.Form1.none.value = document.Form1.none.value + '<Option>' + selitems + '\n'
}
} else { alert("process stopped") }
document.Form1.none.value = document.Form1.none.value + '</select>'
}
function addformcheck() {
if (confirm("Are you sure")) {
var checkname = prompt('Check Box Name' , "");
document.Form1.none.value = document.Form1.none.value +
'<INPUT TYPE=checkbox name=' + checkname + '>'
}else { alert("Process stopped"); }
}
function addformradio() {
if (confirm("Are you sure")) {
var radioname = prompt('What is the name of your radio button??' , "");
document.Form1.none.value = document.Form1.none.value + '<INPUT TYPE=radio name=' + radioname + '>'
}
}
//-->
</script>
<FORM name=Form1>
<TEXTAREA Name=none COLS="72" ROWS="20"></TEXTAREA><p>
<H3>Begin by clicking this button and typing the title of your page</H3>
<Input type=button value="start" onclick="prompt2('a', 'Please give the title of your page' , '<HTML><Head><Title>', '</Title></Head>')">
<H3>Select your background text and link colors</H3> Unfortunetly you will not be able to see the text and link color change so you will have to look at the background colors to see what colors will look good for your text.<p>
Background:<SELECT NAME="Bgcolor" onChange="Background(this.form.Bgcolor.options[this.form.Bgcolor.selectedIndex].value)">
<OPTION SELECTED VALUE="#000000">Black
<OPTION VALUE="#FFFFFF">White
<OPTION VALUE="#0000FF">Blue
<OPTION VALUE="#FF0000">Red
<OPTION VALUE="#00FF00">Green
<OPTION VALUE="#FFD700">Gold
<OPTION VALUE="#696969">Darkgrey
<OPTION VALUE="#D2691C">Light Brown
<OPTION VALUE="#000080">Navy
<OPTION VALUE="#461E50">Purple
<OPTION VALUE="#FFDAB9">Peach
<OPTION VALUE="#FFFAF0">Off White
<OPTION VALUE="#FFE4B5">darker peach
<OPTION VALUE="#6614AA">Dark Purple
<OPTION VALUE="#B0C4DE">Light blue
<OPTION VALUE="#FFA07A">Salmon
<OPTION VALUE="#FF14458">kinda hot pink
<OPTION VALUE="#F5DEB3">More Off White
<OPTION VALUE="#A0522D">Sienna
<OPTION VALUE="#EEEAAA">Grean Beige
<OPTION VALUE="#FFDEAD">Brownish off white
<OPTION VALUE="#8B0000">Dark red
<OPTION VALUE="#1E90FE">Sky Blue
<OPTION VALUE="#9932144">pinkish red
<OPTION VALUE="#FF8C00">Dark orange
<OPTION VALUE="#5F9EA0">Greenich Grey
<OPTION VALUE="#00FFFF">Aqua
<OPTION VALUE="#B4EE69">Green
<OPTION VALUE="#7F80D3">Lavander
<OPTION VALUE="#FFFF00">Yellow
<OPTION VALUE="#008080">Teal
<OPTION VALUE="#FFFAFA">Barely off white
<OPTION VALUE="#BC2B2B">Brownish Red
<OPTION VALUE="#B0E01E">Ugly Green
<OPTION VALUE="#BF7AB8">Light purple
<OPTION VALUE="#69A920">Olive
<OPTION VALUE="#505050">Very Dark grey
<OPTION VALUE="#4B001E">Indiglo
<OPTION VALUE="#145C5C">Nice Green
<OPTION VALUE="#191970">midnight blue
<OPTION VALUE="#A052FF">Bright puple
<OPTION VALUE="#FFA500">Orange
<OPTION VALUE="#00bFff">Baby Blue
<OPTION VALUE="#7FFF00">Bright obnoxious green
<OPTION VALUE="#B22222">Brick
<OPTION VALUE="#DCDCDC">Light grey
<OPTION VALUE="#FF1493">Hot Pink
<OPTION VALUE="#9400D3">Pure purple
<OPTION VALUE="#0014149">kinda nice blue
<OPTION VALUE="#2BBC2B">sea green
</SELECT><BR>
Links:<SELECT NAME="links">
<OPTION SELECTED VALUE="#000000">Black
<OPTION VALUE="#FFFFFF">White
<OPTION VALUE="#0000FF">Blue
<OPTION VALUE="#FF0000">Red
<OPTION VALUE="#00FF00">Green
<OPTION VALUE="#FFD700">Gold
<OPTION VALUE="#696969">Darkgrey
<OPTION VALUE="#D2691C">Light Brown
<OPTION VALUE="#000080">Navy
<OPTION VALUE="#461E50">Purple
<OPTION VALUE="#FFDAB9">Peach
<OPTION VALUE="#FFFAF0">Off White
<OPTION VALUE="#FFE4B5">darker peach
<OPTION VALUE="#6614AA">Dark Purple
<OPTION VALUE="#B0C4DE">Light blue
<OPTION VALUE="#FFA07A">Salmon
<OPTION VALUE="#FF14458">kinda hot pink
<OPTION VALUE="#F5DEB3">More Off White
<OPTION VALUE="#A0522D">Sienna
<OPTION VALUE="#EEEAAA">Grean Beige
<OPTION VALUE="#FFDEAD">Brownish off white
<OPTION VALUE="#8B0000">Dark red
<OPTION VALUE="#1E90FE">Sky Blue
<OPTION VALUE="#9932144">pinkish red
<OPTION VALUE="#FF8C00">Dark orange
<OPTION VALUE="#5F9EA0">Greenich Grey
<OPTION VALUE="#00FFFF">Aqua
<OPTION VALUE="#B4EE69">Green
<OPTION VALUE="#7F80D3">Lavander
<OPTION VALUE="#FFFF00">Yellow
<OPTION VALUE="#008080">Teal
<OPTION VALUE="#FFFAFA">Barely off white
<OPTION VALUE="#BC2B2B">Brownish Red
<OPTION VALUE="#B0E01E">Ugly Green
<OPTION VALUE="#BF7AB8">Light purple
<OPTION VALUE="#69A920">Olive
<OPTION VALUE="#505050">Very Dark grey
<OPTION VALUE="#4B001E">Indiglo
<OPTION VALUE="#145C5C">Nice Green
<OPTION VALUE="#191970">midnight blue
<OPTION VALUE="#A052FF">Bright puple
<OPTION VALUE="#FFA500">Orange
<OPTION VALUE="#00bFff">Baby Blue
<OPTION VALUE="#7FFF00">Bright obnoxious green
<OPTION VALUE="#B22222">Brick
<OPTION VALUE="#DCDCDC">Light grey
<OPTION VALUE="#FF1493">Hot Pink
<OPTION VALUE="#9400D3">Pure purple
<OPTION VALUE="#0014149">kinda nice blue
<OPTION VALUE="#2BBC2B">sea green
</SELECT><BR>
Active links:<SELECT NAME="alink">
<OPTION SELECTED VALUE="#000000">Black
<OPTION VALUE="#FFFFFF">White
<OPTION VALUE="#0000FF">Blue
<OPTION VALUE="#FF0000">Red
<OPTION VALUE="#00FF00">Green
<OPTION VALUE="#FFD700">Gold
<OPTION VALUE="#696969">Darkgrey
<OPTION VALUE="#D2691C">Light Brown
<OPTION VALUE="#000080">Navy
<OPTION VALUE="#461E50">Purple
<OPTION VALUE="#FFDAB9">Peach
<OPTION VALUE="#FFFAF0">Off White
<OPTION VALUE="#FFE4B5">darker peach
<OPTION VALUE="#6614AA">Dark Purple
<OPTION VALUE="#B0C4DE">Light blue
<OPTION VALUE="#FFA07A">Salmon
<OPTION VALUE="#FF14458">kinda hot pink
<OPTION VALUE="#F5DEB3">More Off White
<OPTION VALUE="#A0522D">Sienna
<OPTION VALUE="#EEEAAA">Grean Beige
<OPTION VALUE="#FFDEAD">Brownish off white
<OPTION VALUE="#8B0000">Dark red
<OPTION VALUE="#1E90FE">Sky Blue
<OPTION VALUE="#9932144">pinkish red
<OPTION VALUE="#FF8C00">Dark orange
<OPTION VALUE="#5F9EA0">Greenich Grey
<OPTION VALUE="#00FFFF">Aqua
<OPTION VALUE="#B4EE69">Green
<OPTION VALUE="#7F80D3">Lavander
<OPTION VALUE="#FFFF00">Yellow
<OPTION VALUE="#008080">Teal
<OPTION VALUE="#FFFAFA">Barely off white
<OPTION VALUE="#BC2B2B">Brownish Red
<OPTION VALUE="#B0E01E">Ugly Green
<OPTION VALUE="#BF7AB8">Light purple
<OPTION VALUE="#69A920">Olive
<OPTION VALUE="#505050">Very Dark grey
<OPTION VALUE="#4B001E">Indiglo
<OPTION VALUE="#145C5C">Nice Green
<OPTION VALUE="#191970">midnight blue
<OPTION VALUE="#A052FF">Bright puple
<OPTION VALUE="#FFA500">Orange
<OPTION VALUE="#00bFff">Baby Blue
<OPTION VALUE="#7FFF00">Bright obnoxious green
<OPTION VALUE="#B22222">Brick
<OPTION VALUE="#DCDCDC">Light grey
<OPTION VALUE="#FF1493">Hot Pink
<OPTION VALUE="#9400D3">Pure purple
<OPTION VALUE="#0014149">kinda nice blue
<OPTION VALUE="#2BBC2B">sea green
</SELECT><BR>
Text:<SELECT NAME="text">
<OPTION SELECTED VALUE="#000000">Black
<OPTION VALUE="#FFFFFF">White
<OPTION VALUE="#0000FF">Blue
<OPTION VALUE="#FF0000">Red
<OPTION VALUE="#00FF00">Green
<OPTION VALUE="#FFD700">Gold
<OPTION VALUE="#696969">Darkgrey
<OPTION VALUE="#D2691C">Light Brown
<OPTION VALUE="#000080">Navy
<OPTION VALUE="#461E50">Purple
<OPTION VALUE="#FFDAB9">Peach
<OPTION VALUE="#FFFAF0">Off White
<OPTION VALUE="#FFE4B5">darker peach
<OPTION VALUE="#6614AA">Dark Purple
<OPTION VALUE="#B0C4DE">Light blue
<OPTION VALUE="#FFA07A">Salmon
<OPTION VALUE="#FF14458">kinda hot pink
<OPTION VALUE="#F5DEB3">More Off White
<OPTION VALUE="#A0522D">Sienna
<OPTION VALUE="#EEEAAA">Grean Beige
<OPTION VALUE="#FFDEAD">Brownish off white
<OPTION VALUE="#8B0000">Dark red
<OPTION VALUE="#1E90FE">Sky Blue
<OPTION VALUE="#9932144">pinkish red
<OPTION VALUE="#FF8C00">Dark orange
<OPTION VALUE="#5F9EA0">Greenich Grey
<OPTION VALUE="#00FFFF">Aqua
<OPTION VALUE="#B4EE69">Green
<OPTION VALUE="#7F80D3">Lavander
<OPTION VALUE="#FFFF00">Yellow
<OPTION VALUE="#008080">Teal
<OPTION VALUE="#FFFAFA">Barely off white
<OPTION VALUE="#BC2B2B">Brownish Red
<OPTION VALUE="#B0E01E">Ugly Green
<OPTION VALUE="#BF7AB8">Light purple
<OPTION VALUE="#69A920">Olive
<OPTION VALUE="#505050">Very Dark grey
<OPTION VALUE="#4B001E">Indiglo
<OPTION VALUE="#145C5C">Nice Green
<OPTION VALUE="#191970">midnight blue
<OPTION VALUE="#A052FF">Bright puple
<OPTION VALUE="#FFA500">Orange
<OPTION VALUE="#00bFff">Baby Blue
<OPTION VALUE="#7FFF00">Bright obnoxious green
<OPTION VALUE="#B22222">Brick
<OPTION VALUE="#DCDCDC">Light grey
<OPTION VALUE="#FF1493">Hot Pink
<OPTION VALUE="#9400D3">Pure purple
<OPTION VALUE="#0014149">kinda nice blue
<OPTION VALUE="#2BBC2B">sea green
</SELECT><BR>
Visited link:<SELECT NAME="vlink">
<OPTION SELECTED VALUE="#000000">Black
<OPTION VALUE="#FFFFFF">White
<OPTION VALUE="#0000FF">Blue
<OPTION VALUE="#FF0000">Red
<OPTION VALUE="#00FF00">Green
<OPTION VALUE="#FFD700">Gold
<OPTION VALUE="#696969">Darkgrey
<OPTION VALUE="#D2691C">Light Brown
<OPTION VALUE="#000080">Navy
<OPTION VALUE="#461E50">Purple
<OPTION VALUE="#FFDAB9">Peach
<OPTION VALUE="#FFFAF0">Off White
<OPTION VALUE="#FFE4B5">darker peach
<OPTION VALUE="#6614AA">Dark Purple
<OPTION VALUE="#B0C4DE">Light blue
<OPTION VALUE="#FFA07A">Salmon
<OPTION VALUE="#FF14458">kinda hot pink
<OPTION VALUE="#F5DEB3">More Off White
<OPTION VALUE="#A0522D">Sienna
<OPTION VALUE="#EEEAAA">Grean Beige
<OPTION VALUE="#FFDEAD">Brownish off white
<OPTION VALUE="#8B0000">Dark red
<OPTION VALUE="#1E90FE">Sky Blue
<OPTION VALUE="#9932144">pinkish red
<OPTION VALUE="#FF8C00">Dark orange
<OPTION VALUE="#5F9EA0">Greenich Grey
<OPTION VALUE="#00FFFF">Aqua
<OPTION VALUE="#B4EE69">Green
<OPTION VALUE="#7F80D3">Lavander
<OPTION VALUE="#FFFF00">Yellow
<OPTION VALUE="#008080">Teal
<OPTION VALUE="#FFFAFA">Barely off white
<OPTION VALUE="#BC2B2B">Brownish Red
<OPTION VALUE="#B0E01E">Ugly Green
<OPTION VALUE="#BF7AB8">Light purple
<OPTION VALUE="#69A920">Olive
<OPTION VALUE="#505050">Very Dark grey
<OPTION VALUE="#4B001E">Indiglo
<OPTION VALUE="#145C5C">Nice Green
<OPTION VALUE="#191970">midnight blue
<OPTION VALUE="#A052FF">Bright puple
<OPTION VALUE="#FFA500">Orange
<OPTION VALUE="#00bFff">Baby Blue
<OPTION VALUE="#7FFF00">Bright obnoxious green
<OPTION VALUE="#B22222">Brick
<OPTION VALUE="#DCDCDC">Light grey
<OPTION VALUE="#FF1493">Hot Pink
<OPTION VALUE="#9400D3">Pure purple
<OPTION VALUE="#0014149">kinda nice blue
<OPTION VALUE="#2BBC2B">sea green
</SELECT><p>
<Input type=button value="Choose current colors" onclick="colors()"><p>
<H3>Forms<H3>
<input type = button Value = "Form Begin" onclick="addform()">
<Input type = button Value = "Add Button" onclick="addformbutt()">
<Input type = button Value = "Add Text Box" onclick="addformtext()">
<input type = button Value = "Add TextArea" onclick="addformtextarea()">
<p>
<input type = button Value = "Add Check Box" onclick="addformcheck()">
<input type = button Value = "Add Select Box" onclick="addformselect()">
<input type = button Value = "Add Submit Button" onclick="addtag('<INPUT TYPE=SUBMIT VALUE=SUBMIT>')"><p>
<input type = button Value = "Add Radio Button" onclick="addformradio()">
<input type = button Value = "Add reset Button" onclick="addtag('<INPUT TYPE=RESET>')">
<input type = button Value = "End form" onclick="addtag('</form>')">
<H3>In this section You can add many things such as links and other options</H3>
<input type=button name=none2 value="Link" onclick="addlink()">
<input type=button name=none4 value="image" onclick="prompt3('Imag', 'Please type the complete address of the image', '<Img SRC=', '>' )">
<input type=button name=none5 Value="<Center>"
onclick="addtag('<Center>')"><input type=button name=none6 Value="</Center>" onclick="addtag('</Center>')">
<input type=button name=HR value="Horizontal rule" onclick="hr()">
<input type=button name=BR value="line break" onclick="addtag('<BR>')"><P>
<input type=button name=P value="paragraph break" onclick="addtag('<P>')">
<input type=button name=Pre value="pre formatted text" onclick="addtag('<Pre>pre formatted text goes here</pre>')">
<input type=button name=norm value="Normal text" onclick="prompt2('text', 'What text?', '', '')">
<input type=button name=bold value="Bold text" onclick="prompt2('bold', 'What Bold text?', '<B>', '</B>')">
<input type=button name=ital value="Italic text" onclick="prompt2('ital', 'What Italic text?', '<I>', '</I>')">
<P>
<Input type=button name=Nlist value="Numbered list" onclick="list('OL')"><input type=button name=unNlist value ="Un Numbered list" onclick="list('UL')"><input type=button name=menu value="Menu" onclick="list('Menu')"><input type=button name=Dir value="DIR list" onclick="list('DIR')">
<H3>Add diffent size text. 1 is the smallest and 6 is the biggest.</H3>
<input type=button value="<H1>" onclick="prompt2('one', 'What size one text do you want to enter', '<H1>', '</H1>')"><input type=button value="<H2>" onclick="prompt2('two', 'What size two text do you want to enter', '<H2>', '</H2>')"><input type=button value="<H3>" onclick="prompt2('three', 'What size two text would you like to enter', '<H3>', '</H3>')"><input type=button value="<H4>"onclick="prompt2('four', 'What size four text do you want to enter', '<H4>', '</H4>')"><input type=button value="<H5>" onclick="prompt2('five', 'What size five text do you want to enter', '<H5>', '</H5>')"><input type=button value="<H6>"onclick="prompt2('six', 'What size six text do you want to enter', '<H6>', '</H6>')"><p>
<Center><INPUT TYPE=button name=none3 value="end" onclick="end('</BODY></HTML>')"><P><H3>Test it</H3>
<input type="button" name=none4 value="TEST" onclick="writ()"></Center>
</FORM>
<!-- END OF SCRIPT -->
</body>
</html>