PDA

View Full Version : Scrollable Content II and FF



DJDarknez
10-01-2007, 08:49 PM
1) Script Title: Scrollable Content II

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex11/scrollc2.htm

3) Describe problem:

Well, I made a site for a pizza place I frequent (for the time being, located at http://www.djdarknez.com/oss/mugs. I added in the SCII script for the menus. In IE7, it works great. However, upon testing the site in FF 2.0.0.7, it doesn't work.

HOWEVER, when I go to the DD page for SCII, it DOES work. Did I screw up the code somehow? I can't fathom why it does work for IE7 on both sites, but only on 1 for FF.

Halp?

Thanks!

DJDarknez
12-20-2007, 03:36 AM
I think it's safe to give this a bump, it's been 2.5 months.

jscheuer1
12-20-2007, 04:38 AM
Sloppy coding, there are other examples on the page, but specifically relevant to this problem, you open a div tag at the beginning of the content area:


<!--INSERT CONTENT HERE-->

<div align="center">

and never close it.

Since the whole page is a bit unorthodox, instead of fixing that, I'd suggest simply giving the table that holds the controls relative position:


<table style="position:relative;" width="700px"><td><p align="right">
<a href="#" onMouseover="moveup()" onMouseout="clearTimeout(moveupvar)"><img src="../images/up.gif" border=0></a> <a href="#" onMouseover="movedown()" onMouseout="clearTimeout(movedownvar)"><img src="../images/down.gif" border=0></a></p></td>
</table>

That will preserve the page's apparent layout (the look of the page), while at the same time making the controls accessible in FF. If you actually fixed the problem of the unclosed div tag properly, the controls for the scroller would move to the bottom of the box that holds the scrolling menu.