onmouse over open floating div

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
lior_lev
Forum Newbie
Posts: 2
Joined: Sun Nov 01, 2015 2:35 am

onmouse over open floating div

Post by lior_lev »

Hello,

this is my first time that i"m asking question, i"m new in php
i like to know how can i ( if ther is a way ) to use onmouseover & onmouseout to open and close floating div with this code
[syntax=php] <table width="770" align='center' id='searchResult' valign='top'>
<tr><th width='100px'><img src="images/list.png" alt="#"/></th><th><img src="images/database.png" alt="Addon" /></th><th width='150px'><img src="images/Version.png" alt="גרסה"/></th><th width='150px'> <img src="images/disc.png" alt="גודל" /></th><th width='150px'><img src="images/Calendar.png" alt="תאריך" /></th>
</tr>
<?

$i=1;
foreach ($packs as $pack)
{
echo "<tr>";
echo "<td>".((($page-1) * $items) + $i++)."</td><td>".$pack["name"].'</td>';
echo "<td>".'<a href="'.$pack["file"].'">'.$pack["version"]."</a>";
echo '</td>';
if (is_file($pack["file"]))
echo "<td>".$pack["size"]."</td><td class=\"date-col\">".$pack["date"];
if (time()-filemtime($pack["file"]) < 3*24*60*60)
echo '<img src="../images/new.png">';
echo "</td>";
echo "</tr>";
}
?>
</tr></table></div></td></tr></table>[/syntax]
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: onmouse over open floating div

Post by Celauran »

Not with PHP. You can use either CSS or JS to accomplish it, depending on the specific behaviour you're after.
lior_lev
Forum Newbie
Posts: 2
Joined: Sun Nov 01, 2015 2:35 am

Re: onmouse over open floating div

Post by lior_lev »

i have j.s for this but i don't know how to integrate between them.
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: onmouse over open floating div

Post by Celauran »

Post Reply