rollover effect - Any alternatives for the JQuery Hilight plugin? -


When I found out I almost fell down my chair, what exactly do I need :)

Now Sadly, it does not seem to work in IE8. Are there any fixes or options?

I debug through the maphilight source code and found that for the newly created stylesheet while scanning IE8 Adding Rule When I searched on Google for this particular problem, I got one. There was a patch in the bug report and I used this patch on the maphilight plugin to fix it.

What you need to do here is open jquery.maphilight.js (uncompressed source) and go to line 63, you will see something like the following:

  document.createStyleSheet (). AddRule ("v \\: *", "behavior: URL (# default # VML); antilles: true;"); // IE8 chokes on this line Document.namespaces.add ("v", "vase: schema-microsoft-com: vml");  

Replace the above with:

  document.namespaces.add ("v", "vase: schema-microsoft-com: vml"); Var style = document.createStyleSheet (); Var shapes = ['size', 'rectat', 'oval', 'circle', 'phil', 'stroke', 'imagata', 'group', 'text box']; $ .eec (size, function) {style.addRule ('v \\:' this, "behavior: URL (# default # VML); antilles: true");});  

Now it should work in IE8. Here's the proof, see how Wyoming has been highlighted.

I'm not sure that it will work in IE 6 and IE 7. You have to test it yourself if it breaks between IE6 and IE7, then you have to do this patch only when the browser is IE8.

Once again, credits for the original author patch up I only debug the problem in the MapHylight plugin.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -