Código HTML:
<tbody> <?php // ultimas frases $q = mysql_query("SELECT * FROM frases ORDER BY fecha DESC LIMIT $inicio, $registros"); if(mysql_num_rows($q)!=0){ while($frase = mysql_fetch_array($q)){ echo ' <tr> <td> <a target="_blank" href="http://www.facebook.com/sharer.php?u='.$url.'/'.urlSeo($frase['id']).'" onclick="window.open(this.href, this.target, 'width=600,height=800,top=500px,center=100px'); return false;"> <img src="http://www.haceleunqueque.net/images/megusta_boton.png" width="70" height="20"> </a> </td>'; echo '<td class="itemlist"> <div class="frase"><a href="'.$url.'/'.urlSeo($frase['id']).'">'.recortar($frase['texto'],9999).'</a></div> </td> </tr>'; } } ?> </tbody>
Código HTML:
<a target="_blank" href="http://www.facebook.com/sharer.php?u='.$url.'/'.urlSeo($frase['id']).'" onclick="window.open(this.href, this.target, 'width=600,height=800,top=500px,center=100px'); return false;">