User Name Password Register
DaniWeb IT Discussion Community
All
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
Reply
Join Date: Nov 2007
Posts: 1
Reputation: swtgirl52687 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
swtgirl52687 swtgirl52687 is offline Offline
Newbie Poster

Question Trouble with changng the scroll color

  #1  
Nov 8th, 2007
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>
Last edited by swtgirl52687 : Nov 8th, 2007 at 12:45 am. Reason: information was incorrect
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Feb 2006
Posts: 1,509
Reputation: masijade is a glorious beacon of light masijade is a glorious beacon of light masijade is a glorious beacon of light masijade is a glorious beacon of light masijade is a glorious beacon of light 
Rep Power: 10
Solved Threads: 136
masijade's Avatar
masijade masijade is offline Offline
Posting Virtuoso

Re: Trouble with changng the scroll color

  #2  
Nov 8th, 2007
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
Reply With Quote  
Join Date: Nov 2004
Location: Netherlands
Posts: 5,752
Reputation: jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough 
Rep Power: 19
Solved Threads: 200
Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: Trouble with changng the scroll color

  #3  
Nov 8th, 2007
and don't send PMs asking for help to people who say they don't want them.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote  
Join Date: Jan 2007
Posts: 2,604
Reputation: MidiMagic is on a distinguished road 
Rep Power: 7
Solved Threads: 119
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Posting Maven

Re: Trouble with changng the scroll color

  #4  
Nov 9th, 2007
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.
Last edited by MidiMagic : Nov 9th, 2007 at 1:07 pm.
Daylight-saving time uses more gasoline
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb JavaScript / DHTML / AJAX Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum

All times are GMT -4. The time now is 5:05 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC