View Full Version : Scrolling JS working in HTML file, but not ASP?

03-13-2008, 12:35 PM
Hi all - hopefully a relatively easy question, which I cannot answer.

There's a JS on Dynamic Drive which scrolls content within a div - (http://www.dynamicdrive.com/dynamicindex11/scrollc2.htm). Great little script and works well on all well known browsers. I tested it against the new IE8 beta, and found that although it works fine when the script is in a HTML file, it fails when the same script is copied into a ASP file.

By failure I mean that the CSS property and value of "overflow: hidden" don't seem to work for ASP, and the text "flows" out of the containing div.

Any pointers would be appreciated!