+ Reply to Thread
Results 1 to 5 of 5

Thread: scripting question
      
   

  1. #1
    CyberShot's Avatar
    CyberShot is offline First Sergeant
    Join Date
    Jan 2007
    Posts
    84

    Default 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. #2
    Watdaflip's Avatar
    Watdaflip is offline Major General
    Join Date
    Sep 2005
    Location
    Cincinnati, Ohio
    Posts
    2,119

    Default 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

  3. #3
    Mook25's Avatar
    Mook25 is offline Brigadier General
    Join Date
    Oct 2005
    Location
    UK
    Posts
    1,430

    Default 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

  4. #4
    CyberShot's Avatar
    CyberShot is offline First Sergeant
    Join Date
    Jan 2007
    Posts
    84

    Default 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.

  5. #5
    Mook25's Avatar
    Mook25 is offline Brigadier General
    Join Date
    Oct 2005
    Location
    UK
    Posts
    1,430

    Default 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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49