Why can't I call two image flow modules on the PHP page?

Source: Internet
Author: User
Why does the PHP page call two image streaming modules? why did I build a PHP page? why does one module work? The code is as follows: & lt; div & nbsp; id = "www_qpsh_com" & nbsp; style = "overflo PHP why do I not move the two image flow modules on the page?
I made a PHP page, and a flow module was designed to flow.
Why do two flow modules not flow?

The code is as follows:




 

Var fx = 0;
Var speed = 20 // the greater the speed, the slower the speed.
Www_qpsh_com2.innerHTML = www_qpsh_com1.innerHTML
Function Marquee (){
If (fx = 0 ){
If (www_qpsh_com2.offsetWidth-www_qpsh_com.scrollLeft <= 0)
Www_qpsh_com.scrollLeft-= www_qpsh_com1.offsetWidth
Else {
Www_qpsh_com.scrollLeft ++
}
} Else {
If (www_qpsh_com.scrollLeft <= 0 ){
Www_qpsh_com.scrollLeft + = www_qpsh_com1.offsetWidth
}
Else {
Www_qpsh_com.scrollLeft --
}
}
}
Var MyMar = setInterval (Marquee, speed)
Www_qpsh_com.onmouseover = function () {clearInterval (MyMar )}
Www_qpsh_com.onmouseout = function () {MyMar = setInterval (Marquee, speed )}
Function left (){
Fx = 0;
}
Function right (){
Fx = 1;
}
Function linkmenu (id ){
Document. getElementById ("linkmenu1"). className = ""; document. getElementById ("linkmenu2"). className = "";
Document. getElementById ("linkmenu" + id). className = "linkon ";
Document. getElementById ("linkcont1"). style. display = "none"; document. getElementById ("linkcont2"). style. display = "none ";

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.