PDA

View Full Version : DOCtype gives slideshow horizontal scrollbar



chechu
03-02-2010, 01:09 PM
1) Script Title: http://www.dynamicdrive.com/dynamicindex1/scrollerlink.htm

2) Script URL (on DD): Scrollable Menu Links

3) Describe problem: I am using this script to have a nice slideshow, controlled by the user, with the ability to have the LightBox in it.
I used that one, and not this one (http://www.dynamicdrive.com/dynamicindex4/cmotiongallery.htm) because otherwise the JavaScript of the LightBox and the motiongallery conflict.

It says in the description that "the script is also updated for a Mozilla bug and now works in webpages with a strict doctype setting". When I use the following doctype, there appears a horizontal scrollbar, as wide as all the content of the images together.


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">


How can the scrollbar be avoided, please ?

Nile
03-02-2010, 01:13 PM
Please post a link to the page on your site that contains the problematic script so we can check it out.

chechu
03-02-2010, 01:20 PM
Sorry: http://www.b-love-d.com

This is the doctype of the index and contactpages:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"

"http://www.w3.org/TR/html4/strict.dtd">


But I had to use this doctype for the slideshow (click on "ballerinas") to avoid the slideshow.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">


You can see the slideshow with the strict doctype here, to see the scrolling: http://www.b-love-d.com/test/ballerinasummer.php

Issue is not the doctypes itself; if it works, it works. But because I have to change the doctype, the site looks different in IE and FF (the menu items below move a bit to the left).

chechu
03-03-2010, 08:12 PM
Anyone, please ?
That site is really buggin me!
- the doctypes changes the design in IE and FF
- the LightBox doesn't work with the slideshow in FF
Help appreciated!