iPhrog
iPhrog

Reputation: 7

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?

Upvotes: 0

Views: 1079

Answers (1)

Daedalus
Daedalus

Reputation: 7722

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.

Upvotes: 2

Related Questions