On Jul 16, 1:22 am, "bambell...@hotmail.com" <bambell...@hotmail.com>
> I've made a quick search on Google and realised it's because the
> sliders are being created before the HTML elements are initialised (as
> script.js loads in the header).
> I used a setTimeout and it now works fine! Thanks anyways!

A *much* better approach is to use an event, and Prototype provides
one specially for you:

document.observe('dom:loaded', function () {
  // Any code that depends on the DOM being completely loaded
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to