Web Hosting Vodahost    

Home Take The Royal Tour! Order Now Features Prices
Go Back   Web Hosting > VodaHost Web Hosting Support > mySQL & PHP

Notices

mySQL & PHP Discussions, information and help with mySQL and PHP.

Reply
 
LinkBack Thread Tools
  #1  
Old 03-23-2007, 06:46 AM
CyberShot's Avatar
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>";
?>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2  
Old 03-23-2007, 04:40 PM
Watdaflip's Avatar
Brigadier General
 
Join Date: Sep 2005
Location: Cincinnati, Ohio
Posts: 1,638
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old 03-26-2007, 03:16 PM
Mook25's Avatar
Brigadier General
 
Join Date: Oct 2005
Location: UK
Posts: 1,447
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.
__________________
Voda Picks >> Prices| Tutorials | BV Download | FAQ | Your First Webpage


Want a banner like above? Contact me here with details.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old 03-26-2007, 05:32 PM
CyberShot's Avatar
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old 03-26-2007, 11:49 PM
Mook25's Avatar
Brigadier General
 
Join Date: Oct 2005
Location: UK
Posts: 1,447
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.
__________________
Voda Picks >> Prices| Tutorials | BV Download | FAQ | Your First Webpage


Want a banner like above? Contact me here with details.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT +1. The time now is 03:39 AM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC7
2005-2009 VodaHost Web Hosting Your Perfect Web Host - All Rights Reserved

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 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176