View Full Version : Browser Problem

02-11-2009, 10:38 PM
I frogot to include a bit of script into my pages because I am doing everything externally. The script I frogot to include is:

<!--[if lte IE 7]><style type="text/css">html .jqueryslidemenu{height: 1%;} /*Holly Hack for IE7 and below*/</style><![endif]-->

I have now incorporated it onto one page now to show where I frogot to have it included, found at:


The browser issue I seem to be having, I am not excperincing my self because my browsers are to new. But others have told me I have problems with my menu not displaying right so I need to resolve this issue for those users. One such user told me they were using Fire Fox 2

My question is can I and if so how do I place that script into my
jqueryslidemenu.js script found at the following address below so that I don't need to hand code it into every page already done.


One page I have made no updates to thus not working correctly for those individual users is below this. The problem is the menu all of it ends up to the left side of the screen.


Thanks for the help.

02-12-2009, 01:03 AM
This is not a script:

<!--[if lte IE 7]><style type="text/css">html .jqueryslidemenu{height: 1%;} /*Holly Hack for IE7 and below*/</style><![endif]-->

and has no effect on FF browsers.

02-12-2009, 04:13 AM
Sorry I was under the impression it was. Ok so I believe you because I know that you know what your talking about but, do you have any idea how I can fix the browser problem people are telling me they are experincing with my menu? And can I include the bug fix in one of my external javascripts.

02-12-2009, 05:54 AM
In future, please post about Dynamic Drive Scripts in the Dynamic Drive Scripts Help section here where I've moved this thread, and:

Warning: Please include a link to the DD script in question in your post. See this thread (http://www.dynamicdrive.com/forums/showthread.php?t=6) for the proper posting format when asking a question.

That's an IE conditional comment which contains an on page stylesheet which contains the 'Holly Hack'. Since the conditional is 'lte IE 7', it means that only IE versions 5 through 7 will even look at it. If you have a valid URL DOCTYPE (as it appears that you do), IE 7, and possibly 6 probably don't need it either, and might even be harmed by it. Hacks are bad because they often mess things up. But as I say, only certain versions of IE will even look at it, so FF and others would be unaffected by it, seeing it only as an HTML comment block.

You could put it in a script using document.write, but I would want a link to the demo page of the script on dynamic drive to be sure of optimal placement.

Now, the closest thing I have handy to FF 2 is NS 7. And I see in that outdated browser that the menu bunches up on the left side with the little arrow images being on the right side. I'm not sure if there is an easy fix for that or not, or if it is even the same problem that someone with FF 2 (also outdated) would see. My advice would be to tell them to update to FF 3.