Css overflow:hidden + javascript problem

I have ran into a problem with css overflow: hidden + javascript problem. I have been googling the whole day without a solution.

I need to use div overflow:hidden to make the background img repeat itself properly:


but the java popup does not work.

When I remove the overflow:hidden from the div, java popup works BUT will not repeat the bg img properly:


Any advices or work-arounds?