hovering image will show text.

phpBB3 and MOD challenges setup by the staff to test and challenge your phpBB3 coding skills.

hovering image will show text.

Postby silencer0 » 21 Jul 2007, 14:04

the rating at this site : http://www.reflexive.com/SuperTextTwist.html does this..
i would like to know how to do this :p i would like to have the same at my site but i really don't know how to do this :blush: i hope you guys can help me..

==> another question, how to do the same with a field? if the field's empty it shows please enter password .. or else please click login..
i tried this in php it wasn't working
Code: Select all
 if (empty($_POST['field']))
{
    echo 
" please enter password ..";
}
else
{
    echo 
"please click login..";
}
 

^^ this didn't work, as it doesn't refreshes it'sself..
Thanks.
- Silencer0
Proud to be working on : - Extended Warning Mod Grin
silencer0
Ensign
Ensign
 
Posts: 84
Joined: 10 Feb 2007, 05:08
Gender: Male




phpBB Academy at StarTrekGuide
Support STG
Using PayPal Donate

Re: hovering image will show text.

Postby Highway of Life » 23 Jul 2007, 22:17

silencer0 wrote:the rating at this site : http://www.reflexive.com/SuperTextTwist.html does this..
i would like to know how to do this :p i would like to have the same at my site but i really don't know how to do this :blush: i hope you guys can help me..
One question at a time if its not related, please. ;)

Can you provide a screenshot of what you are talking about? I either: 1) Don?t understand, 2) Couldn?t find it on the site.
silencer0 wrote:==> another question, how to do the same with a field? if the field's empty it shows please enter password .. or else please click login..
i tried this in php it wasn't working
Code: Select all
 if (empty($_POST['field']))
{
    echo " please enter password ..";
}
else
{
    echo "please click login..";
}
 

^^ this didn't work, as it doesn't refreshes it'sself..
Thanks.
- Silencer0
Refreshes itself? :confused:
What gives you the idea that it should refresh itself? -- assuming you have <input type="password" value="" name="field" /> in your HTML, this code should work.
If you submit the form, but ?field? is empty, it will print ?please enter password ..?, if it is filled out, it will say ?please click login..?
Watch out! I might do a code wheelie!

User avatar
Highway of Life    
STG Jedi Master
STG Jedi Master
 
Posts: 10458
Joined: 08 May 2006, 05:23
Location: Beware of Programmers carrying screwdrivers
Gender: Male
phpBB Knowledge: 10

Re: hovering image will show text.

Postby silencer0 » 25 Jul 2007, 10:07

actually it will not work as when the page "LOADS" itsself lol the field is empty... and when you enter something in it it will not change it will still say enter password please...
hmm lol ok wait i'm going to record it with an app..
ok i've uploaded it... link to the flash recorded thing.. :
http://www.the-wod.com/shadows/changing%20text.html

do you see what i mean now? :P
Thanks..
Proud to be working on : - Extended Warning Mod Grin
silencer0
Ensign
Ensign
 
Posts: 84
Joined: 10 Feb 2007, 05:08
Gender: Male


Return to phpBB3 Challenges at phpBB Academy

Who is online

Users browsing this forum: No registered users and 2 guests