...

View Full Version : Extremely basic menu onClick help...



Striker14537
10-22-2006, 05:21 PM
Hi,
I have an image about 50 x 50 px in length. When a user clicks on it, a menu should come above the image... How do I do that? I don't need any effects... But that would be nice.

Thanks and c ya ;)

Striker14537
10-22-2006, 11:38 PM
Someone? I thought this was easy... This is a really cool idea though. Somebody?

bootable
10-23-2006, 01:42 AM
Here you go bud

<head>
<script language="JavaScript" >
function popper() {
SW=window.open('yourmenu.html','NewWin','toolbar=no,status=no,width=638,height=363 ')
SW.moveTo(340,340); }
</script>
</head>

<body>
<a href="#" onclick="popper()"><img src="/your50x50image" ></a>
</body>

Notes:
1.width=638,height=363 <- Change the width and height to your (menu) specs
2.moveTo(340,340) <- Change these numbers to adjust the (page orientation) top and left margins of your menu popup.


hth,
Raul
www.webdejour.com
rdeguz1@hotmail.com

Striker14537
10-23-2006, 01:55 AM
I hadn't thought of using window.open... But that works too! Thanks! Hee hee

Striker14537
10-23-2006, 02:10 AM
I have a copatibility issue with IE7... Resizing won't work. Is there any way to bring a hidden div to float over everything when somebody clicks on an image and when they click on the image again it hides?

_Aerospace_Eng_
10-23-2006, 02:34 AM
Seriously you need to be patient. We are all volunteers here and others need help as well, not just you. Waiting a mere 7 hours and then expecting an answer is showing impatience. I for one usually don't help impatient people. If you don't get an answer then its because you probably didn't formulate your question properly or all it would take to get your answer is to do a little research on your own. Google can help a lot. http://www.dynamicdrive.com/dynamicindex5/dhtmltooltip.htm

Striker14537
10-23-2006, 12:45 PM
Seriously you need to be patient. We are all volunteers here and others need help as well, not just you. Waiting a mere 7 hours and then expecting an answer is showing impatience. I for one usually don't help impatient people. If you don't get an answer then its because you probably didn't formulate your question properly or all it would take to get your answer is to do a little research on your own. Google can help a lot. http://www.dynamicdrive.com/dynamicindex5/dhtmltooltip.htm
Sorry about the impatience... Maybe I could use the tooltip as an onClick event... I'll try that.

Striker14537
10-23-2006, 09:52 PM
Ok, that isn't working out. I'll just wait till someone helps... I won't be impatient :)

Striker14537
10-25-2006, 10:56 PM
Someone?

bootable
12-06-2006, 05:32 AM
I have a copatibility issue with IE7... Resizing won't work. Is there any way to bring a hidden div to float over everything when somebody clicks on an image and when they click on the image again it hides?

Compatibility issue?

Maybe you're popping a too big an image for the window. Check/adjust your window size.
Just a short jab in the air :D . Hope it works out for you bud.


hth,
Raul
www.webdejour.com
rdeguz1@hotmail.com



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum