View Full Version : Scroll Bar Problems


LadyK
04-16-2004, 05:35 AM
Can anyone tell me if they see a colored scroll bar on either of these two pages, please. It is suppose to be cream and green but it doesnt show up for me. All of my other pages have the colored scroll bar.

Test 1 (http://realmofcreations.com/test1.html)
Test 2 (http://realmofcreations.com/test2.html)

Test 1 is using HTML 4.0 Transitional
Test 2 is using XHTML

If you cant see my colored scroll bar, please tell me what I can do to correct that. Thank you :)

Rosey
04-16-2004, 05:54 AM
the doctype is getting in the way. Since the scrollbars only work in IE it's not going to validate. If you take out the doctype, it will show up.

salomeyasobko
04-16-2004, 05:54 AM
nope i can't see them :( what are the full codes you used for them?

EDIT: oof rosey beat me to it! :lol: but i'm using IE and i still can't see them :confusion

Rosey
04-16-2004, 05:58 AM
i know i looked on ie but when i took the doctype out it showed up

LadyK
04-16-2004, 06:07 AM
When I completed the page for the HTML 4.0 Transitional, the scroll bar showed up, then I took it to the validator and I then realized I didnt have the doctype in there. I put the doctype in and it took my scroll bar out. So, there is no way of fixing it without taking out the doctype?


salomeyasobko, this is the code I used for the scroll bar

<STYLE type="text/css">
<!--
BODY { scrollbar-3d-light-color:#445940;
scrollbar-arrow-color:#445940;
scrollbar-base-color:#445940;
scrollbar-dark-shadow-color:#445940;
scrollbar-face-color:#F6F5ED;
scrollbar-highlight-color:#F6F5ED;
scrollbar-shadow-color:#445940}
-->
</style>

Rosey
04-16-2004, 06:08 AM
not if you want it to validate.

salomeyasobko
04-16-2004, 06:08 AM
since it works without the doctype part and doesn't work with it, then the only way it'll work is if you take it out [heh :rolleyes: ]. it probably won't validate that way though. btw, the scrollbar code's fine, i was just checking :D

LadyK
04-16-2004, 06:13 AM
Well, I guess I could leave out the scroll bar, since its really not that important. Its just seems strange, how it validates correctly with my homepage and my site map page and with most of my other pages I have corrected. Thank you so much for your help Rosey and salomeyasobko :) I am going to see if I can work on another layout that will validate but I will use the one I have for now.

salomeyasobko
04-16-2004, 06:15 AM
you're welcome [even though rosey kept beating me, haha ;)]. yes, colored scrollbars don't matter that much :D

Rosey
04-16-2004, 06:22 AM
Ok i looked at it some more cause I remembered that I had it on my site and it showed up just didn't validate.

You could just put this:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

and it will show up but not validate.

Probably the same with the xhtml, take out their link.

LadyK
04-16-2004, 06:25 AM
Maybe you or Rosey have a better idea of a layout I can use for my tutorial links that will work well with a colored scroll bar and that will validate correctly. The tutorials links are in 3 different tables as of now. There is like 5 tables all together I think. Right now, the way I have it in my site for other people to view, its in an I-Frame. I dont really dont like I-Frames much and further it creates problems for some people to view my pages. Thats what I have been doing is trying to create a better way to navigate the tutorial links. I have 69 PSP7 tutorials and 16 PSP8 tutorials and it would be great to have a great navigation system. Would using a CSS layout be a good idea?

salomeyasobko
04-16-2004, 06:29 AM
iframes are probably good because you can target links to a specific part of the site [as i'm sure you know :D] but if they really bother you, CSS layouts are very neat and organized [in my opinion]. i think that it would be a good idea to use a CSS layout, DIVs are very nice to use. and, you know, you can always do something like lissa- slit the tutorials up into different parts and then, at the top of each page, have anchor links. i think that'd be convenient for the visitors [and for you!] :)

Rosey
04-16-2004, 06:31 AM
colored scrollbars will never validate. The whole idea of validation was to have something that works cross browsers, since colored scrollbars don't work in cross browsers, they will never validate, no matter what the layout.
If that's the only thing that doesn't validate, who cares!

LadyK
04-16-2004, 06:34 AM
I had some emails that some could not view the links because of the flowers getting in the way. Here is what it looks like now Tutorial Index (http://www.realmofcreations.com/Tutorials/tutorialindex.html)

If I decide to use the CSS layout, what would you consider the best one on lissa's css layout (http://www.lissaexplains.com/css3.shtml) page?

I wish I werent wanting to have everything to validate correctly, lol.

LadyK
04-16-2004, 06:35 AM
You have got a point there Rosey. Some things like my web sets, I use the colored scroll bars because so many people like them.

Rosey
04-16-2004, 06:55 AM
Well your code is a little messed up. What you should do is put it in a table and make sure that the whole table is about 780px so that even people in 800x600 resolution will be able to see it. I'm on 1280 or whatever and the flowers aren't aligned properly. You also have 2 body tags and your iframe is in your head section and not the body section. This is it cleaned up in tables (i haven't tested it)


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
<title>Tutorial Index</title>


<style type="text/css">
<!--
BODY {
scrollbar-face-color: #EBDCDC;
scrollbar-highlight-color: #EBDCDC;
scrollbar-3dlight-color: #754747;
scrollbar-darkshadow-color: #754747;
scrollbar-shadow-color: #754747;
scrollbar-arrow-color: #754747;
scrollbar-track-color: #754747;
}
-->
</STYLE>
<script language=JavaScript>
<!--

//Disable right click script III- By Renigade (renigade@mediaone.net)
//For full source code, visit http://www.dynamicdrive.com

var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document. onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontext menu=clickIE;}

document.oncontextmenu=new Function("return false")
// -->

</script>
</head>

<body>

<center>
<table width="780px">
<tr><td width="390px"> image here</td>

<td width="390px">
<iframe src="http://realmofcreations.com/Tutorials/tutorials.html"
width="400" height="390" align="right" style="border: 4 dotted #754747
marginwidth="0 marginheight="0"
hspace="0" vspace="0" frameborder="0" scrolling=yes>
</iframe>
</td></tr></table>
</center>
</body></html>



Just put your background image, that cream color, in your body tag and crop your image a little.

That's what I would do.

Calidris
04-16-2004, 08:48 PM
You have this at the top of your code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
IE only switches to "strict mode" when it see's a modern DOCTYPE as the first element on the page.

Simple solution:
Put an HTML comment above the DOCTYPE. Your page will still validate, it will still be XHTML, and the scroll bars will work. The only problem would be that IE would switch back to default "quirks mode".

Fixed code:
<!-- turn off strict mode in IE -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
NOTE: the comment can contain anything you like.

Rosey
04-16-2004, 10:28 PM
I did some experiments today and actually the scrollbars will validate without the comment field in html but NOT in the css validator.

LadyK
04-16-2004, 11:00 PM
Thank you, Calidris, for this bit of information and yes it did validate and shows the scroll bar. :)

Rosey, I think with my situation with all of the tutorials links I have it would be better to go without the frame so I dont have them all in the center in a straight line.

I appreciate everyones help and time. Thank you :)

