Results 1 to 3 of 3

Thread: Pausing up-down Scroller

  1. #1
    Join Date
    Aug 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Pausing up-down Scroller

    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

  2. #2
    Join Date
    Jul 2008
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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 ?!

  3. #3
    Join Date
    Jul 2008
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I solved the first part of problem and i was able to show the first row from mysql database
    PHP Code:
    <?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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •