Previous Message
Next Message

IE7 problem with dropdowns

Sent by Gunlaug_Sørtun on 24 March 2008 22:10


Chris Kavinsky wrote:
> Doing that, and it works fine on the static page. The problem, for 
> some reason, is that it doesn't work on the page that's generated by 
> the CMS (although the source code looks fine). I'm stumped.

Fix the script. You've lost a backslash from the original.

This line...
this.className=this.className.replace(new RegExp(" sfhover\b"), "");
....must look like this...
this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
....in order to work.
Otherwise the script will just keep adding 'sfhover' classes
onmouseover, and not remove them onmouseout.

regards
	Georg
-- 
http://www.gunlaug.no
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread:

Possibly related: