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

  1. EdwinWency表示:

    online shopping pharmacy india: www india pharm – best india pharmacy

  2. MatthewTek表示:

    https://gocanadapharm.shop/# buy drugs from canada

  3. idgod表示:

    Hello to every single one, it’s really a nice for me to go to see this web site, it includes important Information.|

  4. EdwinWency表示:

    п»їbest mexican online pharmacies: Agb Mexico Pharm – Agb Mexico Pharm

  5. Профессиональный сервисный центр по ремонту бытовой техники с выездом на дом.
    Мы предлагаем:сервисные центры в москве
    Наши мастера оперативно устранят неисправности вашего устройства в сервисе или с выездом на дом!

  6. Trenterone表示:

    www india pharm: www india pharm – mail order pharmacy india

  7. Trenterone表示:

    canada drug pharmacy: go canada pharm – canadian drugs

  8. Ckgflx表示:

    buy zovirax 400mg online – purchase rosuvastatin for sale crestor 10mg over the counter

  9. MatthewTek表示:

    https://gocanadapharm.com/# canadian pharmacy sarasota

  10. ChesterFus表示:

    drugs from canada: adderall canadian pharmacy – ed meds online canada

  11. MatthewTek表示:

    https://wwwindiapharm.shop/# top 10 online pharmacy in india

  12. Trenterone表示:

    pharmacies in mexico that ship to usa: best online pharmacies in mexico – Agb Mexico Pharm

  13. RobertPaync表示:

    www india pharm indian pharmacies safe reputable indian online pharmacy

  14. RobertPaync表示:

    canada drugs online GoCanadaPharm canadian pharmacy oxycodone

  15. ChesterFus表示:

    canadapharmacyonline legit: best rated canadian pharmacy – prescription drugs canada buy online

  16. ChesterFus表示:

    canadian compounding pharmacy: canadian pharmacy cheap – canadian pharmacy sarasota

  17. MatthewTek表示:

    http://gocanadapharm.com/# canada pharmacy online

  18. porn表示:

    Buy Drugs

  19. Trenterone表示:

    online shopping pharmacy india: www india pharm – www india pharm

  20. EdwinWency表示:

    ed drugs online from canada: GoCanadaPharm – canada drugs online review

  21. ChesterFus表示:

    Agb Mexico Pharm: Agb Mexico Pharm – Agb Mexico Pharm

  22. EdwinWency表示:

    online shopping pharmacy india: www india pharm – www india pharm

  23. MatthewTek表示:

    https://agbmexicopharm.shop/# Agb Mexico Pharm

  24. ChesterFus表示:

    canadianpharmacyworld: go canada pharm – canadian pharmacy 24

發佈留言

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