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

Thread: repeating top menu and exmplmenu_var problem

  1. #1
    Join Date
    Mar 2005
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default repeating top menu and exmplmenu_var problem

    Dear All,

    I am not an advanced web designer. I have problem with exmplmenu_var and menu_com files. I cannot stop reopening of top menus everytime I press a link on the main page. With every page opened, top menu and main logo appear on top.

    Do I have to correct my lines such as "Menu1=new Array("Home","http://www.mywebsite/file name","",0,xxx,xxx)" to "Menu1=new Array("Home","file name","",0,xxx,xxx)" ? AND remove the file exmplmenu_var and menu_com from the related sub-folders and keep these files in a separate folder?

    To see the problem in site, please visit "www.ashfordformulaturkey.com"

    Replies in detail will be appreciated too much.

    Regards,

    yavuz

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default repeat

    The trouble looks to be with frames, you are putting framsets inside of your main frame page each time you click on a menu item. Go back to the configuration of the menu and substitute the the name of the page you want displayed inside your original frameset instead of a new frameset that contains the page you want displayed.

  3. #3
    Join Date
    Mar 2005
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    do you mean remove of top files form other page folders? Keeping top menu only in index file (including menu and top files) will solve the problem? I tried something similiar to this, and this caused repeting gaps under top file everythime I opened a link.

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default Opening Frames Inside of Frames

    I didn't mean to remove anything. What appears to be happening is this:

    Your main page at: www.ashfordformulaturkey.com
    I guess it is index.htm, it is a frameset or a page containing frames. You are loading your other pages into its bottom frame named 'main'. However, these pages you are loading in appear to also be framesets. So you are putting frames inside of frames. Your homepage diagrams like this (in NS7.2):

    (frames)
    |
    |----www.ashfordformulaturkey.com/index_files/top.htm
    |----www.ashfordformulaturkey.com/index_files/home.htm

    I click on one of the links (Fabrikalar & Depolar), I get this:

    (frames)
    |
    |----www.ashfordformulaturkey.com/fabrika_files/top.htm
    |----www.ashfordformulaturkey.com/fabrika_files/wharehousefactory.htm
    |----www.ashfordformulaturkey.com/index_files/top.htm
    |----www.ashfordformulaturkey.com/index_files/home.htm

    I should get this:

    (frames)
    |
    |----www.ashfordformulaturkey.com/fabrika_files/top.htm
    |----www.ashfordformulaturkey.com/fabrika_files/wharehousefactory.htm

    or better yet this:

    (frames)
    |
    |----www.ashfordformulaturkey.com/index_files/top.htm
    |----www.ashfordformulaturkey.com/fabrika_files/wharehousefactory.htm

    In other words, in your exmplmenu_var.js this line:

    Code:
    Menu2_1=new Array("Depolar & Fabrikalar","http://www.ashfordformulaturkey.com/fabrika.htm","",0,30,90);
    should be:
    Code:
    Menu2_1=new Array("Depolar & Fabrikalar","http://www.ashfordformulaturkey.com/fabrika_files/warehousefactories.htm","",0,30,90);
    Load the page into your main frame, not another set of frames into your main frame. And similarly for all the rest of the links in exmplmenu_var.js
    Last edited by jscheuer1; 03-15-2005 at 04:49 AM. Reason: add info

  5. #5
    Join Date
    Mar 2005
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    thank you very much for your comprehensive reply.

  6. #6
    Join Date
    Mar 2005
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    jscheuer1,

    can you explain what you mean "Load the page into your main frame, not another set of frames into your main frame?"

    Regards,

    yavuz

  7. #7
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default Hmmm

    I'm not sure I can be much clearer except to say I remember when I first started working with frames. It was hard for me because I could never see the frameset page all by itself with no pages loaded into it. That made it hard to understand what was happening. Try the change to your exmplmenu_var.js file that I suggested and observe the result when you click on the Fabrikalar & Depolar link. That should make it clearer than anything more I can say. If you are not happy with the result, let me know what happened, perhaps I missed something in your set up.

  8. #8
    Join Date
    Mar 2005
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I changed exmplmenu_var.js as you said. The top menu does not repeat itself, however; this time, the horizontal menu coming with exmplmenu_var.js does not appear.

    I keep exmplmenu_var.js and menu_var files under index_files>homefiles. Is this the right place? If I replace them under main folder, this time horizontal menu does not appear.

    maybe, solution is so simple and i cannot see!!!

  9. #9
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default Almost there

    OK, I see it, now all you need to do is change the code for the menu on wharehousefactories.htm
    HTML Code:
          <SCRIPT src="warehousefactories_files/exmplmenu_var.js" 
          type=text/javascript></SCRIPT>
    
          <SCRIPT src="warehousefactories_files/menu_com.js" 
          type=text/javascript></SCRIPT>
    so it uses the absolute path to the menu files. That's a path that starts:

    http://www.ashfordformulaturkey.com/

    and ends with the exact spot where the menu_com.js and the exmplmenu_var.js files are. Since you have absolute paths written in those files, only one set should be needed.
    Last edited by jscheuer1; 03-17-2005 at 09:48 PM.

  10. #10
    Join Date
    Mar 2005
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    this is where I stuck now. How do I put the code for the menu on wharehousefactories.htm file?

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
  •