我已经得到了下面的html,我希望通过它自动循环。它目前通过onclick手动完成。但我怎样才能让它循环?它基本上只是改变了类名称上的包装DIV像这样:通过tab1
class="background_tab1"
循环:循环通过类
<body>
<div id="client-relations-bg" class="background_tab1">
...content...
</div>
</body>
我这里有一流的图像信息,在头:
<style type="text/css">
#client-relations-bg.background_tab1{background: url('/media/2/background-image-1.png') no-repeat center top;}
#client-relations-bg.background_tab2{background: url('/media/32/background-image-6.jpg') no-repeat center top;}
#client-relations-bg.background_tab3{background: url('/media/17/background-image-3.jpg') no-repeat center top;}
#client-relations-bg.background_tab4{background: url('/media/12/background-image-2.png') no-repeat center top;}
#client-relations-bg.background_tab5{background: url('/media/22/background-image-4.jpg') no-repeat center top;}
#client-relations-bg.background_tab6{background: url('/media/37/background-image-7.jpg') no-repeat center top;}
#client-relations-bg.background_tab7{background: url('/media/2900/Header_image.jpg') no-repeat center top;}
</style>
所以我需要这个到tab7
。
看看使用jquery吗? – CR41G14
@ CR41G14:单凭这一点无助于解决问题。另外,如果没有jQuery,这绝对是可能的,但也许并不那么容易。 – Constantinius
@Constantinius我基本上正在为研究设置一个平台 – CR41G14