Main Menu




browser lang:en

Users Area

Client Login

today cache size is:0

 

 


Comentarios

re:cdn
03/12/2010 by holy
CDN
01/12/2010 by Sorin
No sirve
19/12/2008 by

Leer Más »


RAPIDQ

Rapid-Q:The lost files
My old library where i have collected all the rapidq scripts and italian help


Today my pagerank is: Free Page Rank Tool
Upbooking - free booking engine

Escribir html en un div con javascript

Escribir html en un div con javascript, como? En esta manera.
Codigo:


function WriteLayer(ID,parentID,URL) {
  if (document.layers) {
  var oLayer;
  if(parentID){
  oLayer = eval('document.' + parentID + '.document.' + ID + '.document');
  }else{
  oLayer = document.layers[ID].document;
  }
  oLayer.open();
  oLayer.write(URL);
  oLayer.close();
  }
  else if (parseInt(navigator.appVersion)>=5&&navigator.
  appName=="Netscape") {
  document.getElementById(ID).innerHTML = URL;
  }
  else if (document.all) document.all[ID].innerHTML = URL
}


En pagina html podemos llamarlo así:

<a href="javascript:WriteLayer('ctd',null,'testing')">blablabla</a>
<div class='ctd'></div>


Comentarios

No sirve by

19/12/2008 
No sirve


Deja tu comentario

Titolo
Messaggio
Nome Utente
e-mail (se vuoi ricevere le risposte a questo post anche via mail)

Users

Videos


Scripts & Tutorials

Crear un plugin Opensearch per nuestra web

14/11/2008 

Presente en Mozilla Firefox desde hace mucho tiempo, con la nueva versión de Microsoft Internet Explorer 7 esta…

in:Scripts (0 comentarios)

Escribir html en un div con javascript

22/10/2008 

Escribir html en un div con javascript, como? En esta manera. Codigo: function WriteLayer(ID,parentID,URL) { if…

in:Scripts (1 comentarios)

Tutorial intermedio a mod_rewrite

18/10/2008 

1 ¿Qué hace el mod_rewrite? El mod_rewrite configura su servidor apache para garantizar que las páginas dinámicas (en este…

in:Scripts (0 comentarios)

Construyendo Holyguard.net:Un motor de cache

09/10/2008 

Sea por el incremento de visitantes ó por el uso de scripts complejos, la ejecución de…

in:Scripts (0 comentarios)

Leer más »


Tag Clouds


Crear plugin Opensearch nuestra webEscribir html javascriptTutorial intermedio modrewriteConstruyendo HolyguardnetUn motor cache


Add to Technorati Favorites