Hi can you please have a look at:
http://www.ignitewebdesign.co.nz/sanders/our-work.php

It is working fine in firefox but in IE the code in:
http://www.ignitewebdesign.co.nz/sanders/javascript/gallery.js
will not execute, this is the js code:

window.addEvent('domready', function()
{
    var links = $('content_work_inside').getElements('a');
    var full_imgs = $('main_work_image').getElements('img');
    var main_image = $('main_work_image');

    full_imgs.setStyles
    ({
        'position':'absolute',
        'top':0,
        'left':0,
        'opacity':0
    });


    var imgSize = full_imgs[0].getSize();
    if(imgSize.x > 500)
    {
        $('main_work_image').setStyle('margin-top', 105);
    }
    full_imgs[0].setStyle('opacity', '1');
    links[0].setStyle('color', 'red');
    var counter = 0


    links.each(function(el,index)
    {
                $(el).addEvents
                ({
                        click: function(e)
                        {
                e.stop();
                full_imgs.setStyles
                ({
                    'opacity':0
                });
                var imgSize = full_imgs[index].getSize();
                if(imgSize.x > 500)
                {
                    $('main_work_image').setStyle('margin-top', 105);
                }
                else
                {
                    $('main_work_image').setStyle('margin-top', 0);
                }
                full_imgs[index].setStyle('opacity', '1');
                links.setStyles
                ({
                    'color':'white'
                });
                el.setStyle('color', 'red');
            },

                });

        counter++;
    });


});

I have noticed that if I comment out the click: function(e) function
just after $(el).addEvents some test alert code in the script will
run, but otherwise no alert code will run,

Is there some equilivant in IE to the javascript debugger that is
built in to firefox (with the green tick and red cross)

Thanks,

Matt.

Reply via email to