473,800 Members | 2,476 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Anyone familiar with "Gurtcom" menus???

Anyone:

As a non-js programmer (but incorporater of js code into my perl/php/html
sites) I am attempting to create vertical self expanding menu (when the
user cursors over a selection it will popup an additional set of selections
if there are any).

All my searching has brought me to a free version from www.gurtom.com,
especially their demo2 menu. By deciphering their code I've been able to
adjust the content, sizing, relative positioning within itself, colors,
actions, etc. But, one thing I CANNOT seem to overcome is the fact that it
is position is ABSOLUTE. As a result this does NOT function well within a
multi-box site design.

I was hoping someone was either familiar with this set of menu code
sufficiently enough to render it "relatively " positioned, OR be willing to
take a look at it (as a challenge) in an attempt to make it relatively
positioned.

Looking through the .js code I've found where it outputs "position:
absolute;" and changed that to "relative" but then the menu seems to fall
apart all over the screen.

If anyone is interested or willing, please take a look or respond and I
suppose I can even provide a sample of this code (along with the proper
heading disclosures, of course).

It seems to function quite well and very fast. But position is the BIG
issue.

Comments please?

Thanks,

bobmct
Jan 19 '07 #1
1 1348
ASM
bobmct a écrit :
Anyone:

As a non-js programmer (but incorporater of js code into my perl/php/html
sites) I am attempting to create vertical self expanding menu (when the
user cursors over a selection it will popup an additional set of selections
if there are any).
But, one thing I CANNOT seem to overcome is the fact that it
is position is ABSOLUTE. As a result this does NOT function well within a
multi-box site design.
Most of the time popup menus are in absolute.
If not, you get an yoyo (jojo) effect with what follows your menu when
sub-menus expand.

If nothing after the menu, you can allways put it in a relative and
sized div.

Simple example without relative nor absolute :

<html>
<script type="text/javascript">
onload = function() {
var IE = false; /*@cc_on IE=true; @*/
if(IE) {
var m = document.getEle mentById('menu' );
m = m.getElementsBy TagName('LI');
for(var i=0; i<m.length; i++) {
if(m[i].getElementsByT agName('UL')) {
m[i].onmouseover=fu nction(){this.c lassName='ie';} ;
m[i].onmouseout=fun ction(){this.cl assName='';};
}
}
}
}
</script>
<style type="text/css">

/* *** roll-over via css *** */
#menu li ul { display: none; }
#menu li:hover ul,
#menu li.ie ul { display: block; }

/** some more css ***/
#menu { font-size: 16px; font-family: verdana, arial; }
#menu,
#menu ul,
#menu li { list-style: none; width: 150px;
margin: 0px; padding: 0px; }
#menu a { display:block; width: 100%; background: #eee;
text-decoration: none; padding-left: 5px; }
#menu a:hover { background: #ccc; padding-left: 10px; }
#menu li ul li a { background: #ffc; padding-left: 15px; }
#menu li ul li a:hover { background: #ff0; padding-left: 20px; }
</style>
<ul id="menu">
<li>
<a href="1.htm"men u 1</a>
<ul>
<li><a href="11.htm">s ub-menu 1.1</a></li>
<li><a href="12.htm">s ub-menu 1.2</a></li>
<li><a href="12.htm">s ub-menu 1.3</a></li>
</ul>
</li>
<li><a href="2.htm"men u 2 </a></li>
<li>
<a href="3.htm"men u 3</a>
<ul>
<li><a href="31.htm">s ub-menu 3.1</a></li>
<li><a href="32.htm">s ub-menu 3.2</a></li>
<li><a href="33.htm">s ub-menu 3.3</a></li>
</ul>
</li>
</ul>
</html>

Something very interesting about dynamic menus in css :
http://www.cssplay.co.uk/menus/index.html

--
Stephane Moriaux et son (moins) vieux Mac déjà dépassé
Stephane Moriaux and his (less) old Mac already out of date
Jan 19 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1728
by: | last post by:
I am using ASPUpload and trying to upload images to a database. I have had success in getting the image to the db and then dispalying the imnage on a webpage. The problem is wheni have more than one image for a record and want to display all images for that record. Has anyone done this with ASPUpload that might be able to look at my code and give me some tips? ----------------------------- This message is posted by http://Asp.ForumsZone.com
1
2002
by: Jack'o'Light | last post by:
Hi.... I've been playing with a floating navbar, trying to get it to work with mixed success. If anyone is familiar with this particular breed, it is based on a DHTML library file available at SITEEXPERTS.COM ( http://www.siteexperts.com/dhtmllib/demos/float/page1.asp ), and utilizes quite a large JS file to set up the DOM and floating functions.
1
1097
by: Leveridge Systems INC | last post by:
We need help with ASP.net work in a Solomom env. Or know anyone ? .. we can reward in cash. -- John D Allen. CEO & President. Leveridge Systems INC.
0
966
by: Marcelo | last post by:
Hi there; Is anyone familiar with RADIUS protocol? I got to implement a server that receives RADIUS messages (packets) thru port 1812. How can receive and process data thru this port?
0
2689
by: Marja Ribbers-de Vroed | last post by:
Hi, Is anyone here familiar with the capicom.dll? And more specifically with deployment of .cer and .pfx certifcate files? I have a few questions and I'm looking for a suitable place to post them. -- Marja
0
845
by: jens Jensen | last post by:
how can i access the page user management page(../asp.netwebadminfiles ) when the site is in production? Many thanks in advance JJ
1
1399
by: paultawk | last post by:
Hello everyone, Is anyone familiar with MCI or the FMOD function? i would like some tips using it Regards
0
826
by: Coaster | last post by:
Hi, In my first attempt I'm confused why I'm not getting a single nodes value but instead getting a ton of extra values that are in the document but located before the value I wish to get. I'm passing in a csproj file and looking to extract the OutputType value, which is a single value in a group of nodes. The root is Project and there are several PropertyGroup nodes however only the first one contains the value Outputtype so I'm not...
1
3710
by: =?Utf-8?B?UmljaA==?= | last post by:
Someone at my place (a higher up someone) asked me (over the phone) if I knew anything about ORD or .ord files/file extensions. After searching google I came up with CAD drawings. Does this sound like some kind of drawing file or something else? If it is related to drawing files - does anyone know what kind of program would use a file like this? Thanks, Rich
0
9551
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10504
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10274
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10033
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9085
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7576
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6811
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5606
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4149
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.