Page 1 of 1

if statement with mouse over help

Posted: Tue May 04, 2010 3:14 am
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

Re: if statement with mouse over help

Posted: Tue May 04, 2010 1:21 pm
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...