Visualizzazione dei risultati da 1 a 3 su 3

Discussione: posizione immagine

  1. #1

    posizione immagine

    http://javascript.html.it/script/ved...rima-immagine/
    qui c'è uno script per vedere immagine passando sopra ad una scritta

    come si fa a spostare in alto questa scritta? e non sotto la scritta?

    il codice è il seguente

    <script src="jquery.min.js" type="text/javascript"></script>
    <script src="imgpreview.full.jquery.js" type="text/javascript"></script>
    <style type="text/css">
    #imgPreviewWithStyles,
    #imgPreviewWithStyles2,
    #imgPreviewWithStyles3 {
    background: #222 url(images/loading.gif) no-repeat center;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    padding: 15px;
    z-index: 999;
    border: none;
    }
    #imgPreviewWithStyles span,
    #imgPreviewWithStyles2 span,
    #imgPreviewWithStyles3 span {
    color: white;
    font-size: 1em;
    text-align: center;
    display: block;
    padding: 50px 50px 3px 60px;
    }

    .loading {
    height: 32px;
    width: 32px;
    }
    </style>
    </head>
    <body>

    <div id="third">
    Immagine del sole
    </div>




    <script type="text/javascript">
    //<![CDATA[
    jQuery.noConflict();
    (function($){

    $('div#third a').imgPreview({
    containerID: 'imgPreviewWithStyles',
    imgCSS: {
    // Limit preview size:
    height: 200
    },
    // When container is shown:
    onShow: function(link){
    // Animate link:
    $(link).stop().animate({opacity:0.4});
    // Reset image:
    $('img', this).css({opacity:0});
    },
    // When image has loaded:
    onLoad: function(){
    // Animate image
    $(this).animate({opacity:1}, -50);
    },
    // When container hides:
    onHide: function(link){
    // Animate link:
    $(link).stop().animate({opacity:1});
    }
    });
    })(jQuery);
    //]]>
    </script>
    www.moscabianca.biz- riusciremo a competere con i colossi dell'annuncio? un sogno che arriva dal basso

  2. #2
    Utente di HTML.it L'avatar di Xinod
    Registrato dal
    Sep 2000
    Messaggi
    13,649
    si puo' fare piu' o meno bene, dipende...

    al minimo puoi modificare questo
    codice:
    distanceFromCursor: {top:10, left:10},
    specificando un intero negativo per il top

  3. #3

    spostare immagine

    ho trovato bisognava modificare una impostazione nel file js che era incluso
    www.moscabianca.biz- riusciremo a competere con i colossi dell'annuncio? un sogno che arriva dal basso

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 © 2024 vBulletin Solutions, Inc. All rights reserved.