jQuery Plugin – Rotating Banner

很多商業網站中都會需要輪播的廣告,來介紹該網站中所販售的所有商品,而這樣的輪播廣告過往都使用Flash來設計,但按照前幾篇文章所提,當然也要繼續「去Flash化」,所以這次馬老師利用到了jQuery來製作了輪播式的廣告橫幅給大家參考,除了我的範例之外,大家也可以到jQuery Rotating Banner的官網逛逛,說不定會有更多的收穫!

jQuery Rotating Banner 範例圖

大家可以先參考本次製作的範例檔範例檔下載

程式碼說明:在網頁中套用jpb_slides類別的div就是置入廣告圖檔的div,但要注意廣告圖檔的寬度、高度,本範例之圖檔為w:715px、h:215px,所以要找到CSS檔中的#jqb_object和.jqb_slide修改div寬、高。

<div id="jqb_object">

  <div class="jqb_slides">
	<div class="jqb_slide" title="NEZ-E460 精彩外型 耀你看見" ><a href="img/b1.jpg"><img src="img/b1.jpg" width="715" height="215" alt="" /></a></div>
	<div class="jqb_slide" title="SONY 開箱驚喜 加碼抽大獎" ><a href="img/b2.jpg"><img src="img/b2.jpg" width="715" height="215" alt="" /></a></div>
	<div class="jqb_slide" title="VAIO Z 創新演繹 來自日本" ><a href="img/b3.jpg"><img src="img/b3.jpg" width="715" height="215" alt="" /></a></div>
	<div class="jqb_slide" title="NWZ-W262 更輕更小 防水無線" ><a href="img/b4.jpg"><img src="img/b4.jpg" width="715" height="215" alt="" /></a></div>
	<div class="jqb_slide" title="Xperia ray 優雅出眾 絕美設計" ><a href="img/b5.jpg"><img src="img/b5.jpg" width="715" height="215" alt="" /></a></div>
	<div class="jqb_slide" title="DSC-TX100V 瞬間精彩 片刻生動" ><a href="img/b6.jpg"><img src="img/b6.jpg" width="715" height="215" alt="" /></a></div>

  </div>

	<div class="jqb_bar">
		<div class="jqb_info"></div>
		<div id="btn_next" class="jqb_btn jqb_btn_next"></div>
		<div id="btn_pauseplay" class="jqb_btn jqb_btn_pause"></div>
		<div id="btn_prev" class="jqb_btn jqb_btn_prev"></div>
	</div>

</div>

CSS中jqb_bar類別是用來控制下方半透明區塊,如果有需要也可以自行更改成所需的大小,大家看完後有任何問題歡迎在此回應,謝謝!

註:本範例所使用的圖片版權屬於Sony公司所有。

You may also like...

11,467 Responses

  1. Williszew表示:

    http://indiamedfast.com/# online pharmacy india

  2. Arthurhow表示:

    http://mexicanpharminter.com/# Mexican Pharm Inter
    canada pharmacy

  3. JamesGag表示:

    India Med Fast: IndiaMedFast.com – online pharmacy india

  4. Montebeera表示:

    online medicine shopping in india India Med Fast lowest prescription prices online india

  5. Arthurhow表示:

    https://indiamedfast.shop/# buying prescription drugs from india
    pharmacy com canada

  6. Williszew表示:

    https://indiamedfast.shop/# IndiaMedFast.com

  7. Williszew表示:

    https://mexicanpharminter.shop/# MexicanPharmInter

  8. JamesGag表示:

    buying from online mexican pharmacy: buying from online mexican pharmacy – mexican drug stores online

  9. Williszew表示:

    https://interpharmonline.shop/# pharmacy wholesalers canada

  10. Georgewhend表示:

    buying from online mexican pharmacy: reliable mexican pharmacies – mexican drug stores online

  11. JamesGag表示:

    adderall canadian pharmacy: Pharmacies in Canada that ship to the US – online canadian pharmacy reviews

  12. Arthurhow表示:

    https://indiamedfast.shop/# buying prescription drugs from india
    legal to buy prescription drugs from canada

  13. Montebeera表示:

    global pharmacy canada canada pharmacy no prescription canadian drug stores

  14. JamesGag表示:

    mexican pharmacy online order: MexicanPharmInter – Mexican Pharm International

  15. Montebeera表示:

    canadian drug canadian drugstore online no prescription canada rx pharmacy world

  16. Williszew表示:

    http://interpharmonline.com/# canada ed drugs

  17. Arthurhow表示:

    http://mexicanpharminter.com/# mexican drug stores online
    reliable canadian online pharmacy

  18. Georgewhend表示:

    buying from online mexican pharmacy: reliable mexican pharmacies – buying from online mexican pharmacy

  19. Montebeera表示:

    online medicine shopping in india lowest prescription prices online india online pharmacy india

  20. Georgewhend表示:

    india online pharmacy store: India Med Fast – online pharmacy india

  21. JamesGag表示:

    legitimate canadian online pharmacies: online canadian pharmacy no prescription – best canadian online pharmacy

  22. Arthurhow表示:

    https://mexicanpharminter.shop/# mexican pharmacy online store
    canadian pharmacy near me

  23. Williszew表示:

    https://mexicanpharminter.shop/# reliable mexican pharmacies

  24. Williszew表示:

    https://interpharmonline.com/# canadapharmacyonline legit

  25. JamesGag表示:

    online canadian pharmacy: InterPharmOnline.com – ed meds online canada

  26. 누누티비表示:

    I appreciate, cause I found exactly what I was looking for. You’ve ended my 4 day long hunt! God Bless you man. Have a nice day. Bye

  27. JamesGag表示:

    best canadian pharmacy: legitimate canadian pharmacies online – safe online pharmacies in canada

  28. Georgewhend表示:

    reliable mexican pharmacies: Mexican Pharm Inter – reliable mexican pharmacies

  29. Arthurhow表示:

    https://mexicanpharminter.com/# reliable mexican pharmacies
    canadian pharmacy online

  30. JamesGag表示:

    mexican pharmacy online: MexicanPharmInter – mexican pharmacy online order

發佈回覆給「Montebeera」的留言 取消回覆

發佈留言必須填寫的電子郵件地址不會公開。