Hi I am currently taking an XHTML class and we are now dealing w/ JavaScript and for some reason I am having the worst time trying to set this assignment to where the scrollbar color is what I set it to. I am using internet explorer 7; for some reason the professor was worried that was the problem but im not sure. Here is what I have.

<?xml version="1.0" encoding="utf-8"?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Apply 9-1</title>
<type="text/JavaScript">
<!--Hide from old browsers
function scrollColor() }
document.body.style.scrollbarFaceColor="#990000"
document.body.style.scrollbarFaceColor="#aa0000"
}
</script>


.italic {
font-style: italic;


function laodBooths(myForms) {
var menuSelect=myForm.Menu.selectedIndex
var menuUrl=myForm.Menu.options[menuSelect].value+".htm"
window.location=menuUrl
}


hr {color:#990000; height:5}


-->
</style>
</head>
<script>
<body>
</script>
<table border="0" cellpadding="0" cellspacing="0" width="705">
<tr>
<td height="176">
<img src="apply9-1-banner.jpg" alt="film fest banner"


width="748" height="134" />
</td>
</tr>
<tr>
<td>
<h3><strong>Highlights of the 2008 California Arts Film


Festival Season</strong> </h3>          <ul>
<li class="italic">See How You Like it</li>
<li class="italic">Twelve Nights</li>
<li class="italic"> The Shrew </li>
<li class="italic">Juliet </li>
<li class="italic">A Long Night's Dream</li>
<li><span class="italic">Too Much to Do</span> </li>
</ul></td>
</tr>
<tr>
<td width="700" height="13"><hr align="center" width="700"


/></td>
<td width="1"></td>
</tr>
<tr>
<td width="700"><p style="font-size:14px; color:maroon"><b>The


California Arts Film Festival is the home
of the original film festival, first held on the West Coast


in 1934. The festival was started as
a Depression-era festival to present new films created by


independent movie producers and directors hoping to be noticed by


the big Hollywood studios.</b></p>
<p style="font-size:14px; color:maroon"><b>With the growth


of independent filmmakers over the years, the festival attracts


more than 100 original films, motion picture musical scores, and


screenplays. Many of today's leading actors and directors were


discovered through their films being shown at this annual event.


</b></p>
<p style="font-size:14px; color:maroon"><b>The festival


workshops' discussion sessions are a goldmine of information,


ideas, tips, and general brainstorming about what makes great


films. New partnerships and next year's films often find their


start over a cup coffee or glass of wine while participants are


discussing one of the films presented that day. To be where the


excitement is and to be part of filmmaking's future, you must be at


the Californial Arts Film Festival 2008. </b></p>
<p style="font-size:14px; color:blue">For more information


write to John Warner in care of
the California Arts Film Festival.</p></td>
</tr>
</table>


</body>
</html>

Edited 3 Years Ago by happygeek: fixed formatting

Next time, post to the javascript forum (not the Java forum, there is a difference), please. I have already asked the admins to move this thread.

The scrollbar does not belong to you (as a web programmer).

It belongs to the owner of the computer that is doing the browsing.

The only standard way to change its color is in the Display menu in Control Panel. This must be done on the user's computer, not in the script.

Internet Explorer has a nonstandard way (what you were doing) to change the scrollbar color, but it doesn't work in other browsers.

This article has been dead for over six months. Start a new discussion instead.