consideremos que tenemos unicamente esta plantilla de html
Código HTML :
<!DOCTYPE html><html id=ihtml><head id=ihead><meta charset="utf-8"> <script> //aqui creamos toda nuestra pagina con funciones javascript </script></head></html>
Por ejemplo dentro del tag<script></script>:
Código Javascript :
function gebi(i){return document.getElementById(i);} function obj(i,t,p){var n=document.createElement(t);n.id=i;gebi(p).appendChild(n);} function kxa(i,x,y,h,w,c){var n = gebi(i);unsel(i);n.style.border="1px solid "+c;n.style.position="absolute";n.style.left=x+"px";n.style.top=y+"px";if(h=='auto'){n.style.height=h;}else{n.style.height=h+"px";}if(w=='auto'){n.style.height=w;}else{n.style.width=w+"px";}} function can(i,d,u,c,s){var k=gebi(i);k.style.borderRadius=d+"px "+u+"px "+c+"px "+s+"px";} function aur (n){var z=((1+Math.pow(5,0.5))/2)*n;return Math.floor(z);}//funcion aurea maxima //svgp crea objeto svg path function svgp(i,p,d,c){sobj(i+p,'path',p);sans(i+p,"fill",c);sans(i+p,"d",d);} //svgc crea objeto svg circle function svgc(i,p,x,y,r,c){sobj(i+p,'circle',p);sans(i+p,"cx",x);sans(i+p,"cy",y);sans(i+p,"r",r);sans(i+p,"fill",c);} //creacion del objeto body obj('ibody','body','ihtml'); //creacion de div idiv0 dentro de ibody obj('idiv0','div','ibody'); kxa('idiv0','5','5','155',aur(155),'#bbbbbb');can('idiv0','10','10','10','10'); //creacion de objeto svglogin dentro de idiv0 obj('svglogin',cl+' LOGIN '+cll,'idiv0'); svgp('p1','svglogin',"M356,283c-27,22-62,34-99,34c-36,0-71-12-99-35C83,309,50,404,50,448h412C462,405,428,310,356,283z",'black'); svgc('c1','svglogin','250','165','120','black'); svgc('c2','svglogin','299','303','60','white'); svgc('c3','svglogin','326','282','15','black'); svgp('p2','svglogin',"M254,395h-23v23h-24v22h-54v-38l78-78c8,21,26,38,49,46L254,395z",'white');
desde la consola web de firefox me da error
voy a mirar como solucionarlo