popup function

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
nboyad
Advanced
Advanced
Posts: 13
Joined: Thu Sep 07, 2006 8:02 pm

popup function

Post by nboyad »

Hi!
I am trying to use popup function to have a dropdown table on mouseover. It looks like it doesn't like the html inside the menu. Is this right?
Example:

aI("text=<table><tr><td><img></td><td>My message</td><td><img></td></tr></table>;url=http://milonic.com/cbuy.php;");}

If you look at http://babycenter.marketlive.com/category/bob.do I need to have all selects to show up on mouseover on " ML Test Data 1 Finder".

Thank you for your wonderful help.
Last edited by nboyad on Sat Oct 21, 2006 8:11 pm, edited 1 time in total.
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

Hi,

The double quotes in your html will have to be either (a) removed, (b) escaped, or (c) changed to single quotes. The first double quote after "text=... will end the string passed to aI() prematurely and cause a js error. You also need to add type=html; to the menu item definition passed to aI().

Cheers,

Kevin
nboyad
Advanced
Advanced
Posts: 13
Joined: Thu Sep 07, 2006 8:02 pm

Post by nboyad »

Thank you.
Last edited by nboyad on Sat Oct 21, 2006 8:14 pm, edited 2 times in total.
nboyad
Advanced
Advanced
Posts: 13
Joined: Thu Sep 07, 2006 8:02 pm

usind popup

Post by nboyad »

thank you
Post Reply