Author Topic: scrollbars  (Read 8591 times)

0 Members and 1 Guest are viewing this topic.

Offline Marianne1412

  • Newbie
  • *
  • Posts: 19
    • View Profile
scrollbars
« on: February 23, 2006, 02:21:24 AM »
Hallo, weiss jemand wie ich die scrollbars von Kategorie wählen und  Bild pro seite ändern kann.
lg Marianne

Offline honda2000

  • 4images Guru
  • *******
  • Posts: 3.263
    • View Profile
    • Wir machen Internet!
Re: scrollbars
« Reply #1 on: February 23, 2006, 09:28:56 AM »
im default-Template)
ControlPanel > Einstellungen/Templates bearbeiten > style.css
body {
  background-color: #ffffff;
  color: #000000;
  font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif;
  font-size: 11px;
  /* this attribute sets the basis for all the other scrollbar colors (Internet Explorer 5.5+ only) */
  SCROLLBAR-BASE-color:  #004c75;
  SCROLLBAR-ARROW-color: #fcdc43;
}
base-color und Scollbar-Arrow ändern

zusätzlich kann man:
>         scrollbar-darkshadow-color: #003355;
>         scrollbar-track-color: #225577;
>         scrollbar-face-color: #336688;
>         scrollbar-shadow-color: #114466;
>         scrollbar-highlight-color: #447799;
>         scrollbar-3Dlight-color: #447799;
 einbauen, Farben stell dir bitte selber ein!

Beachte: Scrollbar wird nur im IE ab Version 5 farblich dargestellt, andere Browser tun das nicht!

man kanns auch übertreiben, z.B. mit einen JavaScript, bei mouse-over ändert sich die farbe:
<script language="javascript" type="text/javascript">
<!--
function scrollfun()
{
chk = document.body.clientWidth + 2;
if(window.event.x > chk)
{
var sfc = "blue"; //scrollbar-face-color
var ssc = "red"; //scrollbar-shadow-color
var shc = "green"; //scrollbar-highlight-color
var stc = "yellow"; //scrollbar-track-color
var sac = "black"; //scrollbar-arrow-color

document.body.style.scrollbarFaceColor = sfc;
document.body.style.scrollbarShadowColor = ssc;
document.body.style.scrollbarTrackColor = stc;
document.body.style.scrollbarHighlightColor = shc;
document.body.style.scrollbarArrowColor = sac;
}
else
{
var sfc = "orange"; //scrollbar-face-color
var ssc = "red"; //scrollbar-shadow-color
var shc = "white"; //scrollbar-highlight-color
var stc = "silver"; //scrollbar-track-color
var sac = "blue"; //scrollbar-arrow-color

document.body.style.scrollbarFaceColor = sfc;
document.body.style.scrollbarShadowColor = ssc;
document.body.style.scrollbarTrackColor = stc;
document.body.style.scrollbarHighlightColor = shc;
document.body.style.scrollbarArrowColor = sac;
}
}
// -->
</script>


Das Skript spricht über das "document" Objekt die Style-Eigenschaft des Body-Tags an, und darüber die einzelnen Farben für die Elemente der Scrollbar.
Wo die Farben definiert werden, ist anhand der Kommentare leicht zu erkennen.
Das Skript muss explizit über den <body> Tag aufgerufen werden.

<body onMousemove="scrollfun()">



Offline Marianne1412

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: scrollbars
« Reply #2 on: February 23, 2006, 10:00:55 AM »
Danke dir aber die scrolbare farbe hatte ich schon eingestellt in style.css und auf die seite haben die scrollbars meine farbe nur nicht diese zwei kategorie wählen und Bilder pro seite
lg Marianne

Offline honda2000

  • 4images Guru
  • *******
  • Posts: 3.263
    • View Profile
    • Wir machen Internet!
Re: scrollbars
« Reply #3 on: February 23, 2006, 10:39:13 AM »
achso, aber wird das nicht mit
categoryselect {
    }

.dropdownmarker {
} gesteuert?

Offline Marianne1412

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: scrollbars
« Reply #4 on: February 23, 2006, 12:55:16 PM »
Da habe ich auch meine farbcolor drin aber es ändert sich nichts.
lg Marianne

Offline trez

  • Hero Member
  • *****
  • Posts: 613
    • View Profile
    • blog / photography
Re: scrollbars
« Reply #5 on: February 23, 2006, 01:00:27 PM »
geht doch viel einfacher, einfach in der header.html das hier einfuegen:

Code: [Select]
<style type="text/css">
BODY {
scrollbar-base-color:black;
scrollbar-track-color:black;
scrollbar-face-color:white;
scrollbar-highlight-color:white;
scrollbar-3d-light-color:white;
scrollbar-dark-shadow-color:white;
scrollbar-shadow-color:white;
scrollbar-arrow-color:
}
</style>

und halt dort die wunschfarben eingeben. So hast du automatisch die aenderungen auf jeder seite.

Offline Marianne1412

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: scrollbars
« Reply #6 on: February 23, 2006, 07:31:35 PM »
Danke habe das jetzt versucht in header einzubauen das ändert nur nicht die zwei scrollbars. :?
Habe jetzt mal nachgesehen in die templates die man runterladen kann da sind genau diese zwei auch nicht gefärbt.
Naja dan lasse ich es mal so.Auf jedenfall nochmals danke für die hilfe.
lg Marianne

Offline honda2000

  • 4images Guru
  • *******
  • Posts: 3.263
    • View Profile
    • Wir machen Internet!
Re: scrollbars
« Reply #7 on: February 23, 2006, 07:43:41 PM »
akso, mal was klarstellen: die beiden die du meinst, sind doch keine scrollbars, es sind über <option> gesteuerte DropDownMenues

da ist kein scrolli

du musst in der style.css sie farben vom DropDown anpassen

Offline honda2000

  • 4images Guru
  • *******
  • Posts: 3.263
    • View Profile
    • Wir machen Internet!
Re: scrollbars
« Reply #8 on: February 24, 2006, 11:05:43 PM »
sag mal, meinst du das so??? http://www.kim242-fotocommunity.de ? hab mal ein wenig rumgespielt!