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,722 Responses

  1. MichaelGeony表示:

    uk pharmacy no prescription http://discountdrugmart.pro/# drugmart

  2. Porterfax表示:

    drugmart discount drug pharmacy international pharmacy no prescription

  3. Davidmoits表示:

    xxl mexican pharm: mexican mail order pharmacies – buying prescription drugs in mexico

  4. Charleskepsy表示:

    canadian pharmacy world coupon https://xxlmexicanpharm.shop/# xxl mexican pharm

  5. Jxznys表示:

    buy gabapentin 800mg sale – cheap clomipramine 50mg sporanox 100 mg pills

  6. You’ve articulated the points with such finesse on the state of the country. Truly a pleasure to read.

  7. Porterfax表示:

    non prescription medicine pharmacy discount drug pharmacy discount drugs

  8. MichaelGeony表示:

    cheapest pharmacy to get prescriptions filled https://discountdrugmart.pro/# rxpharmacycoupons

  9. Porterfax表示:

    best canadian pharmacy online easy canadian pharm easy canadian pharm

  10. MichaelGeony表示:

    canadian online pharmacy no prescription https://easycanadianpharm.com/# canada pharmacy online

  11. Charleskepsy表示:

    canadian pharmacy coupon https://megaindiapharm.com/# MegaIndiaPharm

  12. MichaelGeony表示:

    legal online pharmacy coupon code https://easycanadianpharm.shop/# thecanadianpharmacy

  13. Davidmoits表示:

    Online pharmacy USA: online pharmacy delivery usa – family pharmacy

  14. Davidmoits表示:

    xxl mexican pharm: п»їbest mexican online pharmacies – mexican pharmaceuticals online

  15. Great tremendous issues here. I am very glad to see your post. Thanks so much and i’m taking a look forward to contact you. Will you please drop me a mail?

  16. Davidmoits表示:

    pharmacy coupons: drugmart – drug mart

  17. MichaelGeony表示:

    canadian pharmacy coupon code https://easycanadianpharm.com/# easy canadian pharm

  18. Porterfax表示:

    MegaIndiaPharm indian pharmacy Mega India Pharm

  19. MichaelGeony表示:

    promo code for canadian pharmacy meds http://xxlmexicanpharm.com/# xxl mexican pharm

  20. Davidmoits表示:

    discount drugs: drug mart – drug mart

  21. Davidmoits表示:

    MegaIndiaPharm: best online pharmacy india – MegaIndiaPharm

  22. Charleskepsy表示:

    online pharmacy non prescription drugs https://megaindiapharm.com/# india online pharmacy

  23. Davidmoits表示:

    Best online pharmacy: online pharmacy delivery usa – canada pharmacy not requiring prescription

  24. MichaelGeony表示:

    canadian pharmacy coupon code https://familypharmacy.company/# online pharmacy delivery usa

  25. Porterfax表示:

    discount drug mart discount drug pharmacy drugmart

  26. MichaelGeony表示:

    online pharmacy discount code https://megaindiapharm.com/# Mega India Pharm

  27. Porterfax表示:

    reliable canadian online pharmacy easy canadian pharm easy canadian pharm

  28. MichaelGeony表示:

    rx pharmacy no prescription http://familypharmacy.company/# family pharmacy

  29. Porterfax表示:

    drug mart discount drug mart discount drugs

  30. MichaelGeony表示:

    best no prescription pharmacy https://discountdrugmart.pro/# drug mart

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

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