Ver Mensaje Individual
  #7 (permalink)  
Antiguo 30/09/2010, 08:03
MuchaDiversion
 
Fecha de Ingreso: enero-2010
Mensajes: 214
Antigüedad: 14 años, 3 meses
Puntos: 4
Respuesta: Dimensiones de SWF externo

Este es el código, bueno, la parte donde se encuentra el problema :)

Código PHP:
$max_width 600;
$max_height 800;
list(
$width$height) = getimagesize($content);
$ratioh $max_height/$height;
$ratiow $max_width/$width;
$ratio min($ratioh$ratiow);
// New dimensions
$width intval($ratio*$width);
$height intval($ratio*$height); 

return 
$width $height ' -  ' $content '<div class="bbcode_swf">
<embed src="' 
htmlspecialchars($content) . '" quality="high" type="application/x-shockwave-flash" allownetworking="internal" allowscriptaccess="never" autoplay="false" wmode="transparent" width="' $width '" height="' $height '"></embed></div>'
Esto me devuelve en pantalla:

Código code:
Ver original
  1. 00 -  [url]http://blubik.com/locatorswf.swf[/url]
__________________
Si tienes ganas de entretenerte un poco, echa un vistazo a Blubik Entretenimiento, por ver de qué va no pasa nada xD