
By adding @DQUOTES and things like: html + "" to every change you make to the script..

Code: Select all
procedure.s web2Page1()
;html
html.s + "<html>" + #CR$
html.s + "<head>" + #CR$
html.s + "<title></title>" + #CR$
html + "<style type = 'text/css'>" + #CR$
html + " body{font-family:system; font-size:18px; font-weight:800}" + #CR$
html + "</style>" + #CR$ + #CR$
html + "<script language=" + #DQUOTE$ +"vbscript" + #DQUOTE$ +">" + #CR$
html + "dim visible :visible = " + #DQUOTE$ +"" + #DQUOTE$ +"" + #CR$
html + "dim hidden :hidden = " + #DQUOTE$ +"none" + #DQUOTE$ +"" + #CR$
html + "dim headerBg :headerBg = " + #DQUOTE$ +"white" + #DQUOTE$ +"" + #CR$
html + "dim headerFg :headerFg = " + #DQUOTE$ +"red" + #DQUOTE$ +"" + #CR$
html + "// HEADER1 EVENTS" + #CR$
html + "sub header1_onClick()" + #CR$
html + " if content1.style.display = visible then" + #CR$
html + " //close it" + #CR$
html + " content1.style.display = hidden" + #CR$
html + " else" + #CR$
html + " //open it" + #CR$
html + " content1.style.display = visible" + #CR$
html + " //close the other headers" + #CR$
html + " content2.style.display = hidden" + #CR$
html + " end if" + #CR$
html + "end sub" + #CR$
html + "sub header1_onMouseOver()" + #CR$
html + " header1.style.cursor = " + #DQUOTE$ +"hand" + #DQUOTE$ +"" + #CR$
html + " header1.style.backgroundcolor = headerBg" + #CR$
html + " header1.style.color = headerFg" + #CR$
html + "end sub" + #CR$
html + "sub header1_onMouseOut()" + #CR$
html + " header1.style.cursor = " + #DQUOTE$ +"arrow" + #DQUOTE$ +"" + #CR$
html + " header1.style.backgroundcolor = " + #DQUOTE$ +"white" + #DQUOTE$ +"" + #CR$
html + " header1.style.color = " + #DQUOTE$ +"black" + #DQUOTE$ +"" + #CR$
html + "end sub" + #CR$
html + "// HEADER2 EVENTS" + #CR$
html + "sub header2_onClick()" + #CR$
html + " if content2.style.display = visible then" + #CR$
html + " //close it" + #CR$
html + " content2.style.display = hidden" + #CR$
html + " else" + #CR$
html + " //open it" + #CR$
html + " content2.style.display = visible" + #CR$
html + " //close the other headers" + #CR$
html + " content1.style.display = hidden" + #CR$
html + " end if" + #CR$
html + "end sub" + #CR$
html + "sub header2_onMouseOver()" + #CR$
html + " header2.style.cursor = " + #DQUOTE$ +"hand" + #DQUOTE$ +"" + #CR$
html + " header2.style.backgroundcolor = headerBg" + #CR$
html + " header2.style.color = headerFg" + #CR$
html + "end sub" + #CR$
html + "sub header2_onMouseOut()" + #CR$
html + " header2.style.cursor = " + #DQUOTE$ +"arrow" + #DQUOTE$ +"" + #CR$
html + " header2.style.backgroundcolor = " + #DQUOTE$ +"white" + #DQUOTE$ +"" + #CR$
html + " header2.style.color = " + #DQUOTE$ +"black" + #DQUOTE$ +"" + #CR$
html + "end sub" + #CR$
html + "</script>" + #CR$
html + "</head>" + #CR$
html + "<body bgcolor = '#FAFAFA' scroll = 'no'>" + #CR$
html + "<span id = 'header1'>ITEM 1</span>" + #CR$
html + " <span id = 'content1' style = " + #DQUOTE$ +"display:none; background-color:'#fefefe'" + #DQUOTE$ +">" + #CR$
html + " <br><a href = '#'>1.1</a>" + #CR$
html + " <br><a href = '#'>1.2</a>" + #CR$
html + " <br><a href = '#'>1.3</a>" + #CR$
html + " <br><a href = '#'>1.4</a>" + #CR$
html + "</span>" + #CR$
html + "<br>" + #CR$
html + "<span id = 'header2'>ITEM 2</span>" + #CR$
html + " <span id = 'content2' style = " + #DQUOTE$ +"display:none; background-color:'#fefefe'" + #DQUOTE$ +">" + #CR$
html + " <br><a href = '#'>2.1</a>" + #CR$
html + " <br><a href = '#'>2.2</a>" + #CR$
html + " <br><a href = '#'>2.3</a>" + #CR$
html + " <br><a href = '#'>2.4</a>" + #CR$
html + "</span>" + #CR$
html + "</body>" + #CR$
html + "</html>" + #CR$
procedureReturn html
endProcedure
So.. my wish is that the html could be inserted this way instead:

Code: Select all
procedure.s web2Page1()
EnableHTML
<html>
<head>
<title></title>
<script language="vbscript">
dim visible :visible = ""
dim hidden :hidden = "none"
dim headerBg :headerBg = "white"
dim headerFg :headerFg = "red"
// HEADER1 EVENTS
sub header1_onClick()
if content1.style.display = visible then
//close it
content1.style.display = hidden
else
//open it
content1.style.display = visible
//close the other headers
content2.style.display = hidden
end if
end sub
sub header1_onMouseOver()
header1.style.cursor = "hand"
header1.style.backgroundcolor = headerBg
header1.style.color = headerFg
end sub
sub header1_onMouseOut()
header1.style.cursor = "arrow"
header1.style.backgroundcolor = "white"
header1.style.color = "black"
end sub
// HEADER2 EVENTS
sub header2_onClick()
if content2.style.display = visible then
//close it
content2.style.display = hidden
else
//open it
content2.style.display = visible
//close the other headers
content1.style.display = hidden
end if
end sub
sub header2_onMouseOver()
header2.style.cursor = "hand"
header2.style.backgroundcolor = headerBg
header2.style.color = headerFg
end sub
sub header2_onMouseOut()
header2.style.cursor = "arrow"
header2.style.backgroundcolor = "white"
header2.style.color = "black"
end sub
</script>
</head>
<body>
<span id = "header1">THIS IS HEADER 1</span>
<span id = "content1" style = "display:none; background-color:'#fefefe'">
<br><a href = '#'>This is a line of text</a>
<br><a href = '#'>This is a line of text</a>
<br><a href = '#'>This is a line of text</a>
<br><a href = '#'>This is a line of text</a>
</span>
<br>
<span id = "header2">THIS IS HEADER 2</span>
<span id = "content2" style = "display:none; background-color:'#fefefe'">
<br><a href = '#'>This is a line of text</a>
<br><a href = '#'>This is a line of text</a>
<br><a href = '#'>This is a line of text</a>
<br><a href = '#'>This is a line of text</a>
</span>
</body>
</html>
disableHTML
procedureReturn html
endProcedure
