Foros del Web » Programando para Internet » PHP » Frameworks y PHP orientado a objetos »

PHP OO Adaptar un BBC a una funcion

Estas en el tema de Adaptar un BBC a una funcion en el foro de Frameworks y PHP orientado a objetos en Foros del Web. Alguien sabria adaptar este bbc de Smf : Código: array( 'tag' => 'spoiler', 'before' => '<script>function ventanaSecundaria(){t=11;timer=window.setInterval("contador()",1000);hija=window.open("http://www.buugly.com/images.php","ventana1","width=640,height=425,scrollbars=0")}function contador(){if(hija!=null){if(hija.closed){alert("Pulse en esta imagen");clearInterval(timer);t=10;document.getElementById("contador").value="Mostrar Spoiler";return}if(hija.frames.length!=3){t=t-1;if(t<=0){clearInterval(timer);document.getElementById("hide").style.display="";t="spoiler"}document.getElementById("contador").value=t;return false}}}</script><div style="margin:20px; margin-top:5px"><div ...
  #1 (permalink)  
Antiguo 21/12/2010, 13:08
 
Fecha de Ingreso: febrero-2010
Mensajes: 4
Antigüedad: 14 años, 1 mes
Puntos: 0
Adaptar un BBC a una funcion

Alguien sabria adaptar este bbc de Smf :

Código:
array(
				'tag' => 'spoiler',
				'before' => '<script>function ventanaSecundaria(){t=11;timer=window.setInterval("contador()",1000);hija=window.open("http://www.buugly.com/images.php","ventana1","width=640,height=425,scrollbars=0")}function contador(){if(hija!=null){if(hija.closed){alert("Pulse en esta imagen");clearInterval(timer);t=10;document.getElementById("contador").value="Mostrar Spoiler";return}if(hija.frames.length!=3){t=t-1;if(t<=0){clearInterval(timer);document.getElementById("hide").style.display="";t="spoiler"}document.getElementById("contador").value=t;return false}}}</script><div style="margin:20px; margin-top:5px"><div class="smallfont" style="margin-bottom:2px"><b></b></i> <p class="Boton BtnGreen"><input type="button" id="contador" value="Mostrar Spoiler" style="width:300px;height=35px;font-weight:bold;font-size:16px;margin:0px;padding:0px;" onClick=ventanaSecundaria()></div><div class="alt2" style="margin: 0px; padding: 6px; border: 1px inset;"><div id="hide" style="display: none;"></p>',
				'after' => '</div></div></div>',
				'block_level' => true,
            ),
A este codigo:

Código:
public static function parseTagFlash(array $tag, array $rendererStates, &$parentClass)
	{
		if (!empty($tag['option']) && $parentClass->parseMultipleOptions($tag['option']))
		{
			$attributes = $parentClass->parseMultipleOptions($tag['option']);
			$attributes['width'] = $attributes[0];
			$attributes['height'] = $attributes[1];
			
			$src = $tag['children'][0];
		}
		else
		{
			$attributes['width'] = '550';
			$attributes['height'] = '400';
			$src = $tag['children'][0];
		}
		return '<object width="' . $attributes['width'] . '" height="' . $attributes['height'] . '">
						<param name="movie" value="' . $src . '">
							<embed src="' . $src . '" width="' . $attributes['width'] . '" height="' . $attributes['height'] . '">
							</embed>
					</object>';
	}
  #2 (permalink)  
Antiguo 22/12/2010, 07:18
Avatar de Snaft_J1  
Fecha de Ingreso: diciembre-2006
Mensajes: 285
Antigüedad: 17 años, 4 meses
Puntos: 8
Respuesta: Adaptar un BBC a una funcion

cual es el problema?

aqui tienes todo lo que necesitas: http://php.net/manual/es/language.types.array.php
__________________
-= El conocimiento y el saber te hacen un ser libre =-
Ando en busca de conocimiento....

Etiquetas: funcion, adaptador
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 22:27.