UK Webmaster Talk - Online Marketing - SEO


 

Change Scroller Colour

This is a discussion on Change Scroller Colour within the Programming Articles forums, part of the Webmaster Articles/Tutorials category; This tut will show you how to let your users choose the scrollbar colour of the browser. Only works in ...


Go Back   UK Webmaster Talk - Online Marketing - SEO > Webmaster Articles > Webmaster Articles/Tutorials > Programming Articles

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Notices

Reply

 

LinkBack Thread Tools Display Modes
Old 21-04-2005, 23:42   #1 (permalink)
Senior Member
 
Join Date: Apr 2005
Posts: 1,088
iTrader: 0 / 0%
Departed is a name known to allDeparted is a name known to all
Default Change Scroller Colour

This tut will show you how to let your users choose the scrollbar colour of the browser.

Only works in IE, Not any others!


Simply put this into the <head> of your page. Im using some bright colours, you can choose what you want.


Code:
//Change colours to what you want where it says "gold" etc.
<style>
body{
scrollbar-3dlight-color:gold;
	  scrollbar-arrow-color:yellow;
	  scrollbar-base-color:white;
	  scrollbar-darkshadow-color:black;
	  scrollbar-face-color:red;
	  scrollbar-highlight-color:blue;
	  scrollbar-shadow-color:green}

}
</style>

//DONT CHANGE ANYY OF THIS BELOW!
<script>



function changeScrollbarColor(C){
  if (document.all){
	document.body.style.scrollbarBaseColor = C
  }   
}

</script>
Just putting that in your head will look something like this.
(These are only my colours).

Hope you found my first tut helpful. Will be returning with more soon...

EDIT: Any problems or comments please post below or PM if your too shy...
__________________
-Gary
Departed is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 22-04-2005, 07:45   #2 (permalink)
Super Moderator
 
Join Date: Mar 2005
Location: Herts, UK
Posts: 1,030
iTrader: 1 / 100%
monaghan is a jewel in the rough
Default

Don't put it in the HTML file, put your script and styles in seperate files, then they can be re-used on every page and cached in the browser making your page load faster.
monaghan is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 22-04-2005, 11:14   #3 (permalink)
Senior Member
 
Join Date: Apr 2005
Posts: 1,088
iTrader: 0 / 0%
Departed is a name known to allDeparted is a name known to all
Default

Yeah, that would make more sense lol. Sorry im just used to putting them straight in... I dont have problems scrolling through loads of it and load times arnt that badly effected are they?
__________________
-Gary
Departed is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 22-04-2005, 11:23   #4 (permalink)
Super Moderator
 
Join Date: Mar 2005
Location: Herts, UK
Posts: 1,030
iTrader: 1 / 100%
monaghan is a jewel in the rough
Default

1 page load time will not make any difference, 2, 3, 4 ... However when you get lots of multiple page views and lots of visitors, then you'll notice a difference.

If you're hosting on a cheap server that's heavily loaded, then you want to reduce the volume of data your visitor has to pull down for each page.
monaghan is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 22-04-2005, 11:27   #5 (permalink)
Senior Member
 
Join Date: Apr 2005
Posts: 1,088
iTrader: 0 / 0%
Departed is a name known to allDeparted is a name known to all
Thumbs up

Yeah, i just tested it out on a couple of pages and i notice the difference slightly. Thanks.
__________________
-Gary
Departed is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 23-04-2005, 08:57   #6 (permalink)
Newbie
 
Join Date: Apr 2005
Posts: 7
iTrader: 0 / 0%
Dr John is on a distinguished road
Default

Why do you include a javascript? And what is the value of the C that you are passing to the script? It doesn't seem to be defined anywhere.
And I'm assuming it is a javascript as it doesn't define the language either.

I just use the style settings and it works for me.
Dr John is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 23-04-2005, 09:59   #7 (permalink)
Moderator
 
Join Date: Jan 2005
Location: post is there >>
Posts: 1,586
iTrader: 0 / 0%
robertall is just really nice
Send a message via AIM to robertall Send a message via MSN to robertall
Default

That is quite a cleaver idea to be honest, it will save loads of hassle of waiting for the page to load.
__________________
Free .org domain - Click for details!
Do not pm asking for things. My inbox is full. Add me to MSN!
robertall is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
change, colour, scroller

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
text box colour Lewis Website Design Forum 11 27-10-2005 00:09
Can't change logo Lewis Graphics Forum 6 17-06-2005 17:19
colour chart Lewis General Webmaster Discussion 2 21-05-2005 11:53
Change Scroller Colour Departed Comments / Suggestions 2 29-04-2005 16:06


All times are GMT +1. The time now is 17:28.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
UK Webmaster Forum © WebmasterTalk.co.uk | Design by Forbairt

Ad Management by RedTyger

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41