dcsimg
www.webdeveloper.com
Results 1 to 3 of 3

Thread: add border bottom on menu ul when hover on li

  1. #1
    Join Date
    May 2012
    Posts
    4

    add border bottom on menu ul when hover on li

    is there any way in javascript to add borderbottom on menu ul when i hover on li of that menu........
    plz help me..

  2. #2
    Join Date
    Feb 2012
    Posts
    61
    you can do it using css style easily,

    #menu ul li a:hover{text-decoration:underline;}
    OR
    #menu ul li a:hover{border-bottom:solid 1px #000;}


    Using javascript,

    onmouseover="this.style.textDecoration='#underline'" onmouseout="this.style.textDecoration='#none'"


    hope this is helpfull to you...

  3. #3
    Join Date
    May 2012
    Posts
    4
    thank you som for this code...
    but i have done by..
    j(".item435").hover(
    function() { j(".menud_max").addClass("item435_hover"); },
    function() { j(".menud_max").removeClass("item435_hover"); }
    );
    then
    .item435_hover{border-bottom:10px solid #fff;}

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles