Visualizzazione dei risultati da 1 a 2 su 2

Discussione: testo dinamico e html

  1. #1
    Utente di HTML.it
    Registrato dal
    Oct 2002
    Messaggi
    3,023

    testo dinamico e html

    codice:
    System.useCodepage = true;
    this.testo.html = true;
    
    dati = new LoadVars();
    
    dati.onLoad = function(ok) {
    	if (_root.loto === "chisiamo") {
    		testo.text = this.chisiamo;
    	} else if (_root.loto === "attivita") {
    		testo.text = this.attivita;
    	} else if (_root.loto === "raggiungerci") {
    		testo.text = this.raggiungerci;
    	} else if (_root.loto === "contattaci") {
    		testo.text = this.contattaci;
    	}else if (_root.loto === "link") {
    		testo.text = this.link;
    }
    		};
    dati.load("dati.txt");
    carico la variabile...e fin qui tutto ok,,,
    ma perché non me lo visualizza come html?

  2. #2
    Utente di HTML.it
    Registrato dal
    Oct 2002
    Messaggi
    3,023
    mi rispondo da solo

    magari può servire a qualcuno...

    bisogna mettere

    codice:
    if (_root.loto === "chisiamo") {
    		testo.htmlText = this.chisiamo;

    ah...questo MX2004


Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.