I need to make a custom menu

Last post 07-11-2009 2:53 AM by king stone. 5 replies.

Sort Posts:

  • I need to make a custom menu

    07-09-2009, 12:15 PM
    • Member
      point Member
    • king stone
    • Member since 06-29-2009, 6:41 PM
    • Posts 26

    first i use webmap and passed it to menu control and passed a Css file throgh the "StaticMenuItemStyle" it work nice but

    the image applied for "DynamicHoverStyle" not appear absnotly . i get menu like this http://tinypic.com/view.php?pic=124kles&s=3

    and class css is :-

    .menuHover
    {
    	display:block;
    	font-family:Arial Sans-Serif;
        background:#134C8F url('images/hover.png') no-repeat;
     width: 165px;
    	height: 40px;
    }
    .menuHover A:link {
    
    background-image: none
    
    }
    
    .menuHover A:visited {
    
    background-image: none;
    
    }

    ... i need to know what is the wrong .

  • Re: I need to make a custom menu

    07-09-2009, 6:37 PM
    • Participant
      1,547 point Participant
    • ctheriault
    • Member since 04-10-2009, 4:33 PM
    • Posts 276

    It is likely because the url path provided in the CSS file is relative this CSS file.

    if you style sheet location is

    ... dir1/dir2/dir3/MyStyle.css

    then the expected image path (as you defined it) is:

    ... dir1/dir2/dir3/images/hover.png

     

     

    ----
    Don't forget to mark this posting as an "Answer" if it is helpful to you
  • Re: I need to make a custom menu

    07-10-2009, 4:19 AM
    • Member
      point Member
    • king stone
    • Member since 06-29-2009, 6:41 PM
    • Posts 26

    thanks for replaying . . .

    But if the wrong in image path like u say this mean that the first image not appear . i mean that the first image is appeard succssefully but in the "Dynamic hover style "not appear and two image in the same path format .

     

  • Re: I need to make a custom menu

    07-10-2009, 4:20 AM
    • Member
      point Member
    • king stone
    • Member since 06-29-2009, 6:41 PM
    • Posts 26

    thanks for replaying . . .

    But if the wrong in image path like u say this mean that the first image not appear . i mean that the first image is appeard succssefully but in the "Dynamic hover style "not appear and two image in the same path format .

     another thing is that i make the style sheet in private theme folder .

  • Re: I need to make a custom menu

    07-10-2009, 5:08 AM
    • Member
      point Member
    • king stone
    • Member since 06-29-2009, 6:41 PM
    • Posts 26

    the problem now not in image path but in :-

    When i hide the path of menu background the hover image work correct but if i return the background hover image not appear ...

  • Re: I need to make a custom menu

    07-11-2009, 2:53 AM
    Answer
    • Member
      point Member
    • king stone
    • Member since 06-29-2009, 6:41 PM
    • Posts 26

    I solve the problem by include Menu in a <Div> and this div has class of menu back ground then make an image with for menu hover style then it work perfect ...

Page 1 of 1 (6 items)