简体   繁体   中英

JavaScript not working on Chrome or on Firefox

Hi~I'm working on my personal website.

I want to realize an "image slide show" effect with a java script that i downloaded.

It works well on IE, but it doesn't work on Chrome or Firefox.

PS: the original downloaded file works well on Chrome, but after i placing it to my site, the problem comes.

here is my site: http://iphrog.244213.dprktimes.com/ here is the java script sample code: http://iphrog.244213.dprktimes.com/index2.html

they use the same js file, but the js file doesn't work on chrome for my site.

Whats the problem?

The problem is your div with the id of content has a z-index of -1000. This is causing it to not detect any of the clicks on your elements, as it is 'behind everything'. Remove this style, set it to 0 or set it to a non-negative number, and your script works fine.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM