Log In · Register

 
iframe scrollbars, help....arg!
anonymous_killer
post Oct 11 2004, 01:10 PM
Post #1


Senior Member
***

Group: Member
Posts: 44
Joined: Sep 2004
Member No: 52,448



I was wondering if there was a way to define the scrollbar colors on an iframe!
I tries defining them in the css using like:

body {
scrollbar-highlight-color: #000;
}

and etc... and i even tried

iframe {
scrollbar-highlight-color: #000;
}


I tried looking everywhere for how to do this but i cant find it anywhere!!!
Someone help!
 
 
Start new topic
Replies
xquizit
post Nov 4 2004, 12:21 PM
Post #2


wanderlust personified.
*******

Group: Official Designer
Posts: 7,515
Joined: Jan 2004
Member No: 797



Hmmm... I don't believe there is a way to do that. There are alternative ways to edit the iframe scrollbars, as previous posters have pointed out.

I assume your pages are using includes since your site is written in php and I assume that each of your pages are using a common header .php file. And that within this header file, you've either linked a stylesheet or have your stylesheet code in there. Well either way, just edit the stylesheet to change the the scrollbar colors within the "body" attribute. Because all your pages are linked to the same stylesheet through their common header file, the changes will be made across all pages and there you go, problem solved. And you only had to edit one file.

One question tho, since you've coded your site in PHP, why WOULD you want to use iframes if you could just dynamically include the content? That would be more efficient than using iframes, which from what I've seen, you've already done. The World Wide Web Consortium (W3C) discourages the use of iframes anyway as because of issues with browser compatability, accessibility and other things that would just be inconvenient for certain internet users. I'm sure you could care less, but it's just a tip.


-edit-

I was just browsing your site and now I see what you're doing with the iframes. I would suggest you dynamically include the different content but place it within a div, setting the scrollbar to auto and applying a width and a height as you did with the iframe. Then all you would have to do is edit the scrollbar colors of that div. It would look exactly like what you have now, but would be more efficient and load quicker than if you used iframes.

I guess that would just mean additional work, since you've already acheived the look that you wanted. This is just for future reference.
 

Posts in this topic
anonymous_killer   iframe scrollbars   Oct 11 2004, 01:10 PM
sweetxsimplicity   Try putting CODE<!-- begin code provided ...   Oct 11 2004, 01:58 PM
anonymous_killer   ill give it a whirl. Thanks!   Oct 11 2004, 02:16 PM
synkro   overflow: auto. with overflow hidden the scroll...   Oct 11 2004, 02:35 PM
razbus   QUOTE(synkro @ Oct 11 2004, 2:35 PM)overflow:...   Oct 12 2004, 08:17 AM
[2]Nekked   give your iframe an id. <iframe id="name...   Oct 12 2004, 10:00 AM
razbus   nope. didn't work. Thanks anyways trish.   Oct 12 2004, 02:25 PM
[2]Nekked   same thing but try iframe.idnamehere or u can ju...   Oct 13 2004, 08:13 AM
synkro   <iframe src="http://www.blah.com/blah.html...   Oct 13 2004, 09:01 AM
[2]Nekked   QUOTE(synkro @ Oct 13 2004, 10:01 AM)<ifra...   Oct 13 2004, 09:59 AM
DesperateXMeasures   Gah. I did this once. I can't remember how. ...   Oct 13 2004, 10:42 AM
razbus   Well, i just defined the scrollbars in all of the ...   Oct 13 2004, 10:59 AM
synkro   QUOTE([2)Nekked,Oct 13 2004, 6:59 AM] i think...   Oct 13 2004, 07:20 PM
razbus   QUOTE(synkro @ Oct 13 2004, 7:20 PM)oh, in th...   Oct 14 2004, 11:57 AM
synkro   um the "other posts" had "iframe.id...   Oct 14 2004, 02:03 PM
razbus   = ::me ignoring you::   Oct 14 2004, 02:13 PM
hlall   err are you using chatterbox? and trying to change...   Oct 21 2004, 01:44 AM
razbus   QUOTE(hlall @ Oct 21 2004, 1:44 AM)edit:/ oh ...   Oct 27 2004, 02:35 PM
hlall   ive got a question.. are you using php? are you u...   Oct 27 2004, 02:54 PM
x_angawhomps   QUOTE(razbus @ Oct 27 2004, 12:35 PM)yeah, th...   Oct 27 2004, 06:26 PM
hlall   woops.. me=boy and geek yeah thats exactly what i...   Oct 27 2004, 09:47 PM
razbus   are you people dense or something? That is exactly...   Oct 28 2004, 08:29 AM
hlall   QUOTE(razbus @ Oct 28 2004, 8:29 AM)are you p...   Nov 3 2004, 04:25 PM
[2]Nekked   why dont you just define the body scrollbar colors...   Nov 3 2004, 05:05 PM
razbus   QUOTE([2)Nekked,Nov 3 2004, 5:05 PM] why dont...   Nov 4 2004, 09:17 AM
[2]Nekked   slice the images.   Nov 4 2004, 12:06 PM
xquizit   Hmmm... I don't believe there is a way to do t...   Nov 4 2004, 12:21 PM
[2]Nekked   QUOTE(xquizit @ Nov 4 2004, 1:21 PM)Hmmm... I...   Nov 4 2004, 12:24 PM
razbus   yeah, i guess ill do the image slicing thing. Than...   Nov 4 2004, 12:36 PM
liquidplasma6   hey, thats cool, thanks hlall for that php thing, ...   Nov 7 2004, 12:53 AM
hlall   uh.. your welcome... QUOTEThanks everybody. You gu...   Nov 7 2004, 01:00 AM


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: