Results 1 to 3 of 3

Thread: Smooth Navigational Menu v2.1 doesn't load css files on seo URL type

  1. #1
    Join Date
    Aug 2013
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Post Smooth Navigational Menu v2.1 doesn't load css files on seo URL type

    1) Smooth Navigational Menu v2.1

    2) http://www.dynamicdrive.com/dynamici...smoothmenu.htm

    3) hi , i have a problem with this vertical menu , i have a wallpaper site and when i change my site settings to USE urls as seo type this menu can not find the css files , i uploaded the files in root and when the URL type is like this:

    http://www.sevenpda.com/index.php?task=view&id=6436

    everything is fine , but when i change the settings to seo url that would be like this:

    http://www.sevenpda.com/actresses/sofia-vergara-3

    it doesn't load the css files and all the menu changes to text with links . you can see both link to understand whats my problem

    now my question is how can i set the path of files manually ? now it's this form :

    <link rel="stylesheet" type="text/css" href="ddsmoothmenu.css" />
    <link rel="stylesheet" type="text/css" href="ddsmoothmenu-v.css" />

    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js"></script>
    <script type="text/javascript" src="ddsmoothmenu.js">

    contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
    i think it should be something like this :

    please some one help me fast , all my site URL's on google cached on seo url type , i'm noob please help me
    Last edited by jscheuer1; 08-18-2013 at 02:22 AM. Reason: Format

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    29,070
    Thanks
    44
    Thanked 3,216 Times in 3,178 Posts
    Blog Entries
    12

    Default

    The contentsource property simply sets where the menu looks to find its content. The two choices are "markup" (which means the menu looks for its content on the page), or ["container_id", "path_to_menu_file"] (which means that the script loads its content from the specified external menu file into a div with the container_id specified, and then looks to that container for its content).

    It has nothing to do with where the javascript or css files are located.

    The problem is that:

    Code:
    <link rel="stylesheet" type="text/css" href="ddsmoothmenu.css" />
    <link rel="stylesheet" type="text/css" href="ddsmoothmenu-v.css" />
    and:

    Code:
    <script type="text/javascript" src="ddsmoothmenu.js">
    
    /***********************************************
    * Smooth Navigational Menu- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
    * This notice MUST stay intact for legal use
    * Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
    ***********************************************/
    
    </script>
    Are all 404 Not Found. They are not in the sevenpda.com/actresses/ folder. They are in the sevenpda.com/ folder. So you can change them to (network path indicating to look in the root sevenpda.com/ folder):

    Code:
    <link rel="stylesheet" type="text/css" href="/ddsmoothmenu.css" />
    <link rel="stylesheet" type="text/css" href="/ddsmoothmenu-v.css" />
    and:

    Code:
    <script type="text/javascript" src="/ddsmoothmenu.js">
    
    /***********************************************
    * Smooth Navigational Menu- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
    * This notice MUST stay intact for legal use
    * Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
    ***********************************************/
    
    </script>
    And everything should work out fine, with the exception of the images configured in the ddsmoothmenu.js script (starting at about line #42):

    Code:
    ///////////////////////// Global Configuration Options: /////////////////////////
    
    //Specify full URL to down and right arrow images (23 is padding-right for top level LIs with drop downs, 6 is for vertical top level items with fly outs):
    arrowimages: {down:['downarrowclass', 'down.gif', 23], right:['rightarrowclass', 'right.gif', 6]},
    transition: {overtime:300, outtime:300}, //duration of slide in/ out animation, in milliseconds
    shadow: true, //enable shadow? (offsets now set in ddsmoothmenu.css stylesheet)
    showhidedelay: {showdelay: 100, hidedelay: 200}, //set delay in milliseconds before sub menus appear and disappear, respectively
    zindexvalue: 1000, //set z-index value for menus
    closeonnonmenuclick: true, //when clicking outside of any "toggle" method menu, should all "toggle" menus close? 
    closeonmouseout: false, //when leaving a "toggle" menu, should all "toggle" menus close? Will not work on touchscreen
    
    /////////////////////// End Global Configuration Options ////////////////////////
    Using a text only editor like NotePad, change those like so (again the network path, looking to the root where these images actually are):

    Code:
    arrowimages: {down:['downarrowclass', '/down.gif', 23], right:['rightarrowclass', '/right.gif', 6]},
    Save and use that file. None of this will hurt the other pages that were already working.

    Note: The network path will only work live, so you cannot test these changes locally.

    Note 2: The browser cache may need to be cleared and/or the page refreshed to see changes.
    - John
    ________________________

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

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

    Arona (08-18-2013)

  4. #3
    Join Date
    Aug 2013
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    thank you very very much , it worked ,

Similar Threads

  1. Smooth Navigational Menu - First Item/Anchor Tag Fires on Page Load.
    By DBriars in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 05-04-2012, 08:35 PM
  2. Smooth Navigational Menu (v1.5)
    By m.mari in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 02-05-2011, 02:57 PM
  3. Smooth Navigational Menu Vertical Menu Doesn't Work
    By IAmWEC in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 07-29-2010, 09:07 PM
  4. Smooth Navigational Menu (v1.01)
    By Marc777 in forum Dynamic Drive scripts help
    Replies: 5
    Last Post: 12-15-2008, 10:06 PM
  5. Smooth Navigational Menu: up instead of down
    By mffishdog in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 12-15-2008, 03:12 AM

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
  •