Excelente dec, funciona de maravilla, ya con esto puedo incrustar código php para poder construir mi menú dinámico, pero me queda dando vuelta el tema de los archivos *.js procesados por php, esto si que no me resultó, mas bien no lo he logrado entender, gracias también a julian por el aporte...
archivo prueba.php
Código:
var TREE_NODES={
format:{
left:0,
top:150,
width:180,
height:372,
e_image:"images/fo_p.gif",
c_image:"images/fc_p.gif",
i_image:"images/i_p.gif",
b_image:'images/b.gif',
bgcolor:"#d4d0c8",
back_bgcolor:"#d4d0c8",
animation:0,
padding:2,
level_ident:16,
dont_resize_back:1
},
sub:[
{html:'Productos',
sub:[
{html:'JavaScript',
sub:[
{html:'<?php echo "Mantenedor de Productos"?>', url:'#'},
{html:'Mantenedor de Cajas', url:'#'},
{html:'Informes de Productos', url:'#'},
{html:'Productos por BOdegas', url:'#'},
{html:'Envio de Productos', url:'#'}
]
},
{html:'ASP.NET',
sub:[
{html:'Smart Links', url:'#'}
]
}
]
},
{html:'Services',
sub:[
{html:'Software Development', url:'#'},
{html:'Web Development', url:'#'}
]
}
]
}
He insertado con azul el código php que está funcionando...
Hasta Luego .-