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...

9,819 Responses

  1. Davidzem表示:

    https://taya365.art/# Most casinos offer convenient transportation options.
    Security measures ensure a safe environment.

  2. JosephCyday表示:

    taya365 taya365 The casino industry supports local economies significantly.

  3. Davidzem表示:

    http://phmacao.life/# Cashless gaming options are becoming popular.
    Some casinos feature themed gaming areas.

  4. Lannyhat表示:

    The gaming floors are always bustling with excitement.: taya365 login – taya365 login

  5. Lannyhat表示:

    Los casinos ofrecen entretenimiento en vivo.: winchile.pro – winchile

  6. Lannyhat表示:

    Las apuestas deportivas tambiГ©n son populares.: jugabet chile – jugabet

  7. Davidzem表示:

    https://jugabet.xyz/# Los jackpots progresivos atraen a los jugadores.
    Online gaming is also growing in popularity.

  8. Patrickspogs表示:

    Poker rooms host exciting tournaments regularly.: taya777.icu – taya777 register login

  9. Patrickspogs表示:

    Players often share tips and strategies.: taya777 app – taya777.icu

  10. Patrickspogs表示:

    Casinos often host special holiday promotions.: phtaya – phtaya

  11. Davidzem表示:

    http://jugabet.xyz/# Las promociones atraen nuevos jugadores diariamente.
    Some casinos have luxurious spa facilities.

  12. Williamgox表示:

    Many casinos provide shuttle services for guests. https://jugabet.xyz/# Los casinos organizan noches de trivia divertidas.

  13. Davidzem表示:

    https://taya365.art/# Slot machines attract players with big jackpots.
    The gaming floors are always bustling with excitement.

  14. JosephCyday表示:

    jugabet chile jugabet.xyz La mГєsica acompaГ±a la experiencia de juego.

  15. JosephCyday表示:

    jugabet chile jugabet Los jugadores deben conocer las reglas.

  16. Lannyhat表示:

    Players can enjoy high-stakes betting options.: phtaya.tech – phtaya login

  17. Davidzem表示:

    https://phtaya.tech/# Slot machines feature various exciting themes.
    Some casinos feature themed gaming areas.

  18. Stormwrn表示:

    In the modern world, we increasingly have to deal with exactly such situations, I absolutely agree with the author https://dilts.g-u.su

  19. Masterqyp表示:

    Every sentence in this post makes you seriously think about what is happening around https://dilts.g-u.su

  20. Williamgox表示:

    Players must be at least 21 years old. http://phmacao.life/# Players enjoy both fun and excitement in casinos.

  21. Lannyhat表示:

    Es comГєn ver jugadores sociales en mesas.: winchile.pro – winchile casino

  22. Patrickspogs表示:

    Los juegos en vivo ofrecen emociГіn adicional.: jugabet chile – jugabet chile

  23. Patrickspogs表示:

    Poker rooms host exciting tournaments regularly.: taya777 register login – taya777

  24. Patrickspogs表示:

    Los casinos celebran festivales de juego anualmente.: win chile – winchile casino

  25. Moneybfr表示:

    I need to save this post and show it to everyone I know, because it is really important https://dilts.g-u.su

  26. Masterpxw表示:

    It’s amazing how the author was able to describe so deeply and insightfully what many people think https://dilts.g-u.su

發佈留言

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