473,396 Members | 2,085 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Image Map Navigation and Pulldown Menus

Hello!

I have an image that uses an image map for navigation. We would like a
pull-down menu to appear when the user mouses over the link. The
pull-down menu is another image that was created to retain the look of
the site and would use another image map for it's links.

Is this possible? If so, can someone give me a URL so I can see how
others did this?

Thanks,
--
Jerry
Aug 18 '05 #1
5 2701
ASM
Jerry wrote:
Hello!

I have an image that uses an image map for navigation. We would like a
pull-down menu to appear when the user mouses over the link. The
pull-down menu is another image that was created to retain the look of
the site and would use another image map for it's links.
menu and submenus with maped images
is it realy a good idea ?
Is this possible? If so, can someone give me a URL so I can see how
others did this?


I think you would have each couple of sub menu image and its map
in an individual div
All sub-menu-divs are styled { display:none; }

then :
fly over a main menu image area would style the correct div to inline

function rool(sub_menu) {
var s = document.getElementById(subMenu).style;
document.getElementById(sub_menu).style = s.display==''? 'inline' : '';
}

<img ... blah ... usemap="mainMap">
<map name="mainMap">
<area coord=" ... blah
onmouseover="roll('subMenu_1');"
onmouseout="roll('subMenu_1');">
<area ...
onmouseover="roll('subMenu_2');"
onmouseout="roll('subMenu_2');">
....
</map>
<div id="subMenu_1" style="display:none;">
<img blah usemap="map1">
<map name="map1">
<area coord=" ... blah ... onclick="page_1.htm">
....
</map></div>
<div id="subMenu_2" style="display:none;">
etc ... etc ...
--
Stephane Moriaux et son [moins] vieux Mac
Aug 19 '05 #2
ASM wrote:
Jerry wrote:
Hello!

I have an image that uses an image map for navigation. We would like a
pull-down menu to appear when the user mouses over the link. The
pull-down menu is another image that was created to retain the look of
the site and would use another image map for it's links.

menu and submenus with maped images
is it realy a good idea ?


I'm not quite sure yet. I suggested that they do this in flash but they
would rather do it without. Weird considering there are other flash
elements on the page.
Is this possible? If so, can someone give me a URL so I can see how
others did this?

I think you would have each couple of sub menu image and its map
in an individual div
All sub-menu-divs are styled { display:none; }

then :
fly over a main menu image area would style the correct div to inline

function rool(sub_menu) {
var s = document.getElementById(subMenu).style;
document.getElementById(sub_menu).style = s.display==''? 'inline' : '';
}

<img ... blah ... usemap="mainMap">
<map name="mainMap">
<area coord=" ... blah
onmouseover="roll('subMenu_1');"
onmouseout="roll('subMenu_1');">
<area ...
onmouseover="roll('subMenu_2');"
onmouseout="roll('subMenu_2');">
...
</map>
<div id="subMenu_1" style="display:none;">
<img blah usemap="map1">
<map name="map1">
<area coord=" ... blah ... onclick="page_1.htm">
...
</map></div>
<div id="subMenu_2" style="display:none;">
etc ... etc ...


I'll try it out. Thanks for the assistance!
--
Jerry
Aug 19 '05 #3
ASM wrote:
Jerry wrote:
Hello!

I have an image that uses an image map for navigation. We would like a
pull-down menu to appear when the user mouses over the link. The
pull-down menu is another image that was created to retain the look of
the site and would use another image map for it's links.

menu and submenus with maped images
is it realy a good idea ?
Is this possible? If so, can someone give me a URL so I can see how
others did this?

I think you would have each couple of sub menu image and its map
in an individual div
All sub-menu-divs are styled { display:none; }

then :
fly over a main menu image area would style the correct div to inline

function rool(sub_menu) {
var s = document.getElementById(subMenu).style;
document.getElementById(sub_menu).style = s.display==''? 'inline' : '';
}

<img ... blah ... usemap="mainMap">
<map name="mainMap">
<area coord=" ... blah
onmouseover="roll('subMenu_1');"
onmouseout="roll('subMenu_1');">
<area ...
onmouseover="roll('subMenu_2');"
onmouseout="roll('subMenu_2');">
...
</map>
<div id="subMenu_1" style="display:none;">
<img blah usemap="map1">
<map name="map1">
<area coord=" ... blah ... onclick="page_1.htm">
...
</map></div>
<div id="subMenu_2" style="display:none;">
etc ... etc ...


I applied it to this but I couldn't get it to work. Did I do something
wrong here?

<html>
<head>
<script>
function roll(sub_menu) {
var s = sub_menu;
document.getElementById(sub_menu).style = s.display==''? 'inline' : '';
}
</script>
<noscript><h1>JAVASCRIPT TURNED OFF</h1></noscript>
</head>
<body>
<img src="images/homepage-nav-buttons.png"
id="navigation" style="border: none;"
usemap="#games" ismap="ismap">

<map name="games" id="games">
<area href="index.htm" shape="poly"
coords="3, 7, 92, 12, 92, 68, 3, 68, 3, 7"
onmouseover="roll('subMenu_1');"
onmouseout="roll('subMenu_1');">
</map>

<div id="subMenu_1" style="display: none;">
<img src="images/test/homepage-gamesmenu.png">
</div>

