Results 1 to 4 of 4

Thread: Script : DD Pop It Menu

  1. #1
    Join Date
    May 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Script : DD Pop It Menu

    http://www.dynamicdrive.com/dynamicindex1/popit.htm

    Is it possible for this script to have enhanced feature such as a shadow effect for the pop it menu?

    Currently it does now have any shadow effect, I was wondering is it possible to have that effect on this menu?
    Last edited by ddadmin; 05-27-2005 at 07:47 AM.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Try this as a drop-in replacement for the default style:
    Code:
    <style type="text/css">
    
    #popitmenu{
    position: absolute;
    background-color: white;
    border-top:1px groove black;
    border-right:4px groove gray;
    border-bottom:4px groove gray;
    border-left:1px groove black;
    font: normal 12px Verdana;
    line-height: 18px;
    z-index: 100;
    visibility: hidden;
    }
    
    * html #popitmenu{
    border:1px solid black;
    filter:progid:DXImageTransform.Microsoft.Shadow(color=black,direction=135,strength=4);
    }
    
    #popitmenu a{
    text-decoration: none;
    padding-left: 6px;
    color: black;
    display: block;
    }
    
    #popitmenu a:hover{ /*hover background color*/
    background-color: #CCFF9D;
    }
    
    </style>
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    May 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks, I tried it out, it looks great in IE, but I notice the effects in Firefox and Netscape is different. It does not have the shadow thingy in Firefox and Netscape?

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Mozilla doesn't have support for the 'filter:' property and probably never will. I used what I believe to be the closest available approximation. You can play with the widths and/or the 'outset', 'ridge' and 'inset' border styles instead of groove. All border styles you set for Mozilla will be overridden for IE in the '* html' section of the style. New CSS standards are in the works that should allow for drop shading effects on text for all browsers that support the new standard, there may be a similar standard coming for borders or box elements but, I am not aware of any.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •