FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Text animation without pictures?





Diablosblizz
Hi, I would like to have a text that pritty much goes like this:



Or..

Connecting.
Connecting..
Connecting...

As you can see I used a image, and I was wondering if it is possible to do it with php and without a image.

Thanks for ny ideas!
romaop
I know not much about PHP. But it's a programming language, so it's easy to program a string that has 3 sequential states.

The following is not PHP programming, but a general language programming procedure for this case:

// set the initial state of the string
string=state1;

make a continuous loop:

do a delay of, let's say, 1000 ms

if (string==state1)
string=state2;
else if (string==state2)
string=state3;
else
string=state1;

update the output of the string value

end of the loop.

//------------------------
Hope this helps.
//------------------------
snowboardalliance
romaop wrote:
I know not much about PHP.


No you don't. Wink (j/k don't wanna be mean)

Anyway, php is server side
The best you would get with php would be

Connecting.
Connecting..
Connecting...
Connecting.
Connecting..
Connecting...
Connecting.
Connecting..
Connecting...

and so on.

You need to use javascript if you want to actaully change something on the screen. I don't know javascript but it would be simple like

romaop wrote:
do a delay of, let's say, 1000 ms

if (string==state1)
string=state2;
else if (string==state2)
string=state3;
else
string=state1;

And I think like <div id="moving-content">Connecting</div>
You should be able to change the contents of the div with a specific ID (moving-content) and there you go.

Look up some javascript or wait for a real script to be posted.
Related topics
[Beginner] css rollovers
Photoshop/Gimp contest: Bondings' FACE!!
CSS layout help
S|ex At Undermaturity
PHP Question
Download Studio - A great Download Manager.
Intelligent Design?Or Evolution?
New gadget repels teenagers
Another religions
I'll make Icons/Avatars for People!
Feedback and suggestions for improvement of my site
Your top five hottest chicks
Free Sig & Avatar Shop!
Text Animation - For web Developers - Not For Graphic Develp
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.