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

  1. RobertPaync表示:

    india pharmacy best india pharmacy www india pharm

  2. Trenterone表示:

    legitimate canadian pharmacy: go canada pharm – best rated canadian pharmacy

  3. ChesterFus表示:

    www india pharm: www india pharm – www india pharm

  4. MatthewTek表示:

    https://agbmexicopharm.com/# mexican pharmaceuticals online

  5. EdwinWency表示:

    canadian pharmacy scam: GoCanadaPharm – canadian drug pharmacy

  6. ChesterFus表示:

    cheapest online pharmacy india: buy prescription drugs from india – india online pharmacy

  7. ChesterFus表示:

    Online medicine order: buy prescription drugs from india – www india pharm

  8. Harry Evans表示:

    HSBC’s home equity release products are a well-regarded service for homeowners looking to unlock the value of their property without the need to downsize. Funds can be used for purposes including home improvements, healthcare needs, or helping the next generation. The equity release scheme allows to receive a lump sum, all while staying in your home.

  9. MatthewTek表示:

    https://gocanadapharm.shop/# recommended canadian pharmacies

  10. MatthewTek表示:

    https://agbmexicopharm.com/# mexican online pharmacies prescription drugs

  11. Trenterone表示:

    safe reliable canadian pharmacy: go canada pharm – canadian pharmacy

  12. Trenterone表示:

    mexican mail order pharmacies: Agb Mexico Pharm – Agb Mexico Pharm

  13. EdwinWency表示:

    top 10 online pharmacy in india: www india pharm – online pharmacy india

  14. ChesterFus表示:

    canadian pharmacy store: GoCanadaPharm – safe canadian pharmacies

  15. RobertPaync表示:

    canadian pharmacy india reliable canadian online pharmacy canadian pharmacy com

  16. Trenterone表示:

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

  17. EdwinWency表示:

    mexican pharmaceuticals online: mexican border pharmacies shipping to usa – Agb Mexico Pharm

  18. I think this is among the most significant information for me. And i’m glad reading your article. But wanna remark on few general things, The site style is ideal, the articles is really great : D. Good job, cheers

  19. ChesterFus表示:

    Agb Mexico Pharm: Agb Mexico Pharm – Agb Mexico Pharm

  20. Trenterone表示:

    www india pharm: www india pharm – online pharmacy india

  21. ChesterFus表示:

    canadian pharmacy antibiotics: canadian world pharmacy – canadian pharmacy

  22. EdwinWency表示:

    cheap canadian pharmacy online: go canada pharm – canada drugs online reviews

  23. MatthewTek表示:

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

  24. RobertPaync表示:

    canadian pharmacies online GoCanadaPharm online canadian pharmacy

  25. MatthewTek表示:

    https://agbmexicopharm.com/# mexico pharmacies prescription drugs

  26. MatthewTek表示:

    https://gocanadapharm.shop/# legitimate canadian mail order pharmacy

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

  28. Trenterone表示:

    canadian pharmacy ratings: go canada pharm – canadian pharmacy 24h com safe

  29. RobertPaync表示:

    indian pharmacy paypal www india pharm www india pharm

  30. ChesterFus表示:

    canada drugstore pharmacy rx: go canada pharm – drugs from canada

發佈留言

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