joanne
Terugkerende gebruiker
- Lid geworden
- 31 mrt 2001
- Berichten
- 1.300
Heb voorgaande stappen al gezet in het HTML document, maar onderstaande snap ik niet zo goed.
Waar zet ik het script eigenlijk? In een aparte file met wel goeie filename?
http://www.javascriptkit.com/script/script2/thumbslider.shtml
Thx voor het meedenken alvast
Initializing the script
To intialize a thumbnail slider, inside the HEAD section of your page, you should call the jQuery method $("#divid").imageSlider() after the DOM has loaded:
Waar zet ik het script eigenlijk? In een aparte file met wel goeie filename?
http://www.javascriptkit.com/script/script2/thumbslider.shtml
Thx voor het meedenken alvast

Initializing the script
To intialize a thumbnail slider, inside the HEAD section of your page, you should call the jQuery method $("#divid").imageSlider() after the DOM has loaded:
HTML:
$(document).ready(function(){ // on document load
$("#thumbsliderdiv").imageSlider({ //initialize slider
'thumbs': ["church.jpg","fpslideshow/fisherman.jpg","fpslideshow/legs.jpg",""], // paths to images
'auto_scroll':true,
'auto_scroll_speed':4500,
'stop_after': 2, //stop after x cycles? Set to 0 to disable.
'canvas_width':700,
'canvas_height':500 // <-- No comma after last option
})
});
Laatst bewerkt: