PDA

View Full Version : anyone know how to perfect this code



CyberShot
04-17-2007, 04:21 AM
i have this code based on php. it's a marquee code. I was able to modify it so that when you put your mouse on the down arrow, the text will reverse, and when you put it on the up arrow, the text will go up. but i am trying real hard to get it to move up at a faster rate when you put your mouse on the up arrow and faster when on the down arrow. but i cannot figure it out. can anyone help.

<?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>";
?>

aconstas1
04-17-2007, 05:52 AM
have you played with the "scrollamount=\2\" number? does that affect the rate? if so, may have to add a scrollamount line to the lines with the onmouseover=\mappers up and down lines. I'm not php expert, you'd have to talk to NavalDesign (george) he's the local php guy.

Vasili
04-17-2007, 06:12 AM
Go ahead and inquire directly with General Navaldesign (info@navaldesign.it).

He should be getting new his laptop fired up about now....MUCH better than well-intentioned guesses!

aconstas1
04-17-2007, 06:14 AM
agreed. Sometimes I can figure things out with well intentioned guesses though before I got professional advice. I would contact George first though, and then play around with it till I got a reply. Do as you wish though.

Vasili
04-17-2007, 06:20 AM
"If you do not know, it is best not to post!"

aconstas1
04-17-2007, 06:25 AM
Why bother then, Alex?

If you do not know, it is best not to post! Adding confusion is not a meaningful contribution, is it?

Do you take every one of my posts as a personal attack or something? lighten up.

And yes I do find that others well intentioned guesses were meaningful contributions as they got the gears turning in my head many times to where I could figure out my problem on my own. Just because perhaps you only rely on logic and sure knowledge doesn't mean that everyone else won't try to learn something for themselves and might get it figured out on their own in a faster manner than waiting around for some professional advice. I find it much much more effective to attack a problem from various directions. In this case trying it on your own via some well intentioned guess, and also waiting for some professional advice.

aconstas1
04-17-2007, 06:28 AM
If you notice, i told him i wasnt an expert and i directed him to someone who was. That alone is meaningful information. He can take my advice or not. I left it up to him whether or not my contribution was meaningful, not you.

CyberShot
04-17-2007, 07:22 AM
I already tried your suggestions aconstas1. it didn't work. and about this General. is he in the habbit of writing php code. because i do believe inorder to get this script working it will require some java as well.

aconstas1
04-17-2007, 07:25 AM
I already tried your suggestions aconstas1. it didn't work. and about this General. is he in the habbit of writing php code. because i do believe inorder to get this script working it will require some java as well.

He is the best qualified to help you. There is nothing php java on this scale he can't handle.

Vasili
04-18-2007, 02:49 AM
I already tried your suggestions aconstas1. it didn't work. and about this General. is he in the habbit of writing php code. because i do believe inorder to get this script working it will require some java as well.General Navaldesign is a Certified Programmer (his day job) and remains one of the signifcant contributors to VodaTalk and VodaHost clients.


Ask him about any possible "Ajax" solutions.....it is fast becoming a standard!