简体   繁体   中英

javascript slide box for image slides

I am working on this website [http://ibm-uet.edu.pk/index.php] .

The image slider used here is a javascript plugin. The problem here is that on the first load up of the page, all the images in the slider are shown in a line, making the page look awkward,.. Please any one, who can tell me to get rid of this bug.

update some css and javascript. First make slider div hidden and when page will ready it will show before calling jQuery slider function.

 <style> #coin{ display:none; } </style> <script> $(document).ready(function() { $('#coin').css('display','block'); $('#coin').coinslider({ width: 900, navigation: false, delay: 5000,hoverPause: true }); }); </script> 

Hope this will help.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM