: This article mainly introduces the effect of loop playback of php ad images. For more information about PHP tutorials, see.
Image play
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.