Results 1 to 5 of 5

Thread: got to clean my background:) SOS PEOPLE

  1. #1
    Join Date
    May 2007
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default got to clean my background:) SOS PEOPLE

    i got a nice drop down graphic menu, and when it's opens it's got a static one color background...
    i want it will be half transperent(lucid) =that it want be 100% one color and won't be 100% filmy...that the user will be able to see the text behind...

    this is my code:

    HTML Code:
    <style type="text/css">
    
    a:link {color: #3D3434;}
    a:visited {color: #3D3434;}
    a:active {color: #3D3434;}
    a:hover {background-color: #ffffff;}
    a {text-decoration: none;}
    
    #dropmenudiv{
    position:absolute;
    border:1px solid #3D3434;
    border-bottom-width: 1;
    font:normal 12px Verdana;
    line-height:18px;
    z-index:100;
    }
    
    #dropmenudiv a{
    width: 100%;
    text-indent: 3px;
    border: 0px solid #3D3434;
    padding: 1px 0;
    text-decoration: none;
    font-weight: bold;
    }
    
    #dropmenudiv a:hover
    { /*hover background color*/
    color: red;
    }
    
    </style>
    
    
    
    <!------------------------------------------------------------------------ DROPDOWN MENU-->
    <script type="text/javascript">
    
    //Contents for menu 1
    var menu1=new Array()
    menu1[0]='<a href="http://msnbc.com">French</a>'
    menu1[1]='<a href="http://news.bbc.co.uk">Hebrew</a>'
    menu1[2]='<a href="http://msnbc.com">French</a>'
    menu1[3]='<a href="http://news.bbc.co.uk">Hebrew</a>'
    
    //Contents for menu 2, and so on
    var menu2=new Array()
    menu2[0]='<a href="http://msnbc.com">French</a>'
    menu2[1]='<a href="http://news.bbc.co.uk">Hebrew</a>'
    
    var menu3=new Array()
    menu3[0]='<a href="http://msnbc.com">TEST</a>'
    menu3[1]='<a href="http://news.bbc.co.uk">BCC</a>'
    		
    var menuwidth='150px' //default menu width
    var menubgcolor=''#FFFFFF'  //menu bgcolor 
    var disappeardelay=10  //menu disappear speed onMouseout (in miliseconds)
    var hidemenu_onclick="yes" //hide menu when user clicks within menu?

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Code:
    #dropmenudiv{
    position:absolute;
    border:1px solid #3D3434;
    border-bottom-width: 1;
    font:normal 12px Verdana;
    line-height:18px;
    z-index:100;
    opacity: 0.5;
    }
    And, after that <style> element:
    Code:
    <!--[if IE]>
      <style type="text/css">
        #dropmenudiv {
          filter: Alpha(Opacity=50);
        }
      </style>
    <![endif]-->
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    May 2007
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Twey!!

    You R D Best...
    10k's

  4. #4
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    Also you might need to add:
    Code:
    moz-opacity: 0.5;
    khtml-opacity: 0.5;
    It allows opacity for older versions of Mozilla and Konqueror. However, it may appear as an error in your css file.
    - Mike

  5. #5
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    That's -moz-opacity and -khtml-opacity. Note the leading hyphen.

    I think CSS3 opacity is sufficiently widespread now as to render them obsolete.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

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
  •