iframe scrollbars, help....arg! |
![]() ![]() |
iframe scrollbars, help....arg! |
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! |
|
|
|
Oct 11 2004, 01:58 PM
Post
#2
|
|
![]() hi, my name is brianna! =] ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Member Posts: 5,764 Joined: Jun 2004 Member No: 22,114 |
Try putting
CODE <!-- begin code provided by createblog.com --> <style type="text/css"> .iframe { scrollbar-face-color:#FEEECC; scrollbar-arrow-color:black; scrollbar-track-color:#FEEECC; scrollbar-shadow-color:#FEEECC; scrollbar-highlight-color:#FEEECC; scrollbar-3dlight-color:#FEEECC; scrollbar-darkshadow-Color:#FEEECC; background: transparent; overflow: hidden; border:none; margin:0; } </style> <!-- end code provided by createblog.com --> Then in your iframe tag put <iframe class="iframe"></iframe> I think that's how you do it, but I'm not really sure. =/ |
|
|
|
Oct 11 2004, 02:16 PM
Post
#3
|
|
![]() Senior Member ![]() ![]() ![]() Group: Member Posts: 44 Joined: Sep 2004 Member No: 52,448 |
ill give it a whirl. Thanks!
|
|
|
|
Oct 11 2004, 02:35 PM
Post
#4
|
|
|
‹(. .)› ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Member Posts: 2,367 Joined: Jun 2004 Member No: 20,089 |
overflow: auto. with overflow hidden the scrollbar won't show.
|
|
|
|
Oct 12 2004, 08:17 AM
Post
#5
|
|
![]() I just "got it like that". ![]() ![]() ![]() ![]() Group: Member Posts: 247 Joined: Aug 2004 Member No: 41,238 |
QUOTE(synkro @ Oct 11 2004, 2:35 PM) overflow: auto. with overflow hidden the scrollbar won't show. Um.... yeah. I kinda want the scrollbar to show. That's why im asking how to do it. And sorry simplicity, that didnt work. |
|
|
|
| *[2]Nekked* |
Oct 12 2004, 10:00 AM
Post
#6
|
|
Guest |
give your iframe an id.
<iframe id="name" src="djfsi" etc> then in your css .name{stylehere} maybe.. i dunno.. |
|
|
|
Oct 12 2004, 02:25 PM
Post
#7
|
|
![]() I just "got it like that". ![]() ![]() ![]() ![]() Group: Member Posts: 247 Joined: Aug 2004 Member No: 41,238 |
nope. didn't work. Thanks anyways trish.
|
|
|
|
| *[2]Nekked* |
Oct 13 2004, 08:13 AM
Post
#8
|
|
Guest |
same thing but try iframe.idnamehere
or u can just make a style sheet for each page inside your iframe and set the scrollbars that way. |
|
|
|
Oct 13 2004, 09:01 AM
Post
#9
|
|
|
‹(. .)› ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Member Posts: 2,367 Joined: Jun 2004 Member No: 20,089 |
<iframe src="http://www.blah.com/blah.html" width="#" height="#"></iframe>
the scrollbars by default WILL SHOW... then for the css in "http://www.blah.com/blah.html" you can just adjust the style for the scrollbars on that page. you can even hide the horizontal if you want, or have them both showing...whatever, up to you ;x |
|
|
|
| *[2]Nekked* |
Oct 13 2004, 09:59 AM
Post
#10
|
|
Guest |
QUOTE(synkro @ Oct 13 2004, 10:01 AM) <iframe src="http://www.blah.com/blah.html" width="#" height="#"></iframe> the scrollbars by default WILL SHOW... then for the css in "http://www.blah.com/blah.html" you can just adjust the style for the scrollbars on that page. you can even hide the horizontal if you want, or have them both showing...whatever, up to you ;x i think he wants to find a way to define all scrollbars colors in all iframes using something like .iframe {style here} |
|
|
|
Oct 13 2004, 10:42 AM
Post
#11
|
|
![]() I <3 profanity ![]() ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 2,910 Joined: Feb 2004 Member No: 3,774 |
Gah. I did this once. I can't remember how.
Once I remember I will edit this. /EDIT I think you just define the colors in your CSS and it should work. |
|
|
|
Oct 13 2004, 10:59 AM
Post
#12
|
|
![]() I just "got it like that". ![]() ![]() ![]() ![]() Group: Member Posts: 247 Joined: Aug 2004 Member No: 41,238 |
Well, i just defined the scrollbars in all of the pages that will be displayed in an iframe. Kinda a pain in my arse... so if anyone knows an easier way... hello at cherr boi. lol.
me = geek |
|
|
|
Oct 13 2004, 07:20 PM
Post
#13
|
|
|
‹(. .)› ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Member Posts: 2,367 Joined: Jun 2004 Member No: 20,089 |
QUOTE([2) Nekked,Oct 13 2004, 6:59 AM] i think he wants to find a way to define all scrollbars colors in all iframes using something like .iframe {style here} oh, in that case... use the code i put above, but add name="blah"... so the whole thing would be: <iframe name="blah"></iframe> then in your css <style type="text/css"> blah { width: #px; height: #px; overflow-x: hidden; overflow-y: auto; } </style> ...but your scrollbars would already be defined under your body tag, so no use in repeating them (with the exception of the horizontal scroll being disabled, or unless you want them different from the body scrollbars): body { background-color: #color; scrollbar-arrow-color: #color; scrollbar-track-color: #color; scrollbar-shadow-color: #color; scrollbar-face-color: #color; scrollbar-highlight-color: #color; scrollbar-darkshadow-color: #color; scrollbar-3dlight-color: #color; overflow-x:hidden; } |
|
|
|
Oct 14 2004, 11:57 AM
Post
#14
|
|
![]() I just "got it like that". ![]() ![]() ![]() ![]() Group: Member Posts: 247 Joined: Aug 2004 Member No: 41,238 |
QUOTE(synkro @ Oct 13 2004, 7:20 PM) oh, in that case... use the code i put above, but add name="blah"... so the whole thing would be: <iframe name="blah"></iframe> then in your css <style type="text/css"> blah { width: #px; height: #px; overflow-x: hidden; overflow-y: auto; } </style> ...but your scrollbars would already be defined under your body tag, so no use in repeating them (with the exception of the horizontal scroll being disabled, or unless you want them different from the body scrollbars): body { background-color: #color; scrollbar-arrow-color: #color; scrollbar-track-color: #color; scrollbar-shadow-color: #color; scrollbar-face-color: #color; scrollbar-highlight-color: #color; scrollbar-darkshadow-color: #color; scrollbar-3dlight-color: #color; overflow-x:hidden; } Did you even read the other posts? I allready tried all that you bavarian chocklate covered testicle!!! Thanks anyways. |
|
|
|
Oct 14 2004, 02:03 PM
Post
#15
|
|
|
‹(. .)› ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Member Posts: 2,367 Joined: Jun 2004 Member No: 20,089 |
um the "other posts" had "iframe.idnamehere" or "id" "class" not "name" which is what i had... so excuse me for trying to add another idea in there 'cause omg that's like illegal ;x
|
|
|
|
Oct 14 2004, 02:13 PM
Post
#16
|
|
![]() I just "got it like that". ![]() ![]() ![]() ![]() Group: Member Posts: 247 Joined: Aug 2004 Member No: 41,238 |
|
|
|
|
Oct 21 2004, 01:44 AM
Post
#17
|
|
|
Senior Member ![]() ![]() ![]() ![]() Group: Member Posts: 101 Joined: Sep 2004 Member No: 49,477 |
err are you using chatterbox? and trying to change the scroll bar color of that because theres an easy way to do that that would require a host
just upload a .css file with body{scroll bar junk} in it... no <style></style> okay... then go to chatterbox manger and in the iframe settings just put in the url to the .css file.. otherwise i dont know... you could go to the iframe page and put the style there... it should work or <iframe style="scroll bar stuff minus the body{}"> err yeah thats all i got edit:/ oh woops i should read more carefully... you said you already put it into all of your iframes and you want an easier way... do the thing for chatterbox that i said... create a .css file and stuff minus the <style></style> then just put CODE <!-- begin code provided by createblog.com --> into all your pages
<link rel="STYLESHEET" type="text/css" href="http://url.here/cssfile.css"> <!-- end code provided by createblog.com --> |
|
|
|
Oct 27 2004, 02:35 PM
Post
#18
|
|
![]() I just "got it like that". ![]() ![]() ![]() ![]() Group: Member Posts: 247 Joined: Aug 2004 Member No: 41,238 |
QUOTE(hlall @ Oct 21 2004, 1:44 AM) edit:/ oh woops i should read more carefully... you said you already put it into all of your iframes and you want an easier way... do the thing for chatterbox that i said... create a .css file and stuff minus the <style></style> then just put CODE <!-- begin code provided by createblog.com --> into all your pages<link rel="STYLESHEET" type="text/css" href="http://url.here/cssfile.css"> <!-- end code provided by createblog.com --> yeah, thats what i meant what i said i put the css into all the pages. I dont have time to write out css on every page. My site has like 1623143153146 pages because they are generated automatically and doing that would take like 1623143153146 days. lol. me = geek |
|
|
|
Oct 27 2004, 02:54 PM
Post
#19
|
|
|
Senior Member ![]() ![]() ![]() ![]() Group: Member Posts: 101 Joined: Sep 2004 Member No: 49,477 |
ive got a question.. are you using php?
are you using fwrite or fputs or something, if so.. make sure that <link rel=..> is the first part of it, when the file is created, but right now... i think copy and paste is probably your best chance |
|
|
|
Oct 27 2004, 06:26 PM
Post
#20
|
|
![]() :hammer: ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Staff Alumni Posts: 9,849 Joined: Mar 2004 Member No: 7,700 |
QUOTE(razbus @ Oct 27 2004, 12:35 PM) yeah, thats what i meant what i said i put the css into all the pages. I dont have time to write out css on every page. My site has like 1623143153146 pages because they are generated automatically and doing that would take like 1623143153146 days. lol. me = geek For peak's sake she's just trying to help you. Instead of putting your css on all your pages why don't you just have one .css page and then upload it and use the linkref crap? |
|
|
|
Oct 27 2004, 09:47 PM
Post
#21
|
|
|
Senior Member ![]() ![]() ![]() ![]() Group: Member Posts: 101 Joined: Sep 2004 Member No: 49,477 |
woops.. me=boy and geek
yeah thats exactly what i just said, but hes lazy... maybe i wasn't clear enough? you put it in a seperate.css file, not the link rel thing and css on each page just the link rel thing just tell me how your generating them, im still pretty new to php but i could probably help |
|
|
|
Oct 28 2004, 08:29 AM
Post
#22
|
|
![]() I just "got it like that". ![]() ![]() ![]() ![]() Group: Member Posts: 247 Joined: Aug 2004 Member No: 41,238 |
are you people dense or something? That is exactly what i said! I DO use ONE css sheet. And yes i use php. And cgi.
|
|
|
|
Nov 3 2004, 04:25 PM
Post
#23
|
|
|
Senior Member ![]() ![]() ![]() ![]() Group: Member Posts: 101 Joined: Sep 2004 Member No: 49,477 |
QUOTE(razbus @ Oct 28 2004, 8:29 AM) are you people dense or something? That is exactly what i said! I DO use ONE css sheet. And yes i use php. And cgi. thanks for calling us dense for trying to help... since your using php, screw iframes use php's include feature, insteada an iframe, make it so the links to go places like www.razbus.com/index.php?page=x or something put this code where you need to put it QUOTE if(isset($_GET['action'])){ $action = $_GET['action']; } else{ $action == 'main'; include "main.php"; } if($action == 'photos'){ include "photos.php"; } elseif($action == 'bio'){ include "bio.php"; } and at the top of the page put this QUOTE <?php require"css.txt"; ?> in css.txt put your css styles with the style tags so put <style type="text/css"> stuff{ } stuff { } </style> i assume you know enough php to understand how to work this and what you said earlier, you didn't say you use 1 css sheet, you just said your copying and pasting all your styles onto every page don't call me dense, your lucky im still helping and they are in quote boxes because i dont like the begin code provided by createblog.com when i provide it |
|
|
|
| *[2]Nekked* |
Nov 3 2004, 05:05 PM
Post
#24
|
|
Guest |
why dont you just define the body scrollbar colors? that would define all scrollbars, including all pages in your iframe.
-_-" and dont yell at others because we're just trying to help. you could be a little appreciative. i thought you were the 1337 coder eh? you're the one bragging about how well you can code, well you cant solve a simple problem like this? further more if you were so good at it, you'd realize the difference between what was said and what synkro said. you could also put the iframe inside a div and define the colors in your divs class. just remember that YOU posted here for HELP. we dont HAVE to help you. we COULD just leave you hanging, so drop the f*cking attitude. |
|
|
|
Nov 4 2004, 09:17 AM
Post
#25
|
|
![]() I just "got it like that". ![]() ![]() ![]() ![]() Group: Member Posts: 247 Joined: Aug 2004 Member No: 41,238 |
QUOTE([2) Nekked,Nov 3 2004, 5:05 PM] why dont you just define the body scrollbar colors? that would define all scrollbars, including all pages in your iframe. -_-" and dont yell at others because we're just trying to help. you could be a little appreciative. i thought you were the 1337 coder eh? you're the one bragging about how well you can code, well you cant solve a simple problem like this? further more if you were so good at it, you'd realize the difference between what was said and what synkro said. you could also put the iframe inside a div and define the colors in your divs class. just remember that YOU posted here for HELP. we dont HAVE to help you. we COULD just leave you hanging, so drop the f*cking attitude. I never said that i couldn't solve this on my own. I was simply looking for a more efficient and space saving way. And i wasn't yelling at anyone, er... or at least i wasnt trying to. As for what hlall said, I thought of that allready but i am using an imagemap and not links. I don't know of a way to do that with a mapped image. Anyways, im sorry if i offended anyone. I get cranky when i havent taken my medicaion. |
|
|
|
![]() ![]() |