Jump to content

событие Domready. что это?

Featured Replies

Posted
comment_7141

Нашел в инете слайдшоу на HTML + Javascript...

есть шаг где нужно использовать domready ( или что это?) ... вот я не понял, что с ним нужно делать

And then initialize the slider using the domready event:

window.addEvent('domready', function () {

// The simple way

new NivooSlider($('Slider'));

// The more advanced way

new NivooSlider($('Slider'), {

animSpeed: 750,

effect: 'sliceLeftRightDown',

interval: 5000,

orientation: 'horizontal',

slices: 20

}).addEvents({

'onFinish': function () {

// fired after each transition

},

'onLastSlide': function () {

// fired when the last slide comes on

},

'onStart': function () {

// fired right before each transition

}

});

// add an if statement to check for the slider element (e.g. in a global script)

// in this way you can add the code even if the slider element doesn't exist on the current page

if ($('Slider')) {

new NivooSlider($('Slider'));

}

}

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.


Guest
Reply to this topic...

Recently Browsing 0

  • No registered users viewing this page.