Page 1 of 1

onmouse over open floating div

Posted: Sun Nov 01, 2015 2:38 am
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]

Re: onmouse over open floating div

Posted: Sun Nov 01, 2015 8:21 am
by Celauran
Not with PHP. You can use either CSS or JS to accomplish it, depending on the specific behaviour you're after.

Re: onmouse over open floating div

Posted: Sun Nov 01, 2015 9:53 am
by lior_lev
i have j.s for this but i don't know how to integrate between them.

Re: onmouse over open floating div

Posted: Sun Nov 01, 2015 9:58 am
by Celauran