Announcement

Collapse
No announcement yet.

scripting question

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • scripting question

    i have a scrolling block in php on my website that is working. it has an up arrow and a down arrow in the block. when you put the mouse on the down arrow, the content changes direction and goes down. when you put the mouse on the up arrow, it will change again and start going up. for the life of me i cannot figure out how to get it to move faster. what i want is to make it go up at a faster rate. so the scrollamount is 2. so when you put your mouse on the up arrow, i want the scroll amount to be 4, but it doesn't work. can anyone help. here is the code. it's very small.
    PHP Code:
    <?php
    #### Generated by Block Creator by Disipal Site (www.disipal.net) ###
    if (eregi("block-{ASP}_mappers.php",$PHP_SELF)) {
    Header("Location: index.php");
    die();
    }
    $content ="<marquee id=\"mappers\" direction=\"up\" height=\"100\" scrollamount=\"2\" onmouseover='this.stop()' onmouseout='this.start()'>";
    $content.="<img src='../main/avitars/aspmm.jpg' style='vertical-align: middle; width: 148px; border: 0;'> </img>";
    $content .="<center><a href=http://www.asp-gamers.com/map/modules.php?name=Private_Messages&file=index&mode=post&u=4><strong>{ASP}CyberShot</strong></center></a><br>";
    $content .="<center><strong>{ASP}SniperOne</strong></center><br>";
    $content .="<center><strong>{ASP}Andy</strong></center><br>";
    $content .="<center><strong>{ASP}Gizmo</strong></center>";
    $content.="</marquee>";
    $content .="<hr><center><input type=image src='../main/cyber/images/Red1.gif' onmouseover=\"mappers.direction='up' ;\"> <br><br>";
    $content .="<center><input type=image src='../main/cyber/images/Red.gif' onmouseover=\"mappers.direction='down' ;\"> <hr>";
    ?>

  • #2
    Re: scripting question

    There should be some javascript that goes along with this, that is most likly what will need to be edited in order to increase the scroll rate

    Register/Login Script
    Do you use a Password Protected Directory? Need a way to allow users to make their own account, try my .htaccess Login Script

    Comment


    • #3
      Re: scripting question

      Within the code you supplied you need to find where it says the following

      PHP Code:
      $content ="<marquee id=\"mappers\" direction=\"up\" height=\"100\" scrollamount=\"2\" onmouseover='this.stop()' onmouseout='this.start()'>"
      Where it says scrollamount=\"2\, you would change the number 2 to a higher number to increase the speed and a lower one to decrease the speed. Hope that helps.
      Arcade Ninja - Free Flash Arcade
      FreeGadget4me.Com - Learn how to get free gadgets delivered direct to your door for free

      Comment


      • #4
        Re: scripting question

        i think you misunderstood my post. i know how to change the speed. what i wanted to do was have it change automatically when you put your mouse over the up arrow. and change again on the down arrow. read my post again and look at the code i posted.

        Comment


        • #5
          Re: scripting question

          Sorry my fault, not paying attetion again. too eager to help. lol
          I think whatdaflip is correct then and you will need some javascript to do this as php can only do one or the other.
          Arcade Ninja - Free Flash Arcade
          FreeGadget4me.Com - Learn how to get free gadgets delivered direct to your door for free

          Comment

          Working...
          X