![]() |
| |||||||
| IPB Skinning Help Need help customizing the looks of your forum? Post here. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 (permalink) | |
| Senior Forumer ![]() | i would like to think that i am well versed in CSS, but for the life of me i cannot get the scroll bar to ever change, i have tried alot of things, it remains the same. Quote:
What could i be doing wrong with this? | |
![]() | ||
| | |
| | #2 (permalink) |
| Banned User ![]() | css change scrollbar document.body.style.scrollbarFaceColor="colorname" document.body.style.scrollbarArrowColor="colorname" document.body.style.scrollbarTrackColor="colorname" document.body.style.scrollbarShadowColor="colorname" document.body.style.scrollbarHighlightColor="colorname" document.body.style.scrollbar3dlightColor="colorname" document.body.style.scrollbarDarkshadowColor="colorname" or You can use javascript, this one cycles colors of scrollbar. <!--Simply copy and paste it into The <Body> of Your Document.--> <script type="text/javascript"> // Visit http://rainbow.arch.scriptmania.com/scripts/ // for this script and many more var counter=0; function scroll(){ switch(counter){ case 0: { document.body.style.scrollbarFaceColor="red"; counter++; break; } case 1: { document.body.style.scrollbarFaceColor="orange"; counter++; break; } case 2: { document.body.style.scrollbarFaceColor="yellow"; counter++; break; } case 3: { document.body.style.scrollbarFaceColor="green"; counter++; break; } case 4: { document.body.style.scrollbarFaceColor="blue"; counter++; break; } case 5: { document.body.style.scrollbarFaceColor="indigo"; counter++; break; } case 6: { document.body.style.scrollbarFaceColor="violet"; counter=0; break; } } } setInterval("scroll()",1000) </script> onmouseover color change script </script></center> <script language="JavaScript1.2"> <!-- //onMouseover Scrollbar effect- by Svetlin Staev (svetlins@yahoo.com) //Submitted to Dynamic Drive //Visit http://www.dynamicdrive.com for this script /*---------------[IE 5.5 Scrollbars colorer]--------------------*/ function scrollBar(line,face,theme) { if (!line||!face) { line=null; face=null; switch(theme) // Predefined themes { case "blue": var line="#78AAFF"; var face="#EBF5FF"; break; case "orange": var line="#FBBB37"; var face="#FFF9DF"; break; case "red": var line="#FF7979"; var face="#FFE3DD"; break; case "green": var line="#00C600"; var face="#D1EED0"; break; case "neo": var line="#BC7E41"; var face="#EFE0D1"; break; } } with(document.body.style) { scrollbarDarkShadowColor=line; scrollbar3dLightColor=line; scrollbarArrowColor="black"; scrollbarBaseColor=face; scrollbarFaceColor=face; scrollbarHighlightColor=face; scrollbarShadowColor=face; scrollbarTrackColor="#F3F3F3"; } } /*------------------[Pointer coordinates catcher]---------------*/ function colorBar(){ var w = document.body.clientWidth; var h = document.body.clientHeight; var x = event.clientX; var y = event.clientY; if(x>w||y-3>h) scrollBar('#000080','#BFDFFF'); // Your colors else scrollBar(null,null,"neo"); // A predefined theme } if (document.all){ scrollBar(null,null,"neo"); document.onmousemove=colorBar; } function offscreen(){ scrollBar(null,null,"neo"); } document.onmouseout=offscreen; //--> </script> or try <style> <!-- BODY{ scrollbar-face-color:#8080FF; scrollbar-arrow-color:#FFFFFF; scrollbar-track-color:#DDDDFF; scrollbar-shadow-color:''; scrollbar-highlight-color:''; scrollbar-3dlight-color:''; scrollbar-darkshadow-Color:''; } --> </style> Last edited by Inny; 01-10-2006 at 12:16 AM. |
| | |
| | #3 (permalink) |
| Senior Forumer ![]() | it just does not work on forumer forums. I dont know if there is a special command or something like that. I even tried a generator to ensure my coding is correct http://www.csscreator.com/version1/index.php This will let me test it on sites once i put the html color codes in, which works on other sites, but the moment i put in a ipb forum, it does not show up at all. |
![]() | |
| | |
| | #4 (permalink) |
| Active Forumer ![]() | All the 6 digit hex codes need pound symbols before them, and change your scrollbar;shadow-color:FF9601; to scrollbar-shadow-color:#FF9601; I've done it many times before on IPB, and it worked... maybe forumer is different. o_O |
![]() Banned FMODS.com Member Do not give me support I do not already know... | |
| | |
| | #5 (permalink) | |
| Senior Forumer ![]() | Quote:
.scrollbar{ scrollbar-track-color:#FFE179; scrollbar-face-color:#FFAD39; scrollbar-highlight-color:#FF9601; scrollbar-base-color:#FF9601; scrollbar-darkShadow-color:#FF9601; scrollbar; shadow-color:#FF9601; scrollbar-arrow-color:#C57401; } in the css script part and then in the main html section, where the logo is located, i put <DIV class="scrollbar"> in there. It still does not work. i also tried <DIV STYLE="scrollbar-track-color:#FFE179; scrollbar-face-color:#FFAD39; scrollbar-highlight-color:#FF9601; scrollbar-base-color:#FF9601; scrollbar-darkShadow-color:#FF9601; scrollbar; shadow-color:#FF9601; scrollbar-arrow-color:#C57401;"> </div> still did not work And now the server is down ![]() | |
![]() | ||
| | |
| | #6 (permalink) |
| Senior Forumer ![]() | GRRRR, i think it will not work on ipb forum. The css generator that will do a preview of the page i want to alter, does not alter the color of the scroll bar on a ipb forum, but a phpbb forum it does...... |
![]() | |
| | |
| | #7 (permalink) |
| Active Forumer ![]() | The scrollbar code edits the scrollbars of textboxes... but it shouldn't do that, as the textboxes are a different style. o_O |
![]() Banned FMODS.com Member Do not give me support I do not already know... | |
| | |
| | #8 (permalink) |
| Active Forumer ![]() | I found out the problem... put the scroll bar css stuff into the html css part. That'll clear it up. EXAMPLE: Code: html { overflow: x-axis; scrollbar-base-color: dimgray; }
|
![]() Banned FMODS.com Member Do not give me support I do not already know... | |
| | |
| | #9 (permalink) | |
| Senior Forumer ![]() | Quote:
That finally worked, i was beating my brain in trying to figure out what i am doing wrong. | |
![]() | ||
| | |
| | #10 (permalink) |
| Active Forumer ![]() | However, on a normal webpage, the scrollbar css should go into the BODY css part. But if that doesn't work, as indicated here, just put it into the html part. :P |
![]() Banned FMODS.com Member Do not give me support I do not already know... | |
| | |
| | #11 (permalink) | |
| Senior Forumer ![]() | Quote:
| |
![]() | ||
| | |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| change my scroll bar color | rtk-killer | Graphics and Web Design (free) | 5 | 12-24-2005 07:40 PM |
| How to change color | Ashka | phpBB2 skinning Help | 8 | 10-08-2005 08:53 PM |
| how to change scroll bar color | nashtumiwa | IPB Skinning Help | 1 | 03-03-2005 10:39 PM |
| Scroll Bar Color | sphony | IPB General Support | 6 | 08-12-2004 12:02 PM |
| How Can I Change The Look Of The Scroll Bar? | Ice Cool | IPB Skinning Help | 1 | 06-24-2004 07:06 AM |