Jump to content

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


Quicksdk

Recommended Posts

Нашел в инете слайдшоу на 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'));

}

}

Link to comment
Share on other sites

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...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Ваша ссылка была автоматически строена.   Отображать как обычную ссылку

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...