if statement with mouse over help

Location of the Videos
Post Reply
User avatar
Kirbie
Posts: 33
Joined: Sun Apr 11, 2010 5:44 pm

if statement with mouse over help

Post by Kirbie »

Does any know if you can do a mouse over in an if statement?

what im looking to do is

If spoint is less then or equal to 0

Mouse over ......when the user goes to click on use spell in battle arena it will popup a window and show that they have no spoints

else

the rest of the code

If looked on line and have not found anything that will do this. Could be that im not smart enough to google it, but i have tried
Image
User avatar
hallsofvallhalla
Site Admin
Posts: 12026
Joined: Wed Apr 22, 2009 11:29 pm

Re: if statement with mouse over help

Post by hallsofvallhalla »

if you change your spells to actual pics it will make it much easier. You can still mouse over links but pics are far better to work with.

Basically to get you started make the mouse over text a PHP variable like $mspelltext. Have the if statement run before the link stating something like

Code: Select all

if($spellpoints < 1)
{
$mspelltext = "You do not have enough spell Points!";
}
else
{
$mspelltext = "";
}
the make your mouse over = $mspelltext...
Post Reply

Return to “Older Browser MMO Videos”