like every time

Hello here, first of all, want say thanx for nice lib. i am not sure but have some q.

    <script>
        new Control.Modal('hoverbox_1',{
            hover: true,
            position: 'relative',
            offsetLeft: 15,
            offsetTop: 15
        });
                new Control.Modal('hoverbox_2',{
            hover: true,
            position: 'relative',
            offsetLeft: 15,
            offsetTop: 15
        });
                new Control.Modal('hoverbox_3',{
            hover: true,
            position: 'relative',
            offsetLeft: 15,
            offsetTop: 15
        });
                new Control.Modal('hoverbox_4',{
            hover: true,
            position: 'relative',
            offsetLeft: 15,
            offsetTop: 15
        });
    </script>

Did it possibe merdge and make more lite code? I'v tryed like:

                new Control.Modal('hoverbox_1','hoverbox_2','hoverbox_3','hoverbox_4',{
            hover: true,
            position: 'relative',
            offsetLeft: 15,
            offsetTop: 15
        });

But its not worked... Someone know how i right correct?

Posted June 12th, 2007 at 6:35pm by lazarev

Try this:

['hoverbox_1','hoverbox_2','hoverbox_3','hoverbox_4'].each(function(id){
    new Control.Modal(id,{...options...});
});

Posted June 12th, 2007 at 8:15pm by ryan

thanx. its working...

Posted June 13th, 2007 at 3:42am by lazarev

Login or Register to Post