•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 456,233 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,767 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 1026 | Replies: 3
![]() |
•
•
Join Date: Nov 2007
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 0
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>
<?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>
Last edited by swtgirl52687 : Nov 8th, 2007 at 12:45 am. Reason: information was incorrect
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.
Java Programmer and Sun Systems Administrator
----------------------------------------------
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
----------------------------------------------
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
•
•
Join Date: Nov 2004
Location: Netherlands
Posts: 5,752
Reputation:
Rep Power: 19
Solved Threads: 200
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.
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.
Last edited by MidiMagic : Nov 9th, 2007 at 1:07 pm.
Daylight-saving time uses more gasoline
![]() |
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- Data recovery help needed for flashtrax portable hard drive (Storage)
- Add vertical scroll bar to a table (HTML and CSS)
- Color palette (DaniWeb Community Feedback)
- deaktop background stuck with Blue color!! (Viruses, Spyware and other Nasties)
- My HiJackThis Log (Viruses, Spyware and other Nasties)
- Scroll Bar color change (HTML and CSS)
- I dont have security tab on folders ! (Viruses, Spyware and other Nasties)
- 3-button mouse wheel in kubuntu (*nix Hardware Configuration)
- Trouble opening certain files... (Windows 9x / Me)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: Extending HTML Forms
- Next Thread: drop down quantity box to update price



Linear Mode