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

  1. Starcul表示:

    The author raises really important questions that concern absolutely each of us today https://dilts.g-u.su

  2. Davidzem表示:

    http://taya777.icu/# Many casinos have beautiful ocean views.
    The casino atmosphere is thrilling and energetic.

  3. JosephCyday表示:

    jugabet jugabet chile La seguridad es prioridad en los casinos.

  4. Davidzem表示:

    http://taya365.art/# Live music events often accompany gaming nights.
    The casino scene is constantly evolving.

  5. Lannyhat表示:

    Players enjoy both fun and excitement in casinos.: phmacao com – phmacao com login

  6. Williamgox表示:

    A variety of gaming options cater to everyone. https://taya365.art/# Gambling regulations are strictly enforced in casinos.

  7. Lannyhat表示:

    Casino visits are a popular tourist attraction.: phtaya login – phtaya casino

  8. Davidzem表示:

    https://winchile.pro/# La pasiГіn por el juego une a personas.
    A variety of gaming options cater to everyone.

  9. Patrickspogs表示:

    Responsible gaming initiatives are promoted actively.: phmacao – phmacao club

  10. Patrickspogs表示:

    Live music events often accompany gaming nights.: phmacao com login – phmacao.life

  11. JosephCyday表示:

    jugabet jugabet Las aplicaciones mГіviles permiten jugar en cualquier lugar.

  12. Williamgox表示:

    The casino experience is memorable and unique. http://taya777.icu/# Most casinos offer convenient transportation options.

  13. Patrickspogs表示:

    Slot tournaments create friendly competitions among players.: phmacao – phmacao.life

  14. JosephCyday表示:

    phmacao phmacao casino Promotions are advertised through social media channels.

  15. JosephCyday表示:

    taya365 login taya365 com login A variety of gaming options cater to everyone.

  16. Lannyhat表示:

    Promotions are advertised through social media channels.: taya365 login – taya365.art

  17. Lannyhat表示:

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

  18. Davidzem表示:

    https://jugabet.xyz/# Las ganancias son una gran motivaciГіn.
    Most casinos offer convenient transportation options.

  19. Lannyhat表示:

    Responsible gaming initiatives are promoted actively.: taya777.icu – taya777 login

  20. Patrickspogs表示:

    Los jugadores disfrutan del pГіker en lГ­nea.: jugabet casino – jugabet

  21. Patrickspogs表示:

    Many casinos provide shuttle services for guests.: phtaya login – phtaya.tech

  22. Davidzem表示:

    http://winchile.pro/# п»їLos casinos en Chile son muy populares.
    Players enjoy a variety of table games.

  23. Patrickspogs表示:

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

  24. JosephCyday表示:

    taya365 com login taya365 login Gambling can be a social activity here.

  25. Lannyhat表示:

    Cashless gaming options are becoming popular.: taya365 – taya365.art

  26. Davidzem表示:

    https://winchile.pro/# Las redes sociales promocionan eventos de casinos.
    The ambiance is designed to excite players.

  27. JosephCyday表示:

    taya365 login taya365 com login Players enjoy a variety of table games.

  28. JosephCyday表示:

    winchile casino winchile.pro Las promociones de fin de semana son populares.

  29. Williamgox表示:

    The Philippines offers a rich gaming culture. http://jugabet.xyz/# Hay casinos en Santiago y ViГ±a del Mar.

發佈留言

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