Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Coloured Scrollbars on an iframe?
Old 03-27-2005, 11:37 AM Coloured Scrollbars on an iframe?
Harvey's Avatar
Super Spam Talker

Posts: 901
Name: Harvey C
Location: Brighton, UK
Trades: 0
So far I've made two mistakes as a webmaster in this post:

1.) Using iFrames
2.) Wanting a coloured scrollbar.

I'm aware of the difficulties with iFrames... cross browser / screen res support etc etc etc. But unfortunately for the site I'm doing I have no choice. So, to make it look a little nicer I'd like some coloured scrollbars.

I'm also aware of the fact that coloured scrollbars only work on the latest IE!

So if I get the code:

HTML Code:
<style>
BODY{
scrollbar-arrow-color: #CD2132;
scrollbar-3dlight-color: #00FF00;
scrollbar-highlight-color: #C0C0C0;
scrollbar-face-color: #FFFF80;
scrollbar-shadow-color: #808080;
scrollbar-darkshadow-color: #408000;
scrollbar-track-color: #EAEAEA;
}
</style>
, where do I put it? I'd like the coloured scrollbar just on the iframe; not on the whole page.

And before you ask, no, they're not my chosen colours; just an example!

Thanks
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Harvey is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-27-2005, 11:48 AM Re
Harvey's Avatar
Super Spam Talker

Posts: 901
Name: Harvey C
Location: Brighton, UK
Trades: 0
Or, it'd be even better to have some arrows capable of moving the content in the iframe up or down...
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Harvey is offline
Reply With Quote
View Public Profile
 
Old 03-27-2005, 11:59 AM
Unknown.

Posts: 1,693
Trades: 0
To use only on iframes use the following..

HTML Code:
iframe {
scrollbar-arrow-color: #CD2132;
scrollbar-3dlight-color: #00FF00;
scrollbar-highlight-color: #C0C0C0;
scrollbar-face-color: #FFFF80;
scrollbar-shadow-color: #808080;
scrollbar-darkshadow-color: #408000;
scrollbar-track-color: #EAEAEA;
}
______________________________________

Or if you only want it on the one iframe.. apply a class to that one only...

HTML Code:
iframe .somename {
scrollbar-arrow-color: #CD2132;
scrollbar-3dlight-color: #00FF00;
scrollbar-highlight-color: #C0C0C0;
scrollbar-face-color: #FFFF80;
scrollbar-shadow-color: #808080;
scrollbar-darkshadow-color: #408000;
scrollbar-track-color: #EAEAEA;
}
then add class="somename" to the iframe tag
Dark-Skys99 is offline
Reply With Quote
View Public Profile
 
Old 03-27-2005, 12:27 PM Didnae work...
Harvey's Avatar
Super Spam Talker

Posts: 901
Name: Harvey C
Location: Brighton, UK
Trades: 0
Hmm, that didn't work for some reason. Maybe my browser is old or something?

Could you please check this site to see if the coloured scrollbar is visible?

Excuse the address, it's on a testing server currently.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Harvey is offline
Reply With Quote
View Public Profile
 
Old 03-27-2005, 12:43 PM
dk01's Avatar
Ultra Talker

Posts: 373
Location: Ames, IA
Trades: 0
I am fairly sure. Although could be proved wrong... that the iframe gets its properties from the body declaration. So basically an iframe and body must have the same color. Again I havn't done this for two years so I may be completely wrong.

-dk
__________________
Did I help you? If so, be nice and throw me some
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
dk01 is offline
Reply With Quote
View Public Profile
 
Old 03-27-2005, 01:00 PM
Unknown.

Posts: 1,693
Trades: 0
Oh sorry.. Im sure it worked for me like that before..

I know it works with div's for that maybe consider changing to use div's instead of iframe's.. much more friendly
Dark-Skys99 is offline
Reply With Quote
View Public Profile
 
Old 03-27-2005, 01:03 PM
Harvey's Avatar
Super Spam Talker

Posts: 901
Name: Harvey C
Location: Brighton, UK
Trades: 0
Lol thanks - but I won't be fussy!

Any idea where to put that code then? I suppose I don't mind putting it on the site.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Harvey is offline
Reply With Quote
View Public Profile
 
Old 03-27-2005, 04:24 PM colored scrollbars only work in IE 5+
Kaiman's Avatar
Extreme Talker

Posts: 237
Trades: 0
Just so you know colored scrollbars only work in IE 5+ no matter where you put the code. Just thought you should know.

Kaiman

Storm King Design
Kaiman is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Coloured Scrollbars on an iframe?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.89906 seconds with 12 queries