View Full Version : About Switch Menu II

07-06-2005, 12:24 PM
I have a problem in the use of Switch Menu II script. Here is the link :http://www.dynamicdrive.com/dynamicindex1/switchmenu2.htm.

When I use this
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
as XHTML doc, all menus don't close in Mozilla/ Firefox. But it's ok in IE.

Thank you for help.

07-06-2005, 06:40 PM
Try changing this:

OBJ_SLIDE.style.height = NEW_PIX_VAL;to:

OBJ_SLIDE.style.height = NEW_PIX_VAL+'px';and this:

if(NEW_PIX_VAL > 0)OBJ_SLIDE.style.height = NEW_PIX_VAL;to:

if(NEW_PIX_VAL > 0)OBJ_SLIDE.style.height = NEW_PIX_VAL+'px';and this:

OBJ_SLIDE.style.height = NEW_PIX_VAL(looks like the first one but, no semicolon at the end) to:

OBJ_SLIDE.style.height = NEW_PIX_VAL+'px'Keep a backup, this is untested but, follows a pattern usually involved in these cases.

07-06-2005, 07:53 PM
Thank, your are a right professor.