Good catch, Georg, and thanks. For some reason, the CMS was removing
the second slash when it was adding the JS to the pages. I added the
JS directly to the page (instead to the CMS doing it) and it resolved
the problem.

For those that asked, the CMS is custom built via Ruby on Rails.


On Mon, Mar 24, 2008 at 6:10 PM, Gunlaug Sørtun <[EMAIL PROTECTED]> wrote:
> 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 PROTECTED]
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/

Reply via email to