[Pro] CSS Menus and IE 6 and 7

Hi all,

The site I’ve been working on for ages is now “Live”, but it still suffers from a slight problem with the CSS Menus on IE 6 and 7, namely that you can acces the first 2 or 3 submenus, but when you try to access the next one down the whole submenu disappears.

This relates to the CSS Menus on the left side of the page.

Site is here:

http://www.cotswoldengineeringsupplies.co.uk/

If you look at the source of the page, you will see that each menu item has an extra

<a href="#" style="cursor:default">

before the link with the closing tag after the link, which in IE6 and 7 it renders this as an extra chunk of space above the link which makes the each submenu taller and unusable.

see code below:

<li class="fwFirstChild fwNavItem"><a href="#" style="cursor:default"> <a href="../Wade%20Brass%20Compression%20Fittings/brasscomprimpmet.php?item=Equal Ended Coupling&amp;inthere=&amp;line=Brass Compression">Equal Ended</a> </a></li>

The links on the CSS Menu are made by the PHP Text Link with Query Action, as I neede to add php queries to the links to select the products from the MySQL Database.

I think that the extra href is added by the PHP Text Link with Query Action, as I think it doesn’t strip out the href that is created by the CSS Menu, but adds another one with the default cursor style. (I might be wrong, I’m still trying to understand what is happening!)

Here is a pic of test I did, stripping out the extra hrefs in the output, it works in IE6, compressing the height of the menu items to the same in other browsers.

http://crossbrowsertesting.com/users/7678/photos/z45acefaf203e4835e98/public

I don’t get this problem with IE8, as this seems to be the best behaved of the Microsoft browsers, in that it seems to play well with the Freeway output. (still doesn’t render the Layer Positioning Action correctly, neither IE6 or IE7 does though, it fixes the layer in the browser window!)

If I can adjust the way Freeway outputs the source code to strip out the extra href in the Menu it would solve this problem, but I can’t figure out what to do.

Any ideas, solutions, thoughts etc gratefully received…

Thanks

Steve.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Steve,
You’ll be glad to hear that there is a quick and simple fix for this.
Open the PHP Text Link with Query action file up in a plain text
editor and look for the following line;


function fwAfterEndBody()

and change it to read;


function fwBeforeEndHTML()

Save the file and republish your site. The nested link should now be
gone.
Regards,
Tim.

FreewayActions.com - Freeware and commercial actions for Freeway
Express & Pro.

Protect your mailto links from being harvested by spambots with Anti
Spam.
Only available at FreewayActions.com

http://www.freewayactions.com


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Tim,

Brilliant, just what I needed!
And so simple, republishing now…
Great work! This has been troubling me for ages. Glad to know the fix
was very painless.

All works in IE6 and IE7.

Thanks for your help.

Regards,
Steve.

On 14 Jan 2010, at 20:25, Tim Plumb wrote:

Hi Steve,
You’ll be glad to hear that there is a quick and simple fix for this.
Open the PHP Text Link with Query action file up in a plain text
editor and look for the following line;


function fwAfterEndBody()

and change it to read;


function fwBeforeEndHTML()

Save the file and republish your site. The nested link should now be
gone.
Regards,
Tim.

FreewayActions.com - Freeware and commercial actions for Freeway
Express & Pro.

Protect your mailto links from being harvested by spambots with Anti
Spam.
Only available at FreewayActions.com

http://www.freewayactions.com


freewaytalk mailing list
email@hidden
Update your subscriptions at:
List Options | FreewayTalk