Website Babble Webmaster Forums  


Go Back   Website Babble Webmaster Forums > Creating a Website > Miscellaneous Website Questions

Your WB Notifications

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-04-2009, 05:19 PM
sequencehosting's Avatar
Ultimate Babbler
 
Join Date: Jun 2009
Location: Kent, England
Posts: 1,785
sequencehosting has a stellar WB reputation (over 400 points)sequencehosting has a stellar WB reputation (over 400 points)sequencehosting has a stellar WB reputation (over 400 points)sequencehosting has a stellar WB reputation (over 400 points)sequencehosting has a stellar WB reputation (over 400 points)
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.

Quote:
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
__________________
Sequence Hosting - Now Hosting Over 75 Websites/Blogs!
Professional cPanel Web Hosting from $1/month!
Create your own website/blog/forum with our 30-Day FREE Trial
Got a question about web hosting? I will answer it for FREE! ASK NOW

Last edited by sequencehosting; 07-04-2009 at 05:39 PM.
Reply With Quote
  #2 (permalink)  
Old 07-04-2009, 05:52 PM
sequencehosting's Avatar
Ultimate Babbler
 
Join Date: Jun 2009
Location: Kent, England
Posts: 1,785
sequencehosting has a stellar WB reputation (over 400 points)sequencehosting has a stellar WB reputation (over 400 points)sequencehosting has a stellar WB reputation (over 400 points)sequencehosting has a stellar WB reputation (over 400 points)sequencehosting has a stellar WB reputation (over 400 points)
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.
__________________
Sequence Hosting - Now Hosting Over 75 Websites/Blogs!
Professional cPanel Web Hosting from $1/month!
Create your own website/blog/forum with our 30-Day FREE Trial
Got a question about web hosting? I will answer it for FREE! ASK NOW
Reply With Quote
  #3 (permalink)  
Old 07-04-2009, 06:04 PM
sequencehosting's Avatar
Ultimate Babbler
 
Join Date: Jun 2009
Location: Kent, England
Posts: 1,785
sequencehosting has a stellar WB reputation (over 400 points)sequencehosting has a stellar WB reputation (over 400 points)sequencehosting has a stellar WB reputation (over 400 points)sequencehosting has a stellar WB reputation (over 400 points)sequencehosting has a stellar WB reputation (over 400 points)
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.
__________________
Sequence Hosting - Now Hosting Over 75 Websites/Blogs!
Professional cPanel Web Hosting from $1/month!
Create your own website/blog/forum with our 30-Day FREE Trial
Got a question about web hosting? I will answer it for FREE! ASK NOW
Reply With Quote
  #4 (permalink)  
Old 07-04-2009, 06:08 PM
sequencehosting's Avatar
Ultimate Babbler
 
Join Date: Jun 2009
Location: Kent, England
Posts: 1,785
sequencehosting has a stellar WB reputation (over 400 points)sequencehosting has a stellar WB reputation (over 400 points)sequencehosting has a stellar WB reputation (over 400 points)sequencehosting has a stellar WB reputation (over 400 points)sequencehosting has a stellar WB reputation (over 400 points)
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.
__________________
Sequence Hosting - Now Hosting Over 75 Websites/Blogs!
Professional cPanel Web Hosting from $1/month!
Create your own website/blog/forum with our 30-Day FREE Trial
Got a question about web hosting? I will answer it for FREE! ASK NOW
Reply With Quote
  #5 (permalink)  
Old 07-04-2009, 06:50 PM
sequencehosting's Avatar
Ultimate Babbler
 
Join Date: Jun 2009
Location: Kent, England
Posts: 1,785
sequencehosting has a stellar WB reputation (over 400 points)sequencehosting has a stellar WB reputation (over 400 points)sequencehosting has a stellar WB reputation (over 400 points)sequencehosting has a stellar WB reputation (over 400 points)sequencehosting has a stellar WB reputation (over 400 points)
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!
__________________
Sequence Hosting - Now Hosting Over 75 Websites/Blogs!
Professional cPanel Web Hosting from $1/month!
Create your own website/blog/forum with our 30-Day FREE Trial
Got a question about web hosting? I will answer it for FREE! ASK NOW
Reply With Quote
  #6 (permalink)  
Old 07-04-2009, 07:41 PM
sequencehosting's Avatar
Ultimate Babbler
 
Join Date: Jun 2009
Location: Kent, England
Posts: 1,785
sequencehosting has a stellar WB reputation (over 400 points)sequencehosting has a stellar WB reputation (over 400 points)sequencehosting has a stellar WB reputation (over 400 points)sequencehosting has a stellar WB reputation (over 400 points)sequencehosting has a stellar WB reputation (over 400 points)
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?
__________________
Sequence Hosting - Now Hosting Over 75 Websites/Blogs!
Professional cPanel Web Hosting from $1/month!
Create your own website/blog/forum with our 30-Day FREE Trial
Got a question about web hosting? I will answer it for FREE! ASK NOW
Reply With Quote
  #7 (permalink)  
Old 07-04-2009, 08:11 PM
sequencehosting's Avatar
Ultimate Babbler
 
Join Date: Jun 2009
Location: Kent, England
Posts: 1,785
sequencehosting has a stellar WB reputation (over 400 points)sequencehosting has a stellar WB reputation (over 400 points)sequencehosting has a stellar WB reputation (over 400 points)sequencehosting has a stellar WB reputation (over 400 points)sequencehosting has a stellar WB reputation (over 400 points)
Default

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

Quote:
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
__________________
Sequence Hosting - Now Hosting Over 75 Websites/Blogs!
Professional cPanel Web Hosting from $1/month!
Create your own website/blog/forum with our 30-Day FREE Trial
Got a question about web hosting? I will answer it for FREE! ASK NOW
Reply With Quote
  #8 (permalink)  
Old 07-04-2009, 11:44 PM
kelevraco's Avatar
Supreme Babbler
 
Join Date: May 2009
Location: Colorado
Posts: 511
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)
Send a message via MSN to kelevraco Send a message via Yahoo to kelevraco
Default

Wow you have a whole thread here just to yourself. Congrats on getting things worked out though.
__________________
Reply With Quote
  #9 (permalink)  
Old 07-04-2009, 11:59 PM
James's Avatar
Super Moderator
 
Join Date: Dec 2007
Posts: 2,683
James is an elite member of WB with the maximum amount of reputation barsJames is an elite member of WB with the maximum amount of reputation barsJames is an elite member of WB with the maximum amount of reputation barsJames is an elite member of WB with the maximum amount of reputation barsJames is an elite member of WB with the maximum amount of reputation barsJames is an elite member of WB with the maximum amount of reputation barsJames is an elite member of WB with the maximum amount of reputation barsJames is an elite member of WB with the maximum amount of reputation barsJames is an elite member of WB with the maximum amount of reputation barsJames is an elite member of WB with the maximum amount of reputation barsJames is an elite member of WB with the maximum amount of reputation bars
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."
Reply With Quote
  #10 (permalink)  
Old 07-05-2009, 07:48 AM
sequencehosting's Avatar
Ultimate Babbler
 
Join Date: Jun 2009
Location: Kent, England
Posts: 1,785
sequencehosting has a stellar WB reputation (over 400 points)sequencehosting has a stellar WB reputation (over 400 points)sequencehosting has a stellar WB reputation (over 400 points)sequencehosting has a stellar WB reputation (over 400 points)sequencehosting has a stellar WB reputation (over 400 points)
Default

Quote:
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
__________________
Sequence Hosting - Now Hosting Over 75 Websites/Blogs!
Professional cPanel Web Hosting from $1/month!
Create your own website/blog/forum with our 30-Day FREE Trial
Got a question about web hosting? I will answer it for FREE! ASK NOW
Reply With Quote
  #11 (permalink)  
Old 07-05-2009, 10:03 AM
William Wilson's Avatar
Supreme Babbler
 
Join Date: Feb 2009
Location: South Carolina
Posts: 759
William Wilson has more than the average amount of reputation points
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...
Reply With Quote
  #12 (permalink)  
Old 07-05-2009, 11:17 AM
sequencehosting's Avatar
Ultimate Babbler
 
Join Date: Jun 2009
Location: Kent, England
Posts: 1,785
sequencehosting has a stellar WB reputation (over 400 points)sequencehosting has a stellar WB reputation (over 400 points)sequencehosting has a stellar WB reputation (over 400 points)sequencehosting has a stellar WB reputation (over 400 points)sequencehosting has a stellar WB reputation (over 400 points)
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.
__________________
Sequence Hosting - Now Hosting Over 75 Websites/Blogs!
Professional cPanel Web Hosting from $1/month!
Create your own website/blog/forum with our 30-Day FREE Trial
Got a question about web hosting? I will answer it for FREE! ASK NOW
Reply With Quote
  #13 (permalink)  
Old 07-05-2009, 11:45 AM
sequencehosting's Avatar
Ultimate Babbler
 
Join Date: Jun 2009
Location: Kent, England
Posts: 1,785
sequencehosting has a stellar WB reputation (over 400 points)sequencehosting has a stellar WB reputation (over 400 points)sequencehosting has a stellar WB reputation (over 400 points)sequencehosting has a stellar WB reputation (over 400 points)sequencehosting has a stellar WB reputation (over 400 points)
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%;
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
File Type: jpg bad.jpg (89.1 KB, 1 views)
__________________
Sequence Hosting - Now Hosting Over 75 Websites/Blogs!
Professional cPanel Web Hosting from $1/month!
Create your own website/blog/forum with our 30-Day FREE Trial
Got a question about web hosting? I will answer it for FREE! ASK NOW

Last edited by sequencehosting; 07-05-2009 at 11:57 AM.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -6. The time now is 06:11 AM.


 Subscribe to RSS

WB Sponsors

flash chat

Home Jobs Online

Search Engine Marketing

Paid Surveys

custom website design

Web Design Newcastle



 Subscribe to the Website Babble Feeds

2 Create a Website Homepage | 2 Create a Website Blog


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0