Width of vertical menu in table
Width of vertical menu in table
Hello. I testing out this menu script to see if it can be integrated into my site. I cannot figure out how to make the menu as wide as the table cell I am putting it in.
See example here: http://www.sg1archive.com/index2.shtml
Thanks
See example here: http://www.sg1archive.com/index2.shtml
Thanks
Took me forever to find it. You have to change this in the menu_data.js file to
That shadow is shifting the menu to make the shadow. Then on the page in the main menu put the following getting rid of top and left positions
Also, just for your info, if you make the table 120 width instead of 122 it will match the Navigation menu below, and in this menu, if you put in non-breaking lines spaces after the words like Home you can shift the arrows over to the right side more. You'll need to experiment on how many for each item. Lastly, in the menu_data.js file, you should change the _subOffsetLeft=-10 a bit lower, like maybe -2 or -3. That -10 is putting the submenu 10 pixels into the main menu.
Really nice page. I like Stargate.
Ruth
Code: Select all
overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color='#777777', Direction=135, Strength=5)";
Code: Select all
overfilter="Fade(duration=0.2);Alpha(opacity=90)";
Code: Select all
with(milonic=new menuname("Main Menu")){
style=menuStyle;
menuwidth="100%";
alwaysvisible=1;
position="relative";
Really nice page. I like Stargate.
Ruth
I tried what you said, but I still cannot get it to work. It is only as wide as the text, and that is useless to me. What am I missing?
Also, it doesn't even appear at all in Internet Explorer on the Mac. I need this to work in all browsers. I'm thinking of dropping the idea for javascript menus altogether at this point. It's too much work for something that should be easy to set up.
Also, it doesn't even appear at all in Internet Explorer on the Mac. I need this to work in all browsers. I'm thinking of dropping the idea for javascript menus altogether at this point. It's too much work for something that should be easy to set up.
Good grief, don't drop it just yet! You've got a great looking site, and you picked the best menu for it.
Now for the picky-picky...
This statement in your css...
...is overriding the menu and messing up the spacing. I also discovered that if the arrow.gif is left out the separator goes all the way to the right side. As soon as the arrow is added it shrinks. Actually, the menu itself is the proper width, it's what's inside it that has a problem.
For now I dropped the above css line, and you can see what I think you want at http://www.west.asu.edu/sa/testsite/sg/. I know just leaving that out doesn't fix your problem, but perhaps it will give you a direction (css and I don't get along!).
Also, your HTML needs some cleaning up...
1. Numerous missing " " around tag attributes.
2. Sometimes the use of ' ' instead of " ".
3. Numerous unclosed tags (<td>, <tr>, <span>, <a name...>, etc.).
PS - Don't forget many episodes of SG tonight - it's Monday...
Now for the picky-picky...
This statement in your css...
Code: Select all
TABLE, TR, TD { font-family: Verdana, Tahoma, Arial; font-size: 8.5pt; color: #000000 }
For now I dropped the above css line, and you can see what I think you want at http://www.west.asu.edu/sa/testsite/sg/. I know just leaving that out doesn't fix your problem, but perhaps it will give you a direction (css and I don't get along!).
Also, your HTML needs some cleaning up...
1. Numerous missing " " around tag attributes.
2. Sometimes the use of ' ' instead of " ".
3. Numerous unclosed tags (<td>, <tr>, <span>, <a name...>, etc.).
PS - Don't forget many episodes of SG tonight - it's Monday...
John
Sorry, I left out itemwidth="100%"; Many of us who use table bound menus have found that using that solves a lot of problems. Also, you need to get the latest release. If you login and go here http://milonic.com/forum/viewtopic.php?t=3108 and check watch this topic, you'll get an email whenever there's a new release with any new capabilities added or minor bug fixes. I downloaded and tested your page in ie5.5, ns6, 7, and firebird .07 with the itemwidth="100%"; added along with the menuwidth. It renders perfectly in them, with the arrow all the way to the right. And, I agree with John, you have a great site. I've been browsing.... Love your gate!
Ruth
PS for John, what I've done for a workaround to enable still having such coding is to make that td coding into a class and just assigning it to tables, then I just leave it out of the table I put the menu in. Works on my browsers but not sure about macs since I don't have one. Got one to give away so I can test my pages ?
Ruth
PS for John, what I've done for a workaround to enable still having such coding is to make that td coding into a class and just assigning it to tables, then I just leave it out of the table I put the menu in. Works on my browsers but not sure about macs since I don't have one. Got one to give away so I can test my pages ?

Last edited by Ruth on Mon Mar 22, 2004 7:13 pm, edited 1 time in total.
What the heck is a G4, sounds like some guy thing, you know dual carbs? And, would it be too old to test my pages? [I just finally tossed two apple II c, I think it was c maybe one was e]
About the putting the script call in the cell, I didn't think you could do that, the directions say you can't?
Ruth

About the putting the script call in the cell, I didn't think you could do that, the directions say you can't?
Ruth
G4 is the chip designation (like P4 for - well, you know). Dual carbs? Yeah, you could say that - it has 2 main processor chips.Ruth wrote:What the heck is a G4, sounds like some guy thing, you know dual carbs? And, would it be too old to test my pages? [I just finally tossed two apple II c, I think it was c maybe one was e]![]()
Old? No. Got it new 3 years ago, and the G4 is still a very powerful chip. I'll send you the full specs off-list.
It works! At least I think my mock-up is right...Ruth wrote:About the putting the script call in the cell, I didn't think you could do that, the directions say you can't?
John
Thanks for all the help everyone. I think I have most of it sorted out now:
http://www.sg1archive.com/index2.shtml
I still can't get it to work in IE on Mac though. Can someone take a look at what I've got and help me out?

http://www.sg1archive.com/index2.shtml
I still can't get it to work in IE on Mac though. Can someone take a look at what I've got and help me out?

Hi Ruth, I have the iMac G4 love it, although I think John does have the dual carbs and probably a lot newer than mine;) They get all the best educational deals, its sad.
Hi Arcady,
I'll take another look at mac, make sure you have the latest update, there were some ie mac problems on the previous update. Mine works fine now, but one little error could be causing it not to load.
I see navigation and site news now. Almost there. you have to lose the ... before the paths on your index and in menu_data.js they should all start with a slash /
maz
Hi Arcady,
I'll take another look at mac, make sure you have the latest update, there were some ie mac problems on the previous update. Mine works fine now, but one little error could be causing it not to load.
I see navigation and site news now. Almost there. you have to lose the ... before the paths on your index and in menu_data.js they should all start with a slash /
maz