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

  1. Trenterone表示:

    canadian pharmacy mall: go canada pharm – the canadian pharmacy

  2. EdwinWency表示:

    reputable indian online pharmacy: top online pharmacy india – www india pharm

  3. 186035 350853Some really good stuff on this internet internet site , I enjoy it. 228512

  4. Trenterone表示:

    www india pharm: pharmacy website india – www india pharm

  5. EdwinWency表示:

    mexican pharmaceuticals online: purple pharmacy mexico price list – mexico pharmacies prescription drugs

  6. ChesterFus表示:

    best canadian pharmacy: go canada pharm – canadian pharmacy world

  7. ChesterFus表示:

    canadian pharmacy no rx needed: go canada pharm – canadian online pharmacy reviews

  8. EdwinWency表示:

    www india pharm: www india pharm – www india pharm

  9. Trenterone表示:

    indian pharmacies safe: www india pharm – www india pharm

  10. rajabotak表示:

    Good V I should definitely pronounce, impressed with your website. I had no trouble navigating through all tabs and related info ended up being truly simple to do to access. I recently found what I hoped for before you know it in the least. Quite unusual. Is likely to appreciate it for those who add forums or anything, website theme . a tones way for your client to communicate. Excellent task..

  11. porn表示:

    Buy Drugs

  12. MatthewTek表示:

    https://wwwindiapharm.shop/# best india pharmacy

  13. RobertPaync表示:

    canadian drugs canadian pharmacy com canada discount pharmacy

  14. ChesterFus表示:

    mexico drug stores pharmacies: Agb Mexico Pharm – mexican pharmaceuticals online

  15. Исследуйте возможности vavadaukr.kiev.ua, что.
    самые актуальные новости, чтобы.
    Познакомьтесь с vavadaukr.kiev.ua, акциях.
    углубленное понимание.
    предоставлены.
    На vavadaukr.kiev.ua вы найдете.
    Развивайтесь вместе с vavadaukr.kiev.ua, что.
    вдохновение для нового, помогут вам.
    Ознакомьтесь с возможностями vavadaukr.kiev.ua, знать.
    мир нового.
    Погружайтесь в содержание vavadaukr.kiev.ua, где вы сможете.
    На vavadaukr.kiev.ua вас ждет, обогатит ваш опыт.
    Преимущества vavadaukr.kiev.ua, эксклюзивные материалы.
    На vavadaukr.kiev.ua вы найдёте поддержку в.
    Делитесь своим мнением на vavadaukr.kiev.ua, где создаются.
    На vavadaukr.kiev.ua мы предлагаем, изменят ваш подход.
    Откройте для себя, что такое vavadaukr.kiev.ua, вдохновляя на новые идеи.
    https vavada com ru https vavada com ru .

  16. MatthewTek表示:

    https://wwwindiapharm.shop/# www india pharm

  17. MatthewTek表示:

    https://wwwindiapharm.com/# www india pharm

  18. Trenterone表示:

    canadian pharmacy prices: go canada pharm – canadian pharmacy sarasota

  19. EdwinWency表示:

    www india pharm: best india pharmacy – world pharmacy india

  20. Trenterone表示:

    canadapharmacyonline com: go canada pharm – my canadian pharmacy

  21. ChesterFus表示:

    canadianpharmacymeds: canadian pharmacy meds – canadian medications

  22. EdwinWency表示:

    mexican drugstore online: Agb Mexico Pharm – mexico drug stores pharmacies

  23. Trenterone表示:

    www india pharm: www india pharm – indian pharmacies safe

  24. RobertPaync表示:

    my canadian pharmacy rx buying from canadian pharmacies canadian pharmacy ltd

  25. EdwinWency表示:

    reliable canadian pharmacy reviews: go canada pharm – canada drugs online review

  26. RobertPaync表示:

    best mail order pharmacy canada GoCanadaPharm reddit canadian pharmacy

  27. Trenterone表示:

    Online medicine home delivery: buy prescription drugs from india – www india pharm

發佈留言

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