Results 1 to 2 of 2

Thread: Writing to SPAN, load new script

  1. #1
    Join Date
    May 2005
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Writing to SPAN, load new script

    Hey all. I'm trying to use the typical snippet for writing to a div/span, which works:

    Code:
    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.)

  2. #2
    Join Date
    May 2005
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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.
    Last edited by holobyted; 07-11-2005 at 02:02 AM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •