A
AAaron123
In Sub Page_PreRender I do:
Response.Write("<script type='text/javascript'>")
Response.Write("var htmlStyle =
document.getElementsByTagName('html')[0].style;")
Response.Write("htmlStyle.scrollbarBaseColor = 'black';")
or sometimes the last line is:
Response.Write("htmlStyle.scrollbarBaseColor = 'blue;")
This works in IE. I don't think it works in any other browser, but I'm not
sure.\
In any event the sourse in the browsers looks like:
<script type='text/javascript'>var htmlStyle =
document.getElementsByTagName('html')[0].style;htmlStyle.scrollbarBaseColor
= 'black';</script>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
...
Appears to work OK but it seems unnatural for my text to be before the
DOCTYPE.
Is that OK?
Can you suggest a better way to do this - other than: not changing the
color )
Thanks
Response.Write("<script type='text/javascript'>")
Response.Write("var htmlStyle =
document.getElementsByTagName('html')[0].style;")
Response.Write("htmlStyle.scrollbarBaseColor = 'black';")
or sometimes the last line is:
Response.Write("htmlStyle.scrollbarBaseColor = 'blue;")
This works in IE. I don't think it works in any other browser, but I'm not
sure.\
In any event the sourse in the browsers looks like:
<script type='text/javascript'>var htmlStyle =
document.getElementsByTagName('html')[0].style;htmlStyle.scrollbarBaseColor
= 'black';</script>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
...
Appears to work OK but it seems unnatural for my text to be before the
DOCTYPE.
Is that OK?
Can you suggest a better way to do this - other than: not changing the
color )
Thanks