Actually, it is probably your DOCTYPE. That script is out of date for most modern DOCTYPE's.
You are using an XHTML DOCTYPE and your page isn't XHTML as far as I can see. You should get rid of all those /> things and use an HTML DOCTYPE. Also get rid of:
HTML Code:
<html xmlns="http://www.w3.org/1999/xhtml">
Just use:
This still won't fix the script unless you use the same DOCTYPE as the htm page does or no DOCTYPE, not a real good idea in either case as, either puts the browser into quirksmode. Here is an updated version of the script:
http://www.dynamicdrive.com/forums/s...ad.php?t=13239
If you were validating with your XHTML DOCTYPE, you should be able to use HTML 4.01 strict. Otherwise, use HTML 4.01 transitional. Don't forget to get rid of those /> things, just use >
Bookmarks