</body>
</html>
--
Jerry
Aug 19 '05 #4
ASM
Jerry wrote:
ASM wrote: [...]
I think you would have each couple of sub menu image and its map
in an individual div
All sub-menu-divs are styled { display:none; }

then :
fly over a main menu image area would style the correct div to inline

function rool(sub_menu) {
var s = document.getElementById(subMenu).style;
document.getElementById(sub_menu).style = s.display==''? 'inline' : '';
}

[...]
I applied it to this but I couldn't get it to work.
I didn't try the given example ...
Did I do something
wrong here?
think so
<html>
<head>
<script>
function roll(sub_menu) {
var s = sub_menu;
var s = document.getElementById(sub_menu).style;
// to get actual sub menus's style
document.getElementById(sub_menu).style = s.display==''? 'inline' : '';
// to jump in other style

// if s.display (actual style display) is 'default'
// hop! doc.gEBI(sub_menu) style is 'inline'
// else
// if s.display is not default
// hop! sub_menu set to default displaying
}
</script>
<noscript><h1>JAVASCRIPT TURNED OFF</h1></noscript>
</head>
<body>
<img src="images/homepage-nav-buttons.png"
id="navigation" style="border: none;"
usemap="#games" ismap="ismap">

<map name="games" id="games">
<area href="index.htm" shape="poly"
coords="3, 7, 92, 12, 92, 68, 3, 68, 3, 7"
onmouseover="roll('subMenu_1');"
onmouseout="roll('subMenu_1');">
</map>

<div id="subMenu_1" style="display: none;">
<img src="images/test/homepage-gamesmenu.png">
no map for sub menu ?
</div>

</body>
</html>

--
Stephane Moriaux et son [moins] vieux Mac
Aug 19 '05 #5
ASM wrote:
Jerry wrote:
ASM wrote:


[...]
I think you would have each couple of sub menu image and its map
in an individual div
All sub-menu-divs are styled { display:none; }

then :
fly over a main menu image area would style the correct div to inline

function rool(sub_menu) {
var s = document.getElementById(subMenu).style;
document.getElementById(sub_menu).style = s.display==''? 'inline' : '';
}


[...]
I applied it to this but I couldn't get it to work.

I didn't try the given example ...
Did I do something wrong here?

think so
<html>
<head>
<script>
function roll(sub_menu) {
var s = sub_menu;

var s = document.getElementById(sub_menu).style;
// to get actual sub menus's style
document.getElementById(sub_menu).style = s.display==''? 'inline' : '';

// to jump in other style

// if s.display (actual style display) is 'default'
// hop! doc.gEBI(sub_menu) style is 'inline'
// else
// if s.display is not default
// hop! sub_menu set to default displaying
}
</script>
<noscript><h1>JAVASCRIPT TURNED OFF</h1></noscript>
</head>
<body>
<img src="images/homepage-nav-buttons.png"
id="navigation" style="border: none;"
usemap="#games" ismap="ismap">

<map name="games" id="games">
<area href="index.htm" shape="poly"
coords="3, 7, 92, 12, 92, 68, 3, 68, 3, 7"
onmouseover="roll('subMenu_1');"
onmouseout="roll('subMenu_1');">
</map>

<div id="subMenu_1" style="display: none;">
<img src="images/test/homepage-gamesmenu.png">

no map for sub menu ?


There will be a map for it but I haven't developed it yet.

--
Jerry
Aug 23 '05 #6

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

Similar topics

2
by: Mike | last post by:
Hello, I'm looking for an example of doing a page with pulldown menus, where the user selects a choice from the first pulldown, then based on that input, another appears, then the user selects...
9
by: flarkblark | last post by:
I recently had the displeasure of looking at the code required to implement the pop-up menus used in a pulldown menu system for a webpage. The sheer amount of Javascript required was amazing...
3
by: Gufus | last post by:
Hi Group... I'm using this /old/ method of pulldown menus, is there another (better) way of doing it? Something that looks better. <script language="JavaScript"> function fetch(){ var...
0
by: Veli-Pekka Tätilä | last post by:
Hi, My first post here. I've found some serious accessibility flaws in the Python 2.4 docs and wish they could be rectified over time. I'm very new to Python and initially contacted docs at python...
2
by: Jay | last post by:
I have used Smart Navigation on several projects and it works wonderfully. For my last project I used some javascript menus. SmartNavigation caused them to not function. So I used SmartScoller...
2
by: Thrasher Remailer | last post by:
Using the example at http://www.w3schools.com/dhtml/tryit.asp?filename=trydhtml_menu10 as a base, how can I extend this code to handle tiered ( cascading ) pulldowns? For example, hovering...
1
by: leicklda | last post by:
Hi there, I'm very novice to web design. I'm trying to make a pulldown menu, but the formatting keeps getting screwed up when you roll the mouse over it. Please see www.boundarysys.com for...
4
by: robert.waters | last post by:
Hello, I have a main form that is maximized when my application loads; this main form contains links to all other forms. I've had to specify the Popup property of these other forms, so that...
4
by: Jonathan Wood | last post by:
I'm still pretty new to ASP.NET. I'm developing a site that requires all users to log on. Once logged on, I can determine which of three types of users they are (types are implemented using ASP.NET...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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,...
0
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...

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.