Cuando querramos agregar un codigo a smarty que no queremos que interprete, usaremos la estructura {literal}{/literal}
Ejemplo:
{literal
}
<SCRIPT LANGUAGE="JavaScript" type="text/javascript">
function mostrarApartado (obj)
{
if(obj != undefined
){
if(obj.
style.
display ==
"" ){
obj.
style.
display =
"none";
//location.
hash =
"inicio";
}
else
{
obj.
style.
display =
"block";
//location.
hash = ancla;
}
}
return false;
}
</SCRIPT>
{/literal
}
There are no comments on this page. [Add comment]