PDA

View Full Version : Writing to SPAN, load new script



holobyted
07-09-2005, 06:28 PM
Hey all. I'm trying to use the typical snippet for writing to a div/span, which works:



function cambiar(texto){
if (document.all || document.getElementById) {
votar = document.getElementById ? document.getElementById("cargando") : document.all.cargando;
votar.innerHTML=texto;
}
}


However, when I try to use it to load a new script (ie, google ads) into the span, the new script never gets loaded.

Would appreciate some input on the matter.


Thanks!

(URL: http://www.purrun.com/test/test.html - click on the arrows.)

holobyted
07-11-2005, 01:22 AM
I managed to do what I wanted w/ an IFRAME - however, IE doesn't like it. Firefox does though. :(

Anyone mind helping w/ either method? Thanks.

New URL: removed



edit: I figured it out - forgot to use </script>. Silly me.