Javascript Image Slider / Posts /

Initialize the sider after page load

34

is there a way to initialize the slider after the page is loaded?
When I try to initialize the slider in the FF console (meaning after the page is loaded, it is not initializing the slider.

here is the code http://store.amadesa.com/demo/slider/test.html

you wil lfind 2 sliders, 1 is initialized in the js file and the other one is not.
Execute this in the console:
var Asian = new ThumbnailSlider(AsianMovies)

it does not initialize the slider.

Can you help?
Oved  11 years ago   viewed: 26524    

6 Answers

3

how to write javascript image slider..cau u show any demo....


Maheskumar
  9 years ago
1
Can you firstly make one working, then add another?

milo   11 years ago
-8
Not sure that I understand. I need to initialize the slider after the page is loaded.
I provided 2 sliders in the  example just to show one that is working (initialized before page load) while the other is not working (initialized after page load).

I found a workaround but I would like a more standard solution.
Oved   11 years ago
1
SInce release v2012.9.9 the menucool image slider supports this "Load on Demand" feature by calling: 
imageSlider.reload();
You can call the build-in function shown above at any time when the slider markup is ready.
Refer to the Demo 7 Build Slider On the Fly for details.

Note: Ignore other outdated posts.
Milo   11 years ago
-2
And what is your  workaround?
acat   11 years ago
-2
in the menucool I changed the script not to subscribe to the page load event, but rather my custom event. I fired the custom event when the data was ready (after page load).
Oved   11 years ago

   

Your name*
Password
(Optional. Used to modify this post afterwords)
+ =  

Ask your Own Question

  • If your question is related to the topic of this post, you can post your question to this page by clicking the "Post a reply" button at left;

  • When you want to start a new page for your question: