Visualizzazione dei risultati da 1 a 3 su 3
  1. #1
    Utente di HTML.it
    Registrato dal
    Jan 2009
    Messaggi
    118

    script per dividere il testo

    ciao ragazzi, premetto che non conosco ajax. Sto cercando uno script ajax che mi divida un testo in X variabili e senza ricaricare la pagina, con un semplice pulsante mi passi da una variabile all'altra.

    Esempio:

    Variabile1: Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.

    Variabile2: It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

    in un "DIV", devo poter caricare nello stesso DIV le X variabili e pilotarle con un pulsante "avanti" e "indietro" che mi carichi le variabili da sinistra a destra e da destra a sinistra in maniera progressiva

    avete qualche suggerimento?
    grazie
    lory

  2. #2
    Moderatore di Annunci siti web, Offro lavoro/collaborazione, Cerco lavoro L'avatar di cavicchiandrea
    Registrato dal
    Aug 2001
    Messaggi
    26,133
    Non credo che si possa avere variabili dinamiche, ma non sono sicuro, ma perché non usi un Array:

    var Variabile = new Array()

    Variabile[0] = " Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book."

    Variabile[1] = "It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."
    Cavicchi Andrea
    Problemi con javascript, jquery, ajax clicca qui

  3. #3
    Utente di HTML.it
    Registrato dal
    Jan 2009
    Messaggi
    118
    il mio problema è che non voglio ricaricare la pagina, dinamicamente nella parte centrale del sito mi deve scorrere questo testo da sinistra a destra come se sfogliasse un libro.

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.