image cycle jQuery

被刻印的时光 ゝ 提交于 2019-12-12 01:54:27

问题


Am looking for a very pared down, simple image cycling plugin. I dont want a lightbox, greybox, slimbox or any other box, just a simple way to show some images using arrows to click through, like this... http://www.theapproach.co.uk/artists/phillip-allen/ but using simple triangles for navigation buttons to the right, like this... http://www.vilmagold.com/newpages/artists/hannahsawtell.htm

I've had big problems trying to get cycle.js to work and have spent way too much time faffing with it. Here is a (non)working example http://www.cressidahaughton.co.uk/Untitled-4.html I'm not sure what the problem is, but praps the source shows a glaring error or two?

Maybe I should point out I'm using Dreamweaver cs5.5 and am very new to web design/ coding. Maybe there is something I am supposed to enable in the prog, or should be doing server side, (I'm with Dataflame).

About to give up with it.


回答1:


There is a definite glaring error on your page: you didn't include jquery itself:

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>

It goes above where you reference cycle. You may have any number of other errors, but start with that one. I also recommend getting Firebug or using Chrome's built-in developer tools. The console function of either will show you explicit JS errors, and they both have all sorts of great debugging tools.



来源:https://stackoverflow.com/questions/8773681/image-cycle-jquery

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!