The same page, placed 2 with a JS conflict, help...

function SlideShow(c) {
var a = document.getElementById("slideContainer"), f = document.getElementById("slidesImgs").getElementsByTagName("li"), h = document.getElementById("slideBar"), n = h.getElementsByTagName("li"), d = f.length, c = c || 3000, e = lastI = 0, j, m;
function b() {
m = setInterval(function () {
e = e + 1 >= d ? e + 1 - d : e + 1;
g()
}, c)
}
function k() {
clearInterval(m)
}
function g() {
f[lastI].style.display = "none";
n[lastI].className = "";
f[e].style.display = "block";
n[e].className = "on";
lastI = e
}
f[e].style.display = "block";
a.onmouseover = k;
a.onmouseout = b;
h.onmouseover = function (i) {
j = i ? i.target : window.event.srcElement;
if (j.nodeName === "LI") {
e = parseInt(j.innerHTML, 10) - 1;
g()
}
};
b()
}
;


Page introduction

<script type="text/javascript">
SlideShows(2000);
</script>



2 the effect of JS, with 1 page always conflicts, parameters are changed or not, the problem is not in Li?

Started by Joanna at November 11, 2016 - 2:42 AM

var a = document.getElementById("slideContainer"), f = document.getElementById("slidesImgs").getElementsByTagName("li"), h = document.getElementById("slideBar"), n = h.getElementsByTagName("li"), d = f.length, c = c || 3000, e = lastI = 0, j, m;

The operation of the ID are written to die, the operation of the same,
Copy over, change, ID

Posted by Perry at November 19, 2016 - 2:51 AM

The ID have changed, or conflict, the 2 li how to change? getElementsByTagName("li") getElementsByTagName("li")

Posted by Joanna at December 02, 2016 - 3:26 AM

The Li binding with Li style changed no style.

Posted by Joanna at December 09, 2016 - 3:35 AM

The method name will be changed, modified, calls,

Posted by Perry at December 11, 2016 - 3:44 AM

hao luan

Posted by Alina at December 22, 2016 - 3:46 AM

The response to 2013-09-24 21:48:42 was removed by the administrator

Posted by Benson at January 03, 2017 - 4:21 AM