Visualizzazione dei risultati da 1 a 4 su 4
  1. #1

    scrolling testo esterno

    ciao a tutti
    stavo vedendo questo esempio
    http://www.sephiroth.it/file_detail.php?id=12
    ma è possibile però far visualizzare la barra di scorrimento solo nel caso ce ne sia realmnete bisogno?
    in quel caso anche con poco testo appare la barra a lato

  2. #2

    Re: scrolling testo esterno

    Originariamente inviato da Crifox
    ciao a tutti
    stavo vedendo questo esempio
    http://www.sephiroth.it/file_detail.php?id=12
    ma è possibile però far visualizzare la barra di scorrimento solo nel caso ce ne sia realmnete bisogno?
    in quel caso anche con poco testo appare la barra a lato
    xchè nell'esempio non è automatico in base alla lunghezza del testo ?

    cmq si si può! ciao
    Interactive Html/CSS/JS Playground | @webbeloz ( cip..cip! )
    Mechanics & Expert Tuning Fix Z3 Roadster Community

  3. #3
    me lo spieghi :gren:
    e un segreto

  4. #4
    Originariamente inviato da Crifox
    me lo spieghi :gren:
    e un segreto
    assolutamente nessun segreto..
    provo a postare es.

    codice:
    _global.mainTL = this;
    var usingThumb = false;
    scroller_mc._visible = false;
    
    readText = new loadVars ();
    
    readText.onLoad = function () {
    	
    	myText_txt.htmlText = this.myText;
    	
    	if (myText_txt.maxscroll < 2) {
    		scroller_mc._visible = false;
    	} else {
    		scroller_mc._visible = true;
    	}
    	
    	myText_txt.scroll = 0;
    	
    	scroller_mc.thumb_mc._y = 0;
    	
    	myText_txt.textHeight) * 100;
    	
    	scroller_mc.thumb_mc._yscale = percentVisible;
    };
    
    short_mc.onRelease = function () {
    	readText.load ("smText.txt");
    };
    medium_mc.onRelease = function () {
    	readText.load ("medText.txt");
    };
    long_mc.onRelease = function () {
    	readText.load ("longText.txt");
    };
    
    myText_txt.onScroller = function () {
    	
    	if (!usingThumb) {
    		
    		scroller_mc.thumb_mc._height;
    		var scrollPos = (this.scroll - 1) / (this.maxscroll - 1);
    		
    		scroller_mc.thumb_mc._y = trackLength * scrollPos;
    	}
    };
    Interactive Html/CSS/JS Playground | @webbeloz ( cip..cip! )
    Mechanics & Expert Tuning Fix Z3 Roadster Community

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.