unidox Posted September 21, 2007 Share Posted September 21, 2007 My code: if ($mysql[rosterpic] !== "0"){ ?> <td style="border: 1px solid rgb(42,49,52)"><a href="index.php?id=csroster&roster_id=<?=$mysql[roster_id]?>"><img src="<?=$imagefilepath . 'rosterpic' . $mysql[roster_id] . '.' . $mysql['imagetype']?>" width="45" height="45" border="0" onmouseover="swapOnRoster('<?=$mysql[first]?>','<?=$mysql[last]?>','<?=$mysql[alias]?>')" onmouseout="swapOffRoster()"></img></a></td> <? } else { ?> <td style="border: 1px solid rgb(42,49,52)"><a href="index.php?id=csroster&roster_id=<?=$mysql[roster_id]?>"><img src="pics/roster.gif" width="45" height="45" border="0" onmouseover="swapOnRoster('<?=$mysql[first]?>','<?=$mysql[last]?>','<?=$mysql[alias]?>')" onmouseout="swapOffRoster()"></img></a></td> <? } Works for the if part fine, but when I add someone to the roster without an image, it appears for like a second, then goes away. Whats wrong? Thanks in advance. Quote Link to comment Share on other sites More sharing options...
taith Posted September 21, 2007 Share Posted September 21, 2007 i would think it'd have something to do with "onmouseout="swapOffRoster()"" Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.