iframe customisation

Discussion in 'Programming' started by CH1LL1, Aug 5, 2005.

to remove all ads.
  1. CH1LL1

    CH1LL1 New Member

    Messages:
    20
    Hey

    Is there a way to customise the look of scroll bars and arrows when using inline frames? Needs to be compatible with the top browsers.

    Thanks in advance :)
     
  2. StephanieCordray

    StephanieCordray New Member

    Messages:
    1,017
    I've never done it before but i would think it would be as simple as changing the look of the browser window's scrollbar considering that an iframe is basically a page within a page.
     
  3. CH1LL1

    CH1LL1 New Member

    Messages:
    20
    ah, can anyone tell me how to do this please?
     
  4. StephanieCordray

    StephanieCordray New Member

    Messages:
    1,017
    <style
    type="text/css"> body { scrollbar-arrow-color: ffffff; scrollbar-base-color:ffffff;
    scrollbar-dark-shadow-color: ffffff; scrollbar-track-color: ffffff; scrollbar-face-color:
    ffffff; scrollbar-shadow-color: ffffff; scrollbar-highlight-color: ffffff; scrollbar-3d-light-color:
    ffffff; } </style>

    change the colors to suit your site and there you have it.
     
  5. CH1LL1

    CH1LL1 New Member

    Messages:
    20
    thanks, but can you make it so the bar dissapears, so you just have an arrow at the top and bottom? Or does this involve different coding? Two nice graphical arrows would be sweet.

    :)
     
  6. StephanieCordray

    StephanieCordray New Member

    Messages:
    1,017
    do a web search for scrollbar scripts, I'm sure you'll find something, :)
     
  7. Chroder

    Chroder New Member

    Messages:
    194
    scrollbar CSS only works in IE AFAIK (unless other browsers have started to support this ludicrous non-standard, but Mozilla doesn't).

    What you want to use is Javascript. Check out the scrollers section on DynamicDrive. They have a few examples.
     
  8. CH1LL1

    CH1LL1 New Member

    Messages:
    20
    Thanks, plenty of tasty Java on that site. I think that's the way to go.
     

Share This Page