开发者

Need something to give me a swap image on click behavior

开发者 https://www.devze.com 2022-12-19 19:45 出处:网络
I can use CSS or javascript but I\'ve been struggling with it.It needs to be an \"on-click\" behavior when you click on the number in the lower right corner... like this one:http://www.winteradagency.

I can use CSS or javascript but I've been struggling with it. It needs to be an "on-click" behavior when you click on the number in the lower right corner... like this one: http://www.winteradagency.com/mrw/images/residential2.jpg So that when you click on #1 you get the first photo, #2 the 2nd one and开发者_Python百科 so on... Any ideas? thanks!


Without showing what you've tried, I'm a little reluctant to just give you the answer. You'll learn more if I don't. If you provide code and show where you're stuck and such, well, that's a different story.

That being said, if you want to use jQuery, there are some nice plugins that have a similar functionality to what you want. One of them being Easy Slider. Here's also a list of 15 jQuery Image Gallery Plugins that I got from doing a quick google search.


Why not create four buttons and align it to right end, and everytime the image changes you update the text of the buttons. Each button could simply update the image to the one corresponding to its number.

0

精彩评论

暂无评论...
验证码 换一张
取 消