PDA

View Full Version : Pausing up-down Scroller



Endurance Man
08-25-2008, 02:09 PM
1) Script Title: Pausing up-down Scroller

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex2/crosstick.htm

3) Describe problem:

I want to update the contents of the scroller dynamically and only scroll to the next content when it is changed. Is this possible with this script, or could someone recommend something that would suite this?

Thanks for any help :]
Endo

aneeshtan
12-12-2008, 02:58 PM
This is my problem either

how is it possible to make the script read from mysql and retrieve data

when i add <?php clause and want to include some php function the total script would be down

suggestion ?!

aneeshtan
12-12-2008, 04:59 PM
I solved the first part of problem and i was able to show the first row from mysql database


<?php
$i=0;
$sql =
$db->
sql_query("SELECT
*
FROM
Blah_blah
where active='1'");
while ($row =
$db->
sql_fetchrow($sql))
{
$title = $row['title'];
$text="pausecontent2[$i]='$title'";
}
?>
<script type="text/javascript">
var pausecontent2=new Array()
<?php echo $text;$i++ ?>

</script>


the only problem is that the loop didn't worked fine

and the script only showed first query and repeat it like this :

blah-blah
undefined

blah-blah
undefined

is there anything wrong with the above codes ?

thanx