PDA

View Full Version : Pixelating Slideshow Script Issues



Wendells
07-31-2013, 10:58 PM
I am using the Pixelating Slideshow Script on a few sites, but now in IE10 the banners will not rotate. In my console i get this error "SCRIPT5007: Unable to get property '0' of undefined or null reference" referencing to line " var pixeldelay=(ie55)? document.images.slide.filters[0].duration*1000 : 0 " of code that goes in the BODY. When i view my site in compatibility view, works just fine. Can anyone help with ideas to have this js code compatible with IE10? Or any other suggestions to get it to work. Thanks so much!

jscheuer1
08-01-2013, 03:38 AM
That script is basically obsolete due IE's abandoning support of the proprietary filters that it uses. This is perhaps the closest replacement:

http://dev7studios.com/nivo-slider/

It can be configured to pixelate for all transitions, but it also has many other available transitions which can be used, either alone or alternating among two or more within a single slideshow.

There's also:

http://jquery.malsup.com/cycle/

which has no pixelating option, but that does provide several transition options.

And for a fade only transition slideshow that's relatively easy to use, there's (both from DD):

http://www.dynamicdrive.com/dynamicindex14/swissarmy/index.htm

and:

http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm

However, if you want to use the Pixelating Slideshow Script and have it act like a simple slideshow (no transitions) when those are not supported, it can be modified. Just change:


var ie55=window.createPopup

to:


var ie55=/MSIE (\d+)/.exec(navigator.userAgent)
ie55 = ie55 && ie55[1] < 10

Wendells
08-01-2013, 08:16 PM
Oh thank you so much! First off, sorry i posted in the wrong place! And thanks for the advice. For now i just patched it up with the code you sent along. Now at least it works. I will have to study up on a replacement script to use. Thanks for the suggestions, i am sure one will work for me. Thanks again! Wendell