Einzelnen Beitrag anzeigen
  #1  
Alt 11. September 2009, 12:24
Geddeth
Guest
 
Beiträge: n/a
Exclamation Bug: JS error in IE7

The function add_header() in floatbox-plus.php set the JS variable "nfbPageOptions" with an array. Unfortunately, IE7 doesn't like JS arrays to end with a comma, so it reports an error. My array looks like this:
Code:
<!-- FloatBox Plus Plugin -->
<script type="text/javascript">
fbPageOptions =  {
theme: 'black',
doAnimations: true,
resizeDuration: 3.5,
imageFadeDuration: 3.5,
overlayFadeDuration: 4,
splitResize: 'no',
startAtClick: true,
zoomImageStart: true,
liveImageResize: false,
};
</script>
<!-- FloatBox Plus Plugin -->
Note the ending comma after "liveImageResize: false,". Removing it fixes the JS error.

I don't follow this forum, so contact me at geddeth@gmail.com for further info or comments.

Cheers,
Geddeth <geddeth at gmail dot com>