+ Reply to Thread
Results 1 to 13 of 13

Thread: Eak No space on my menu.... help

  1. #1
    zomex's Avatar
    zomex is offline Ultimate Babbler zomex has an outstanding reputation at WB (over 500 points) zomex has an outstanding reputation at WB (over 500 points) zomex has an outstanding reputation at WB (over 500 points) zomex has an outstanding reputation at WB (over 500 points) zomex has an outstanding reputation at WB (over 500 points) zomex has an outstanding reputation at WB (over 500 points)
    Join Date
    Jun 2009
    Location
    Kent, England
    Site
    www.zomex.com
    Posts
    1,621

    Default Eak No space on my menu.... help

    Hello all,

    I am a bit stuck because I would like to add new links on my top navigation but there is of course no space left. Would it be possible to turn the existing buttons into a drop down menu? If that were possible it would be great. Please note I love everything about the layout and do not mean change the menu images, I just wish to add some sort of drop down to them. I also do not wish to increase the width of the layout by adding new buttons because it's a good width for a top navigation website.

    For example for the 'company' button I could have the following drop down options

    - about us
    - why us?
    - testimonials

    I understand some visitors will not be able to see the drop down because they do not have java enabled so I will keep the links how they are now and if a drop down is possible it will give my visitors with java enabled more options and easier navigation.

    http://www.igxhost.com/

    Here is a great example of what I mean. I already have a JavaScript file which controls the roll over effect on my navigation. I’m guessing I would be able to incorporate the drop down in this file if it's at all possible to do? Bellow is my current JavaScript file.

    function MM_swapImgRestore() { //v3.0
    var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    }

    function MM_preloadImages() { //v3.0
    var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    }

    function MM_findObj(n, d) { //v4.01
    var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
    if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
    for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
    if(!x && d.getElementById) x=d.getElementById(n); return x;
    }

    function MM_swapImage() { //v3.0
    var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
    if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    }
    I would love to get this sorted out for future expansion reasons.

    My only other option would be to get rid of the domain checker on the top and change it to "client login" this way I can change the client button.

    Thanks for any advice and suggestions on this

    Jack
    Last edited by zomex; 07-04-2009 at 05:39 PM.
    Zomex | NEW web hosting plans ~ BETTER THAN GODADDY GUARANTEED
    Professional web hosting for both beginners and experts from just $3.99/month!
    cPanel - Auto Installer - LiteSpeed! - Daily Backups! - 24/7 Support
    Fellow WB members - save 50% off your web hosting account with coupon code WB

  2. #2
    zomex's Avatar
    zomex is offline Ultimate Babbler zomex has an outstanding reputation at WB (over 500 points) zomex has an outstanding reputation at WB (over 500 points) zomex has an outstanding reputation at WB (over 500 points) zomex has an outstanding reputation at WB (over 500 points) zomex has an outstanding reputation at WB (over 500 points) zomex has an outstanding reputation at WB (over 500 points)
    Join Date
    Jun 2009
    Location
    Kent, England
    Site
    www.zomex.com
    Posts
    1,621

    Default Might work after all

    I have just found a open source drop down menu here.

    http://www.dynamicdrive.com/dynamici...pmenuindex.htm

    This just might work. This menu is made up of three files.

    * anylinkmenu.js
    * menucontents.js
    * anylinkmenu.css

    Maybe I could add the contents of these files to my existing stylesheet and javascript making sure nothing is repeated.

    Im going to give it ago on a test page first.
    Zomex | NEW web hosting plans ~ BETTER THAN GODADDY GUARANTEED
    Professional web hosting for both beginners and experts from just $3.99/month!
    cPanel - Auto Installer - LiteSpeed! - Daily Backups! - 24/7 Support
    Fellow WB members - save 50% off your web hosting account with coupon code WB

  3. #3
    zomex's Avatar
    zomex is offline Ultimate Babbler zomex has an outstanding reputation at WB (over 500 points) zomex has an outstanding reputation at WB (over 500 points) zomex has an outstanding reputation at WB (over 500 points) zomex has an outstanding reputation at WB (over 500 points) zomex has an outstanding reputation at WB (over 500 points) zomex has an outstanding reputation at WB (over 500 points)
    Join Date
    Jun 2009
    Location
    Kent, England
    Site
    www.zomex.com
    Posts
    1,621

    Default

    Here is an example of the menu working

    https://www.sequencehosting.com/test/test.php

    This looks like it may work but the problem is I need a different drop down for 6 images.
    Zomex | NEW web hosting plans ~ BETTER THAN GODADDY GUARANTEED
    Professional web hosting for both beginners and experts from just $3.99/month!
    cPanel - Auto Installer - LiteSpeed! - Daily Backups! - 24/7 Support
    Fellow WB members - save 50% off your web hosting account with coupon code WB

  4. #4
    zomex's Avatar
    zomex is offline Ultimate Babbler zomex has an outstanding reputation at WB (over 500 points) zomex has an outstanding reputation at WB (over 500 points) zomex has an outstanding reputation at WB (over 500 points) zomex has an outstanding reputation at WB (over 500 points) zomex has an outstanding reputation at WB (over 500 points) zomex has an outstanding reputation at WB (over 500 points)
    Join Date
    Jun 2009
    Location
    Kent, England
    Site
    www.zomex.com
    Posts
    1,621

    Default

    I have just taken a look at the Javascript code and I can see how to set up different drop downs!!

    Now I just need to work out how to incorperate this to my existing menu. I need to incorperate the files for this menu into my existing files because last time I had more than 2 stylesheets it didn't work out too well.
    Zomex | NEW web hosting plans ~ BETTER THAN GODADDY GUARANTEED
    Professional web hosting for both beginners and experts from just $3.99/month!
    cPanel - Auto Installer - LiteSpeed! - Daily Backups! - 24/7 Support
    Fellow WB members - save 50% off your web hosting account with coupon code WB

  5. #5
    zomex's Avatar
    zomex is offline Ultimate Babbler zomex has an outstanding reputation at WB (over 500 points) zomex has an outstanding reputation at WB (over 500 points) zomex has an outstanding reputation at WB (over 500 points) zomex has an outstanding reputation at WB (over 500 points) zomex has an outstanding reputation at WB (over 500 points) zomex has an outstanding reputation at WB (over 500 points)
    Join Date
    Jun 2009
    Location
    Kent, England
    Site
    www.zomex.com
    Posts
    1,621

    Default Well it took me a few tries but I have some progress

    It seems to be working!

    I just need to do a bit of editing. Scroll over hosting on the main page if you wish to see the drop down.

    https://www.sequencehosting.com

    Wow im talking to myself but it's fine because this is so exciting!
    Zomex | NEW web hosting plans ~ BETTER THAN GODADDY GUARANTEED
    Professional web hosting for both beginners and experts from just $3.99/month!
    cPanel - Auto Installer - LiteSpeed! - Daily Backups! - 24/7 Support
    Fellow WB members - save 50% off your web hosting account with coupon code WB

  6. #6
    zomex's Avatar
    zomex is offline Ultimate Babbler zomex has an outstanding reputation at WB (over 500 points) zomex has an outstanding reputation at WB (over 500 points) zomex has an outstanding reputation at WB (over 500 points) zomex has an outstanding reputation at WB (over 500 points) zomex has an outstanding reputation at WB (over 500 points) zomex has an outstanding reputation at WB (over 500 points)
    Join Date
    Jun 2009
    Location
    Kent, England
    Site
    www.zomex.com
    Posts
    1,621

    Default

    Wow im surprised how easy this has been to set up. I only have 1 issue at the moment.

    1) for some reason I think the style sheets are mixing a bit for the default link style. You can see under the plans is the same as the links on the drop down. Although they should both be using different style sheets. Anyway to fix this? All I need to do is change the text color to black and get rid of the arrows image. The hover is fine so it's a bit strange how that happens. Could it be something to do with the name of the styles?
    Zomex | NEW web hosting plans ~ BETTER THAN GODADDY GUARANTEED
    Professional web hosting for both beginners and experts from just $3.99/month!
    cPanel - Auto Installer - LiteSpeed! - Daily Backups! - 24/7 Support
    Fellow WB members - save 50% off your web hosting account with coupon code WB

  7. #7
    zomex's Avatar
    zomex is offline Ultimate Babbler zomex has an outstanding reputation at WB (over 500 points) zomex has an outstanding reputation at WB (over 500 points) zomex has an outstanding reputation at WB (over 500 points) zomex has an outstanding reputation at WB (over 500 points) zomex has an outstanding reputation at WB (over 500 points) zomex has an outstanding reputation at WB (over 500 points)
    Join Date
    Jun 2009
    Location
    Kent, England
    Site
    www.zomex.com
    Posts
    1,621

    Default

    Problem solved, I added the following styles to the wrong part of the style sheet.

    color: #FFFFFF;
    background: none;
    That's all it took to do.

    Now im left with one last problem. On some browsers my drop down appears half way down the image and on others it appears perfectly (IE looks perfect, surprisingly ) I would like the menu to appear underneath the menu button like it does in IE not halfway down the button like it does in FF.

    I have tried adding a value to top: 0; with no luck. Anyway here is my style sheet for the menu.

    Code:
    .anylinkmenu{
    position: absolute;
    left: 0;
    top: 0;
    visibility: hidden;
    border: 1px solid black;
    border-bottom-width: 0;
    font: normal 12px Verdana;
    line-height: 18px;
    z-index: 100;
    background: #78C9F9;
    width: 200px;
    }
    
    .anylinkmenu ul{
    margin: 0;
    padding: 0;
    list-style-type: none;
    }
    
    .anylinkmenu ul li a{
    width: 100%;
    display: block;
    text-indent: 3px;
    border-bottom: 1px solid black;
    padding: 2px 0;
    text-decoration: none;
    font-weight: bold;
    text-indent: 5px;
    color: #000000;
    background: none;
    }
    
    .anylinkmenu a:hover{ /*hover background color*/
    background: #16191B;
    color: #FFFFFF;
    }
    
    .anylinkmenucols{
    position: absolute;
    width: 350px;
    left: 0;
    top: 0;
    visibility: hidden;
    border: 1px solid black;
    padding: 10px;
    font: normal 12px Verdana;
    z-index: 100;
    background: #E9E9E9;
    }
    
    .anylinkmenucols li{
    padding-bottom: 3px;
    }
    
    .anylinkmenucols .column{
    float: left;
    padding: 3px 8px;
    margin-right: 5px;
    background: #E0E0E0;
    }
    
    .anylinkmenucols .column ul{
    margin: 0;
    padding: 0;
    list-style-type: none;
    }
    Thanks for any help! I can't wait, so excited!

    Jack
    Zomex | NEW web hosting plans ~ BETTER THAN GODADDY GUARANTEED
    Professional web hosting for both beginners and experts from just $3.99/month!
    cPanel - Auto Installer - LiteSpeed! - Daily Backups! - 24/7 Support
    Fellow WB members - save 50% off your web hosting account with coupon code WB

  8. #8
    kelevraco's Avatar
    kelevraco is offline Supreme Babbler kelevraco has an outstanding reputation at WB (over 500 points) kelevraco has an outstanding reputation at WB (over 500 points) kelevraco has an outstanding reputation at WB (over 500 points) kelevraco has an outstanding reputation at WB (over 500 points) kelevraco has an outstanding reputation at WB (over 500 points) kelevraco has an outstanding reputation at WB (over 500 points)
    Join Date
    May 2009
    Location
    Colorado
    Posts
    511

    Default

    Wow you have a whole thread here just to yourself. Congrats on getting things worked out though.

  9. #9
    James's Avatar
    James is offline Super Moderator James is an elite member of WB with the maximum amount of reputation bars James is an elite member of WB with the maximum amount of reputation bars James is an elite member of WB with the maximum amount of reputation bars James is an elite member of WB with the maximum amount of reputation bars James is an elite member of WB with the maximum amount of reputation bars James is an elite member of WB with the maximum amount of reputation bars James is an elite member of WB with the maximum amount of reputation bars James is an elite member of WB with the maximum amount of reputation bars James is an elite member of WB with the maximum amount of reputation bars James is an elite member of WB with the maximum amount of reputation bars James is an elite member of WB with the maximum amount of reputation bars
    Join Date
    Dec 2007
    Location
    Alexandria, MN USA
    Posts
    3,070

    Default Good work, Jack!

    It is good to ask questions; it is also good to answer them yourself! It shows your mind is in gear and producing well for you. Keep up the good work.
    Good Success!

    Douglas County Master Gardeners
    "We don't always get what we want, but we always get what we expect."

  10. #10
    zomex's Avatar
    zomex is offline Ultimate Babbler zomex has an outstanding reputation at WB (over 500 points) zomex has an outstanding reputation at WB (over 500 points) zomex has an outstanding reputation at WB (over 500 points) zomex has an outstanding reputation at WB (over 500 points) zomex has an outstanding reputation at WB (over 500 points) zomex has an outstanding reputation at WB (over 500 points)
    Join Date
    Jun 2009
    Location
    Kent, England
    Site
    www.zomex.com
    Posts
    1,621

    Default

    Wow you have a whole thread here just to yourself. Congrats on getting things worked out though.
    Haha yeah I ask always ask the question in advance then try my hardest to resolve it.

    Quote Originally Posted by James View Post
    It is good to ask questions; it is also good to answer them yourself! It shows your mind is in gear and producing well for you. Keep up the good work.
    Thanks James, I always attempt things myself before asking for help. I really enjoy every second of this and it's really satisfying figuring something out myself.

    The only issue I currently have is with the drop down only showing up half way down the button. All I need to do is get it to show up underneath the button.

    I will keep working at it
    Zomex | NEW web hosting plans ~ BETTER THAN GODADDY GUARANTEED
    Professional web hosting for both beginners and experts from just $3.99/month!
    cPanel - Auto Installer - LiteSpeed! - Daily Backups! - 24/7 Support
    Fellow WB members - save 50% off your web hosting account with coupon code WB

  11. #11
    William Wilson's Avatar
    William Wilson is offline Supreme Babbler William Wilson has more than the average amount of reputation points
    Join Date
    Feb 2009
    Location
    South Carolina
    Posts
    776

    Default

    Very interesting posts...Perhaps it is helpful to you to put things down and then look at them again...I know when I study something, I have found this to be very helpful...it seems to put the mind in "another dimension"...Anyhow, I am glad you are getting it resolved...All the best...William Wilson
    ...Peace...Love...Respect...

  12. #12
    zomex's Avatar
    zomex is offline Ultimate Babbler zomex has an outstanding reputation at WB (over 500 points) zomex has an outstanding reputation at WB (over 500 points) zomex has an outstanding reputation at WB (over 500 points) zomex has an outstanding reputation at WB (over 500 points) zomex has an outstanding reputation at WB (over 500 points) zomex has an outstanding reputation at WB (over 500 points)
    Join Date
    Jun 2009
    Location
    Kent, England
    Site
    www.zomex.com
    Posts
    1,621

    Default

    Quote Originally Posted by William Wilson View Post
    Very interesting posts...Perhaps it is helpful to you to put things down and then look at them again...I know when I study something, I have found this to be very helpful...it seems to put the mind in "another dimension"...Anyhow, I am glad you are getting it resolved...All the best...William Wilson
    Your right William, posting on here motivates me to fix the problem before someone replies. If I cannot fix it I know there is a chance someone will post some advice on here. Thank you, yep just need to figure out how I make the drop down menu appear underneath the image.

    Once I figure out this problem it's completely done and I will just have to add options to the drop down.

    Then I will get started on some video tutorials.
    Zomex | NEW web hosting plans ~ BETTER THAN GODADDY GUARANTEED
    Professional web hosting for both beginners and experts from just $3.99/month!
    cPanel - Auto Installer - LiteSpeed! - Daily Backups! - 24/7 Support
    Fellow WB members - save 50% off your web hosting account with coupon code WB

  13. #13
    zomex's Avatar
    zomex is offline Ultimate Babbler zomex has an outstanding reputation at WB (over 500 points) zomex has an outstanding reputation at WB (over 500 points) zomex has an outstanding reputation at WB (over 500 points) zomex has an outstanding reputation at WB (over 500 points) zomex has an outstanding reputation at WB (over 500 points) zomex has an outstanding reputation at WB (over 500 points)
    Join Date
    Jun 2009
    Location
    Kent, England
    Site
    www.zomex.com
    Posts
    1,621

    Default

    Thanks for all your support everyone,

    I think I have reached my limit with the last hurdle. All I need to do is change the style sheet so the drop down box will appear underneath the button image.

    Bellow is the style sheet for the dropdown.

    Code:
    .anylinkmenu{
    position: absolute;
    left: 0;
    top: 0;
    visibility: hidden;
    border: 1px solid black;
    border-bottom-width: 0;
    font: normal 12px Verdana;
    line-height: 18px;
    z-index: 100;
    background: #78C9F9;
    width: 200px;
    }
    
    .anylinkmenu ul{
    margin: 0;
    padding: 0;
    list-style-type: none;
    }
    
    .anylinkmenu ul li a{
    width: 100&#37;;
    display: block;
    text-indent: 3px;
    border-bottom: 1px solid black;
    padding: 2px 0;
    text-decoration: none;
    font-weight: bold;
    text-indent: 5px;
    color: #000000;
    background: none;
    }
    
    .anylinkmenu a:hover{ /*hover background color*/
    background: #16191B;
    color: #FFFFFF;
    }
    
    .anylinkmenucols{
    position: absolute;
    width: 350px;
    left: 0;
    top: 0;
    visibility: hidden;
    border: 1px solid black;
    padding: 10px;
    font: normal 12px Verdana;
    z-index: 100;
    background: #E9E9E9;
    }
    
    .anylinkmenucols li{
    padding-bottom: 3px;
    }
    
    .anylinkmenucols .column{
    float: left;
    padding: 3px 8px;
    margin-right: 5px;
    background: #E0E0E0;
    }
    
    .anylinkmenucols .column ul{
    margin: 0;
    padding: 0;
    list-style-type: none;
    }
    I have attached 2 images, one showing how I would like it and the other is showing up half way down the image.

    It's strange because Internet Explorer is showing it perfectly where as Firefox is displaying the drop down on the image.

    Thanks for any help on this last issue I have.

    EDIT: Looks like I can only upload 1 attachment so I have uploaded a screenshot from Firefox which shows how I would not like it to show up.
    Attached Images
    Last edited by zomex; 07-05-2009 at 11:57 AM.
    Zomex | NEW web hosting plans ~ BETTER THAN GODADDY GUARANTEED
    Professional web hosting for both beginners and experts from just $3.99/month!
    cPanel - Auto Installer - LiteSpeed! - Daily Backups! - 24/7 Support
    Fellow WB members - save 50% off your web hosting account with coupon code WB

+ Reply to Thread

Posting Permissions

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