I'm having a problem with this piece of code in IE
![Sad :(](./images/smilies/icon_e_sad.gif)
I can't seem to figure out why, the code in dreamweaver reports no syntax errors either. I suspect it's a rogue comma or something. Can anyone advise?
[syntax=javascript]
window.addEvent('domready', function(e){
// option 1
var slides = [
{
image: 'home_slide1.PNG',
}, // Line 7 error??
{
image: 'chest1.jpg',
},
{
image: 'treehouse1.JPG',
},
{
image: 'barn_slide.JPG',
},
{
image: 'treehouse2.JPG',
},
{
image: 'bathroom1.jpg',
},
{
image: 'joinery_slide.JPG',
},
{
image: 'plans1.jpg',
},
{
image: 'taps1.jpg',
},
{
image: 'hand_made.JPG',
},
{
image: 'forest1.jpg',
},
{
image: 'kitchen3.JPG',
},
{
image: 'river1.jpg',
},
{
image: 'decking1.jpg',
},
{
image: 'barn1.jpg',
},
{
image: 'draw1.jpg',
}
];
// option 2
// var slides = $$('#blinds img');
$('blinds').floom(slides, {
slidesBase: 'slides/',
sliceFxIn: {
top: 20
}
});
});
[/syntax]
I get this error from IE:
Message: Expected identifier, string or number
Line: 7
Char: 5
Line 7 is noted above.
If anyone can help me, i'd be really grateful, thanks
Jonathon