I've been writing a slideshow script that I've had working perfectly on my mac in Chrome and Safari, however I went to look at it in IE8 and lo and behold it falls over. It says 'object doesn't support this property or method' in relation to the new SlideShow line in the main() function.
I suspect I've missed something incredibly basic, but after a quick google I'm none the wiser.
My next question is, rather than rewriting the code, would this strategy work, can anyone point me in the right direction for adding the method for the purposes of IE?
I was thinking along the lines of
Code:
if(!document.getElementsByClassName)
{//create a prototype for getElementsByClassName
}
My questions are
Is this a viable approach?
If so, what class should the prototype belong to?
How do I actually do it? :-/
Under normal circumstances, i'd research it properly, but I'm in a hurry so expert guidance would be gratefully received.
Bookmarks