[Typo3-dev] rollover doesn't work in Opera

Martin Kutschker martin.kutschker at no5pam.blackbox.net
Mon Jun 27 13:22:38 CEST 2005


"Christoph Koehler" <christoph.koehler at gmail.com> schrieb im Newsbeitrag 
news:mailman.1.1119842646.17163.typo3-dev at lists.netfielders.de...
> Hello everyone!
>
> GMENU rollovers don't work in Opera 8.01 final when I identify as Opera. 
> Switching to identify as IE, all works fine.
> I guess it's a problem with the browser sniffer code for the new Opera 
> version maybe?

Yep. The rollover code has this detection (in class.tslib_pagegen.php):

if ((browserName == "Netscape" && browserVer >= 3) || msie4 || 
browserName=="Konqueror") {version = "n3";} else {version = "n2";}

add a

|| browserName="Opera"

and roll-overs will work.

But, I think it should be done in the reverse. I mean every browser that has 
JS should be assumed to manage roll-overs, only NS <2 and IE < 3 should be 
suppressed. Has anybody such old browsers for testing?!?!

Masi 






More information about the TYPO3-dev mailing list