Php ad image loop playback slide effect

Source: Internet
Author: User
: This article mainly introduces the effect of loop playback of php ad images. For more information about PHP tutorials, see.
    
     Image play    

  • 1
  • 2
  • 3
  • 4

Script var tags = $ ("fd "). getElementsByTagName ("li"); // Get the switch button node var cats = $ ("fd "). getElementsByTagName ("p"); // Get the varcurrent node of the switching content node; // The variable propaganda container var timer = 2000 that raises the current frame; // Set the function disAll () {for (var I = 0; I Function () {clearInterval (h); disAll (); this. className = "now"; setNow (); cats [current]. style. display = "block"; cats [current]. className = "now";} tags [j].> function () {setNow (); h = setInterval ("goNext ()", 3000) ;}} function goNext () {setNow (); current + = 1; if (current> = parseInt (tags. length) {current = 0; disAll (); cats [0]. style. display = "block"; tags [0]. className = "now"; cats [0]. className = "now";} else {disAll (); cats [current]. style. display = "block"; cats [current]. className = "now"; tags [current]. className = "now" ;}} var h = setInterval ("goNext ()", timer); function $ (obj) {return document. getElementById (obj);} script

The above describes the effect of loop playback of php ad images, including some content. I hope my friends who are interested in PHP tutorials will be helpful.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.