Thanks for that, it does look great, however I seem to be encountering some
problems with it and alas I can't seem to find the problem.
The code for the header (which is where this is located) is
?php require_once('../Connections/Connection1.php'); ?
?php
mysql_select_db($database_Connection1, $Connection1);
$query_News = SELECT ss_news.news_title FROM ss_news ORDER BY
ss_news.news_date;
$News = mysql_query($query_News, $Connection1) or die(mysql_error());
$row_News = mysql_fetch_assoc($News);
$totalRows_News = mysql_num_rows($News);
?
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
http://www.w3.org/TR/html4/loose.dtd;
html
head
meta http-equiv=Content-Type content=text/html; charset=iso-8859-1
titleUntitled Document/title
style type=text/css
!--
body {
background-color: #97AECE;
}
.scrollClass {
text-align:center;
font:normal 80% Arial,sans-serif;
}
--
/style
/head
script language=JavaScript
!--
function var scroller1 = new scrollObject(scroller1, MainName, 120, 120,
white, up, 1.35, 2.7, 30, 5000);
{
}
//--
script language=JavaScript
!--
scroller1.block[0] = This is block 1;
scroller1.block[1] = This is block 2;
scroller1.block[2] = Blocks can contain any HTML including:;
scroller1.block[3] = Images, tables, links and more;
scroller1.block[4] = Easy to configure, easy to run, with content
automatically centred horizontally and vertically;
scroller1.block[5] = Have any number of block scrollers running on a single
page all with a single JavaScript;
scroller1.block[6] = View the source for more info!;
//--
/script
/script
body onLoad=scroller1.scroll();
div id=Layer1 style=position:absolute; left:29px; top:9px; width:35%;
height:92px; z-index:1; background-color: #FF; layer-background-color:
#FF; border: 1px none #00; div id=MainName
The contents of this block will be displayed if the browser does not support
the scroller.
It will be overwritten if the scroller is supported.
/div/div
div id=Layer2 style=position:absolute; left:400px; top:10px; width:60%;
height:60px; z-index:2;
div align=rightimg src=../images/header.png width=450 height=60
border=0 align=right /div
/div
div id=Layer1 style=position:absolute; left:12px; top:3px; width:100%;
height:47px; z-index:1;/div
/body
/html
?php
mysql_free_result($News);
?
Now, can you see the causes of these two errors...
A runtime error has occurred. Do you wish to Debug, Line: 20 Error:
Expected 9
And also
A runtime error has occurred. Do you wish to Debug, Line: 36 Error:
'scroller1' is undefined.
Any help on this issue is greatly appriciated.
Regards,
Alex
On 23/12/05 11:16, Neil Smith [MVP, Digital media]
[EMAIL PROTECTED] wrote:
At 20:39 22/12/2005, you wrote:
Date: Thu, 22 Dec 2005 20:38:58 +
From: Alex Major [EMAIL PROTECTED]
To: php-db@lists.php.net
Message-ID: [EMAIL PROTECTED]
Mime-version: 1.0
Content-type: text/plain;
charset=US-ASCII
Content-transfer-encoding: 7bit
Subject: Scrolling News
Hi there.
I'm trying to make a scrolling news box for my website. Basically I would
like this news box to get information from a column in my database called
'news_title' and display it in a scrolling news box.
Any suggestions for how to go about doing this? I'm still very new to php.
Recommend : OrcaScroller (cross browser)
http://www.greywyvern.com/javascript
Block scroller and marquee
Cheers - Neil
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php