Rosey
04-17-2004, 12:06 AM
Actually Calidris is wrong. You don't need that comment line that calidris said to put, either way it will validate in the HTML validator so you're fine BUT if you wanted the css validator, there is no way to do that with the scrollbars. I got confused last night with the validation and forgot that the HTML validator doesn't look at your css at all.

For the code I posted, I just rearranged what you already had, I didn't add the iframe, you already had it in there so I'm confused now unless you're totally redoing the layout.

edit: i did some more experimenting, if you leave the tag you have with the url then doing what calidris said will work (your scrollbar will show), if you put the one i use on there, it doesn't matter, it'll show either way.

Calidris
04-17-2004, 12:59 PM
Actually Calidris is wrong.

Examples:
- With the comment (http://www.brandedthoughts.co.uk/projects/xhtml/scrollbars/scroll.html)
- Without the comment (http://www.brandedthoughts.co.uk/projects/xhtml/scrollbars/scroll-no-comment.html)

Notes:
- IE5 and IE5.5 will show coloured scrollbars in both examples.
- IE6 will show coloured scrollbars in the first example, but not the second.
- Non-IE browsers will not show coloured scrollbars in either case.
- Both pages are valid XHTML, and invalid CSS (because coloured scrollbars aren't valid).

Hopefully this makes things clearer for everyone :)

[EDIT]
The HTML 4 option works aswell, because IE6 will not turn on stirct mode for HTML 4. However, HTML 4 isn't XHTML like the original question specified.