Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Problem in linking

  1. #1
    Join Date
    Mar 2008
    Posts
    8
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Question Problem in linking

    1) Script Title: ddaccordion.js

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...ordionmenu.htm

    3) Describe problem:

    Hello friends,

    I have recently used the script ddaccordion.js for dynamic menu....
    I am using it for the Menu of my web page which i m developing using ASP.net with c# coding.
    I made a style sheet "MenuStyle.css" wherein i Copied the code:


    .arrowlistmenu
    {
    width: 225px; /*width of accordion menu*/
    }
    .arrowlistmenu .menuheader
    {
    /*CSS class for menu headers in general (expanding or not!)*/
    font: bold 14px Arial;
    color: white;
    /*background: black url(MenuImages/titlebar.png) repeat-x center left;*/
    background: black url(../../themes/MenuStyle/MenuImages/titlebar.png) repeat-x center left;
    margin-bottom: 10px; /*bottom spacing between header and rest of content*/
    text-transform: uppercase;
    padding: 4px 0 4px 10px; /*header text is indented 10px*/
    cursor: hand;
    cursor: pointer;
    }
    .arrowlistmenu .openheader
    {
    /*CSS class to apply to expandable header when it's expanded
    background-image: url(../MenuImages/titlebar-active.png);*/
    background-image: url(../../themes/MenuStyle/MenuImages/titlebar-active.png);
    }
    .arrowlistmenu ul
    {
    /*CSS for UL of each sub menu*/
    list-style-type: none;
    margin: 0;
    padding: 0;
    margin-bottom: 8px; /*bottom spacing between each UL and rest of content*/
    }
    .arrowlistmenu ul li
    {
    padding-bottom: 2px; /*bottom spacing between menu items*/
    }
    .arrowlistmenu ul li a
    {
    color: #FFFFFF;
    background: url(../../themes/MenuStyle/MenuImages/arrow2.gif) no-repeat center left; /*custom bullet list image*/
    display: block;
    padding: 2px 0;
    padding-left: 19px; /*link text is indented 19px*/
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px solid #dadada;
    font-size: 100%;
    }
    .arrowlistmenu ul li a:visited
    {
    color: #A70303;
    font-size: 100%;

    }

    .arrowlistmenu ul li a:hover
    {
    /*hover state CSS*/
    color: #A70303;
    background: url(../../themes/images_template1/bg_content.jpg)

    }

    and on my master page i linked the style sheet .
    I placed the images in the folder Menu Images.

    Though i have created MenuStyle.css I have to write the whole code for the style sheet in every page which I inherit from the master page.

    So please anyone can help me out.
    Thanks in advance.

  2. #2
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    1,160
    Thanks
    17
    Thanked 277 Times in 275 Posts

    Default

    You should note the proper posting guidelines, see post#7.

    Anyway, have you tried using ../themes/images_template1/bg_content.jpg instead. If nothing works, you could use absolute addressing,

    ..And if nothing still works, a link to your page will aide
    Learn how to code at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph!

  3. The Following User Says Thank You to rangana For This Useful Post:

    psspl (03-13-2008)

  4. #3
    Join Date
    Sep 2005
    Location
    India
    Posts
    1,627
    Thanks
    6
    Thanked 107 Times in 107 Posts

    Default

    You can create a CSS file in which you can insert all the required CSS information and include that file using <link> element in your <head> element.

    An eg:
    <link rel="stylesheet" type="text/css" href="default.css" />

    Or you can go for templating scheme in which you need to load the CSS only once.

    Or you can load the CSS file via JS when the page loads for that purpose you have to insert a script in everypage

  5. The Following User Says Thank You to codeexploiter For This Useful Post:

    psspl (03-13-2008)

  6. #4
    Join Date
    Mar 2008
    Posts
    8
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    hello sir
    i have put the link tag :

    <link rel="Stylesheet" type="text/css" href="../themes/MenuStyle/MenuStyleSheet.css" />

    on the master page. but the images are not getting displayed on the page which is inherting the master page.
    Please help me out.

  7. #5
    Join Date
    Sep 2005
    Location
    India
    Posts
    1,627
    Thanks
    6
    Thanked 107 Times in 107 Posts

    Default

    Instead of using the relative path try to use absolute paths and see if it is a problem of file arrangement.

  8. #6
    Join Date
    Mar 2008
    Posts
    8
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Thumbs up

    sir the problem is resolved... but the menu runs perfect when run on Mozilla Firefox,but the problem remains when run with IE7. I am using IE as my default browser.

  9. #7
    Join Date
    Mar 2008
    Posts
    8
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    sir is there any solution to the problem regarding the browser support.

  10. #8
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    1,160
    Thanks
    17
    Thanked 277 Times in 275 Posts

    Default

    Can you provide a link to your site
    Learn how to code at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph!

  11. #9
    Join Date
    Mar 2008
    Posts
    8
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    I am running it on my localhost. the site is in developing phase still.

  12. #10
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    1,160
    Thanks
    17
    Thanked 277 Times in 275 Posts

    Default

    Have you had added a proper DTD in your page?..

    Try adding this code above the <html> tag.
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
       "http://www.w3.org/TR/html4/strict.dtd">
    See if it helps
    Learn how to code at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph!

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
  •