views:

131

answers:

1

Hi,

I'm trying to create a nice scroller where the text scrolls up, like:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
<html xmlns="http://www.w3.org/1999/xhtml"&gt;
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css" media="screen">
#test{
    width:200px;
    height:50px;
    overflow:hidden;
    border:10px solid #000;
}
span{
    display:block;
    background:pink;
    font-size:28px;
    font-weight:bold;
    cursor:pointer;
}
</style>
<script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.7.2.custom.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
    $("span").click(function() {
        $("p").hide("slide", { direction: "up", distance:0 }, 2000);
    });
});
</script>
</head>

<body>
<div id="test">
    <p>Some<br />Text<br />Over<br />A<br />Few<br />Lines</p>
</div>
<span>Clicky Here!!</span>
</div>
</body>
</html>

This works great, but in IE7 and 6 once the button is clicked it ignores the overflow and just shows the whole of the text.

Eventually i'm using this to scroll over images as part of a gallery, but i've condensed/simplified it down just to show the problem at hand.

Thanks to anybody who can help!

A: 

Can you post a link to the working site?

Jeepstone