Click to See Complete Forum and Search --> : [RESOLVED] Menu issues
cypher5783
August 28th, 2006, 11:52 PM
Got a piece of code from a recommended site using CSS and JScript to make a collapseable menu but can't figure out what is locking the menu in place i can't put it where i want eg.. in row 2 column 1 of a table i make attached are the files if anybody can help.
P.S. Had to add a .txt extention on the files to be able to upload them. It is working code just remove the .txt extension
PeejAvery
August 29th, 2006, 11:37 AM
Right now, there is no X Y coordinates set for the menu. I added them into the CSS of the HTML page. Edit them as you wish.
<style type="text/css">
.menu {
top: 500px;
left: 300px;
position:absolute;
background-color:#000099;
border:1px solid black;
width:150;
font-size:11px;
font-family:verdana;
color: #FFFF00 ;
font:bold;
position:absolute;
}
.item_panel {
top: 500px;
left: 300px;
width:150;
border-left:1px solid black;
border-right:1px solid black;
clip:rect(0,150,0,0);
position:absolute;
}
...
cypher5783
August 29th, 2006, 11:40 AM
that will still leave the object floating on the page. is there not a way to make it solid inside the table?
PeejAvery
August 29th, 2006, 12:40 PM
In both files, remove lines such as...
position: absolute;
or
style="position: absolute"
I have attached the files with these removed parts. Now you have to move the script tags to position it in a table to your liking.
cypher5783
August 29th, 2006, 03:13 PM
Well that will solve the issue of the absolute position but makes the menu static and unanimated. Solve 1 issue to create another.
PeejAvery
August 29th, 2006, 04:17 PM
Well that will solve the issue of the absolute position but makes the menu static and unanimated. Solve 1 issue to create another.
You can't have both. They are complete opposites. Dynamic JS versus a static table.
cypher5783
August 29th, 2006, 04:19 PM
My goal is to have a menu that operates simular to the 1 on this site.
http://www.mygwl.com/
PeejAvery
August 29th, 2006, 06:43 PM
Okay, I get what you are saying. How much of a beginner are you?
Basically, its not that simple and I don't have time to go coding a whole menu system for you.
cypher5783
August 29th, 2006, 06:45 PM
not too much of a beginner. Just not sure how that menu is setup. If it's an applet, Jscript, css, or what? found something simular and if i can find a way to get it done i can figure it out.
PeejAvery
August 29th, 2006, 10:58 PM
It's JavaScript.
In order to get that done, you will need to use <DIV> with styles to change the display to hidden from block and vice versa. You will also need to use arrays for the menu links and tables to format your menu.
I can whip you up a small example tomorrow in my free time, if I have any. I usually don't.
cypher5783
August 29th, 2006, 11:02 PM
ok so it's still just jscript and css. not a big deal i can figure it out then. i do appreciate the help.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.