+ Reply to Thread
Results 1 to 11 of 11
  1. #1
    Member
    Join Date
    Mar 2001
    Posts
    103

    Colored Scroll Bars and Fixed Windows

    I was woners what script i use to make the scroll bar of an ie window to be a certain color for my page and how i go about making my site pop up as a small window instead of a full screen, and if it's possible i'd like to keep it so it staid that certain size. Thanks

  2. #2
    Junior Member
    Join Date
    Apr 2001
    Location
    Idaho
    Posts
    20
    simply nifty program for the scroll bar

    A list of colors to help you

    ALICEBLUE - ANTIQUEWHITE - AQUAMARINE - AZURE - BEIGE - BISQUE - BLACK - BLANCHEDALMOND - BLUE - BLUEVIOLET - BROWN - BURLYWOOD - CADETBLUE - CHARTREUSE - CHOCOLATE - CORAL - CORNSILK - CRIMSON - CYAN - DARKBLUE - DARKCYAN - DARKGOLDENROD - DARKGRAY - DARKGREEN - DARKKHAKI - DARKMAGENTA - DARKOLIVEGREEN - DARKORANGE - DARKORCHID - DARKRED - DARKSALMON - DARKSEAGREEN - DARKSLATEBLUE - DARKSLATEGRAY - DARKTURQUOISE - DARKVIOLET - DEEPPINK - DEEPSKYBLUE - DIMGRAY - DODGERBLUE - FIREBRICK - FLORALWHITE - FORESTGREEN - GAINSBORO - GHOSTWHITE - GOLD - GOLDENROD - GRAY - GREEN - GREENYELLOW - HONEYDEW - HOTPINK - INDIANRED - INDIGO - IVORY - KHAKI - LAVENDER - LAVENDERBLUSH - LAWNGREEN - LEMONCHIFFON - LIGHTBLUE - LIGHTCORAL - LIGHTGOLDENRODYELLOW - LIGHTGREEN - LIGHTGREY - LIGHTPINK - LIGHTSALMON - LIGHTSEAGREEN - LIGHTSKYBLUE - LIGHTSLATEGRAY - LIGHTSTEELBLUE - LIGHTYELLOW - LIME - LIMEGREEN - LINEN - MAGENTA - MAROON - MEDIUMAQUAMARINE - MEDIUMBLUE - MEDIUMORCHID - MEDIUMPURPLE - MEDIUMSEAGREEN - MEDIUMSLATEBLUE - MEDIUMSPRINGGREEN - MEDIUMTURQUOISE - MEDIUMVIOLETRED - MIDNIGHTBLUE - MINTCREAM - MISTYROSE - MOCCASIN - NAVAJOWHITE - NAVY - OLDLACE - OLIVE - OLIVEDRAB - ORANGE - ORANGERED - PALEGOLDENROD - PALEGREEN - PALETURQUOISE - PALEVIOLETRED - PAPAYAWHIP - PEACHPUFF - PERU - PINK - PLUM - POWDERBLUE - PURPLE - RED - ROSYBROWN - ROYALBLUE - SADDLEBROWN - SALMON - SANDYBROWN - SEAGREEN - SEASHELL - SIENNA - SILVER - SKYBLUE - SLATEBLUE - SLATEGRAY - SNOW - SPRINGGREEN - STEELBLUE - TAN - TEAL - THISTLE - TOMATO - TURQUOISE - VIOLET - WHEAT - WHITE - WHITESMOKE - YELLOW - YELLOWGREEN

    or...you can enter the hex color values.


    And....Is this what you want to open in a certain size?

    <html>
    <head>

    <script language="JavaScript">
    <!--
    function MM_openBrWindow(theURL,winName,features) { //v2.0
    window.open(theURL,winName,features);
    }
    //-->
    </script>
    </head>

    <body bgcolor="#FFFFFF" text="#000000" onLoad="MM_openBrWindow('YOURURLGOESHERE,'','width=300,height=400')">
    </body>
    </html>

    If so, change the bold items



    [This message has been edited by Cabinetmaker (edited 07-23-2001).]

  3. #3
    Member
    Join Date
    Mar 2001
    Posts
    103
    You just made my day.. , Thanks-A-Bunch

  4. #4
    socalgal
    Guest
    Cool stuff, Cab

  5. #5
    Member
    Join Date
    Jul 2001
    Location
    Canada
    Posts
    42
    Very nifty!!!

  6. #6
    Member
    Join Date
    Mar 2001
    Posts
    103
    Anyone able to get the window size script to work?

  7. #7
    Senior Member rh71's Avatar
    Join Date
    Oct 1999
    Location
    LI | NY
    Posts
    782
    To the best of my knowledge, it will only work on IE 5.5 and later. IE 5.0 does not support the colored scroll bars. Correct me if I'm wrong.

  8. #8
    Junior Member
    Join Date
    Apr 2001
    Location
    Idaho
    Posts
    20
    Make this your index page

    Code:
    <html>
    <head>
    
    <script language="JavaScript">
    <!--
    function MM_openBrWindow(theURL,winName,features) { //v2.0
    window.open(theURL,winName,features);
    }
    //-->
    </script>
    </head>
    
    <body bgcolor="#FFFFFF" text="#000000" onLoad="MM_openBrWindow('index2.htm','','scrollbars=yes,width=600,height=400')">
    </body>
    </html><html>
    <head>
    
    <script language="JavaScript">
    <!--
    function MM_openBrWindow(theURL,winName,features) { //v2.0
    window.open(theURL,winName,features);
    }
    //-->
    </script>
    </head>
    
    <body bgcolor="#FFFFFF" text="#000000" onLoad="MM_openBrWindow('index2.htm','','scrollbars=yes,width=600,height=400')">
    </body>
    </html>
    then make the next one index2.html (this will be your main page)

    Code:
    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <style type="text/css">
    body {
    scrollbar-arrow-color: yellow;
    scrollbar-base-color: black;
    scrollbar-dark-shadow-color: yellow;
    scrollbar-track-color: green;
    scrollbar-face-color: blue;
    scrollbar-shadow-color: white;
    scrollbar-highlight-color: silver;
    scrollbar-3d-light-color: black;
    }
    </style>
    
    </head>
    
    <body bgcolor="#FFFFFF" text="#000000">
    This is your index2 page, the one that will pop up with with the colored scroll. 
    </body>
    </html>
    I hope this is what you are wanting?

  9. #9
    Junior Member
    Join Date
    Apr 2001
    Location
    Idaho
    Posts
    20
    also..you can add feature if you wish to the pop-up box


    <html>
    <head>

    <script language="JavaScript">
    <!--
    function MM_openBrWindow(theURL,winName,features) { //v2.0
    window.open(theURL,winName,features);
    }
    //-->
    </script>
    </head>

    <body bgcolor="#FFFFFF" text="#000000" onLoad="MM_openBrWindow('index2.htm','','toolbar=yes,location=yes,status=yes,menubar=yes,sc rollbars=yes,resizable=yes,width=600,height=400')">
    </body>
    </html>

  10. #10
    Junior Member
    Join Date
    Apr 2001
    Location
    Idaho
    Posts
    20
    edit: uhm....skip the info that was here /edit


    [This message has been edited by Cabinetmaker (edited 07-26-2001).]

  11. #11
    Member
    Join Date
    Mar 2001
    Posts
    103
    Thanks, i was looking to have a disclamer opager and then have my site pop up in a smaller window...think this might be it. TY Again.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts







New Security Features Planned for Firefox 4
Another Laptop Theft Exposes 21K Patients' Data
Oracle Hits to Road to Pitch Data Center Plans
Microsoft Preps Array of Windows Patches
Microsoft Nears IE9 Beta With Final Preview
Simplified Analytics Improve CRM, BI Tools
Android Passes RIM as Top Mobile OS in 2Q
VMware Updates Hyperic System Management
File Monitoring Key to Enterprise Security
LinkedIn Snaps Up SaaS Player mSpoke