Ver Mensaje Individual
  #1 (permalink)  
Antiguo 25/11/2008, 09:39
ibernat
 
Fecha de Ingreso: noviembre-2008
Mensajes: 2
Antigüedad: 15 años, 5 meses
Puntos: 0
ayuda para integrar codigo html dentro de php

hola buenos dias

mi problema es el siguiente:

tengo este codigo php

Código PHP:
          }else{
                      
$str .= "<span class=\"title_txt_".$eventdata[$day]['color'][$j]."\">-";
          }
                    
$str .= "<a href=mostrar-" $eventdata[$day]["id"][$j] . ".html>";
                    
$str .= $eventdata[$day]["title"][$j] . "</a></span>" $eventdata[$day]["timestr"][$j];
                } 

y quiero combinarle este codigo

Código HTML:
<a href="include-short.htm" onclick="return hs.htmlExpand(this, { objectType: 'iframe' } )">
	Content in iframe
</a> 

he intentado hacer esto pero no funciona :(

Código PHP:
          }else{
                      
$str .= "<span class=\"title_txt_".$eventdata[$day]['color'][$j]."\">-";
          }
                    
$str .= "<a href=mostrar-" $eventdata[$day]["id"][$j] . ".html onclick="return hs.htmlExpand(this, { objectType'iframe' } )">";
                    
$str .= $eventdata[$day]["title"][$j] . "</a></span>" $eventdata[$day]["timestr"][$j];
                } 

es para que se abra la ventana usando highslide

aqui el ejemplo
http://highslide.com/example-iframe.html


hace dias que estoy provando pero no se programar en php y a la que modifico algo me salen erores por todas partes

muchas gracias!