iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Graphics & Design Discussion Forum Post your graphics design questions/comments/ideas in here. Ask questions, post tutorials, discuss trends and best practices. Sub-forum for website accessibility and usability.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-03-2005, 09:51 AM
WebProWorld New Member
 
Join Date: Jul 2003
Location: cape town, south africa
Posts: 13
jeannemalherbe RepRank 0
Default DHTML menu that uses images in top bar of menu

I have designed the following website http://memeworx.co.za/retaildynamics/index_new.htm

My problem is as follows. I need a drop down menu under the heading "shopping malls" on the top menu. The problem is that the menu is all made up of images and not plain text. All the menus I have found have plain text and a background colour as their main bar.

The other problem is that the site has been centered on the page, so I can't use layers with absolute positions.

Please help as I am in a real fix.

Thanks
Jeanne
www.memeworx.co.za
Reply With Quote
  #2 (permalink)  
Old 11-03-2005, 10:07 AM
dharrison's Avatar
WebProWorld 1,000+ Club
WebProWorld MVP
 
Join Date: May 2005
Location: Essex, UK
Posts: 1,288
dharrison RepRank 4dharrison RepRank 4dharrison RepRank 4
Default

Hi Jeanne

Why would you want little images on your drop-down menu? Hopefully you just mean little images?

This is a bit of a long shot but can't you
after each menu item and have the hidden menu underneath? and then use a combination of CSS and DHTML to show the menu on mouse over

If not then just ignore me. Layers are quite new to me.

HTH
__________________
Deb Harrison
DVH Design
Essex Web Design
Reply With Quote
  #3 (permalink)  
Old 11-03-2005, 01:16 PM
ADAM Web Design's Avatar
WebProWorld 1,000+ Club
 
Join Date: Dec 2003
Location: Toronto, Ontario, Canada
Posts: 2,181
ADAM Web Design RepRank 0
Default

Before I go any further, you probably should look at doing that site via hand versus the pitfalls of Dr*amw*av*r. DW tends to create some very bulky and inefficient code, which is what we have here.

You could, theoretically, use absolute positioning on this if you added style="position: relative" to each table cell that contains a menu link.

Your absolute positioning would then be defined relative to that table cell (the top left would be 0, 0).

Whenever you define absolute positioning inside of a relatively positioned item, the absolute positioning is defined in relation to that relatively positioned item.
Reply With Quote
  #4 (permalink)  
Old 11-03-2005, 02:59 PM
WebProWorld New Member
 
Join Date: Nov 2005
Location: Newport Beach, CA
Posts: 16
RedMark RepRank 0
Default

I've done this on several sites. (check out www.mdmm.com). Put a graphic in the table (a 1 pixel transparent gif works fine, or use the graphic that belongs there) and name it finder.

Then use the following function to find the position of that graphic

var itm=findObj("finder")
leftset = itm.offsetLeft;
while((itm = itm.offsetParent) != null) leftset += itm.offsetLeft;
itm=findObj("finder");
topset = itm.offsetTop;
while((itm = itm.offsetParent) != null) topset += itm.offsetTop;
itm=findObj("divText")
itm.style.left=leftset-3
itm.style.top=topset
itm.style.visibility='visible'

the function findObj is a variation on a theme...

function findObj(n, d) {
var i,x;
if(!d) d=document;
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=findObj(n,d.layers[i].document);
if (!x && d.getElementById) x=d.getElementById(n); return x;
}

The affect of this is you get the position of your "finder" graphic and position your menu accordingly, but I think Adam is absolutely right. To do this effectively, you're going to have to get into some hand-coding.
__________________
"I did not arrive at my understanding of the physical universe through my rational mind" -- Albert Einstein
Reply With Quote
  #5 (permalink)  
Old 11-04-2005, 10:59 AM
WebProWorld New Member
 
Join Date: Sep 2005
Location: Bermuda
Posts: 1
rumslappers RepRank 0
Default DHMTL drop down menu

Not sure if this will be usefull
http://www.sothink.com/product/dhtmlmenu/index.htm

I have found this software to be quite versatile and take the hard work out of creating drop down menus. You can add images even animated ones, resize as required and have the text over the image.

The software is reasonable in price if you don't mind spending a little.
Reply With Quote
  #6 (permalink)  
Old 11-10-2005, 01:58 PM
WebProWorld New Member
 
Join Date: Dec 2004
Location: Midlands
Posts: 18
p.cottam RepRank 0
Default

Cant you simply create a single navigation banner from the indivigual images you currently use on your site

Then use the hotspot tool to make your first link (Home)area, then use the add behaviour - show pop up menu

Simply repeat the hotspots for other link areas
Reply With Quote
Reply

  WebProWorld > Site Design > Graphics & Design Discussion Forum

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 -4. The time now is 05:17 PM.



Search Engine Optimization by vBSEO 3.3.0