Visualizzazione dei risultati da 1 a 3 su 3

Discussione: Problema caricamento

  1. #1
    Utente di HTML.it
    Registrato dal
    Dec 2010
    Messaggi
    3

    Problema caricamento

    Salve ho utilizzato questo script http://javascript.html.it/script/ved...tile-polaroid/ sulla mia pagina sl ke quando apro un album x vedere le foto si blocca sul caricamento dell'immagine grande... qualcuno saprebbe aiutarmi?

  2. #2
    Moderatore di JavaScript L'avatar di br1
    Registrato dal
    Jul 1999
    Messaggi
    19,998

    Re: Problema caricamento

    Originariamente inviato da thor90
    qualcuno saprebbe aiutarmi?
    Non senza vedere cosa hai "combinato"
    Il guaio per i poveri computers e' che sono gli uomini a comandarli.

    Attenzione ai titoli delle discussioni: (ri)leggete il regolamento
    Consultate la discussione in rilievo: script / discussioni utili
    Usate la funzione di Ricerca del Forum

  3. #3
    Utente di HTML.it
    Registrato dal
    Dec 2010
    Messaggi
    3

    Re: Re: Problema caricamento

    Originariamente inviato da br1
    Non senza vedere cosa hai "combinato"
    Beh si scusami hai ragione :P

    cmq questo è il codice della pagina:

    codice:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    
    <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
    <title>Leonardis Gioielli</title>
    <meta name="description" content="Leonardis Gioielli Italy" />
    <meta name="keywords" content="leonardis gioielli gioielleria orologi bracciali anelli orecchini fedi regali lista nozze" />
    <link rel="stylesheet" href="css/style1.css" type="text/css" media="screen"/>
    		<script src="js/cufon-yui.js" type="text/javascript"></script>
    		<script src="js/Cantarell.font.js" type="text/javascript"></script>
    		<script type="text/javascript">
    			Cufon.replace('a,h3');
    			Cufon.replace('h1', {
    				textShadow: '0px 1px #fff'
    			});
    			Cufon.replace('h2', {
    				textShadow: '0px 1px #fff'
    			});
    		</script>
            <style type="text/css">
    
    			body{
    				background:#FFF repeat top left;
    				font-family:Arial, Helvetica, sans-serif;
    				font-size:12px;
    			}
    			h1,h2{
    				font-weight:normal;
    
    			}
    			h2{
    				float:right;
    				margin-top:35px;
    				color:#999;
    			}
    			h1{
    				color:#777;
    				font-size:45px;
    				float:left;
    				margin:10px;
    			}
    			h3{
    				color:#777;
    				display:block;
    				clear:both;
    				font-weight:normal;
    				font-size:16px;
    				margin:10px;
    				font-style:italic;
    				text-align:center;
    }
    			.content{
    				width:900px;
    				position:relative;
    				margin:0px 40px 0px 40px;
    			}
    			span.reference{
    				font-family:Arial;
    				text-align:center;
    				font-size:12px;
    				display:block;
    				margin-top:20px;
    			}
    			span.reference a{
    				color:#999;
    				text-transform:uppercase;
    				text-decoration:none;
    				margin-right:20px;
    			}
    		</style>
     
    </head>
    
    <body>
    
    
    <div class="content">
    			
    			<div id="hs_container" class="hs_container">
    				<div class="hs_area hs_area1">
    					[img]images/images1/area1/1.jpg[/img]
    					[img]images/images1/area1/2.jpg[/img]
    					[img]images/images1/area1/3.jpg[/img]
    					[img]images/images1/area1/4.jpg[/img]
    					[img]images/images1/area1/5.jpg[/img]
    					[img]images/images1/area1/6.jpg[/img]
    				</div>
    				<div class="hs_area hs_area2">
    					[img]images/images1/area2/1.jpg[/img]
    					[img]images/images1/area2/2.jpg[/img]
    					[img]images/images1/area2/3.jpg[/img]
    					[img]images/images1/area2/4.jpg[/img]
    				</div>
    				<div class="hs_area hs_area3">
    					[img]images/images1/area3/1.jpg[/img]
    					[img]images/images1/area3/2.jpg[/img]
    					[img]images/images1/area3/3.jpg[/img]
    					[img]images/images1/area3/4.jpg[/img]
    				</div>
    				<div class="hs_area hs_area4">
    					[img]images/images1/area4/1.jpg[/img]
    					[img]images/images1/area4/2.jpg[/img]
    					[img]images/images1/area4/3.jpg[/img]
    					[img]images/images1/area4/4.jpg[/img]
    				</div>
    			</div>
    
    			<div>
    				
    			</div>
    		</div>
    		
            
            <script type="text/javascript" src="jquery.min.js"></script>
    		<script type="text/javascript" src="js/jquery.easing.1.3.js"></script>
            <script type="text/javascript">
                $(function() {
    				//custom animations to use
    				//in the transitions
    				var animations		= ['right','left','top','bottom','rightFade','leftFade','topFade','bottomFade'];
    				var total_anim		= animations.length;
    				//just change this to one of your choice
    				var easeType		= 'swing';
    				//the speed of each transition
    				var animSpeed		= 450;
    				//caching
    				var $hs_container	= $('#hs_container');
    				var $hs_areas		= $hs_container.find('.hs_area');
    				
    				//first preload all images
                    $hs_images          = $hs_container.find('img');
                    var total_images    = $hs_images.length;
                    var cnt             = 0;
                    $hs_images.each(function(){
                        var $this = $(this);
                        $('<img/>').load(function(){
                            ++cnt;
                            if(cnt == total_images){
    							$hs_areas.each(function(){
    								var $area 		= $(this);
    								//when the mouse enters the area we animate the current
    								//image (random animation from array animations),
    								//so that the next one gets visible.
    								//"over" is a flag indicating if we can animate 
    								//an area or not (we don't want 2 animations 
    								//at the same time for each area)
    								$area.data('over',true).bind('mouseenter',function(){
    									if($area.data('over')){
    										$area.data('over',false);
    										//how many images in this area?
    										var total		= $area.children().length;
    										//visible image
    										var $current 	= $area.find('img:visible');
    										//index of visible image
    										var idx_current = $current.index();
    										//the next image that's going to be displayed.
    										//either the next one, or the first one if the current is the last
    										var $next		= (idx_current == total-1) ? $area.children(':first') : $current.next();
    										//show next one (not yet visible)
    										$next.show();
    										//get a random animation
    										var anim		= animations[Math.floor(Math.random()*total_anim)];
    										switch(anim){
    											//current slides out from the right
    											case 'right':
    												$current.animate({
    													'left':$current.width()+'px'
    												},
    												animSpeed,
    												easeType,
    												function(){
    													$current.hide().css({
    														'z-index'	: '1',
    														'left'		: '0px'
    													});
    													$next.css('z-index','9999');
    													$area.data('over',true);
    												});
    												break;
    											//current slides out from the left
    											case 'left':
    												$current.animate({
    													'left':-$current.width()+'px'
    												},
    												animSpeed,
    												easeType,
    												function(){
    													$current.hide().css({
    														'z-index'	: '1',
    														'left'		: '0px'
    													});
    													$next.css('z-index','9999');
    													$area.data('over',true);
    												});
    												break;
    											//current slides out from the top	
    											case 'top':
    												$current.animate({
    													'top':-$current.height()+'px'
    												},
    												animSpeed,
    												easeType,
    												function(){
    													$current.hide().css({
    														'z-index'	: '1',
    														'top'		: '0px'
    													});
    													$next.css('z-index','9999');
    													$area.data('over',true);
    												});
    												break;
    											//current slides out from the bottom	
    											case 'bottom':
    												$current.animate({
    													'top':$current.height()+'px'
    												},
    												animSpeed,
    												easeType,
    												function(){
    													$current.hide().css({
    														'z-index'	: '1',
    														'top'		: '0px'
    													});
    													$next.css('z-index','9999');
    													$area.data('over',true);
    												});
    												break;
    											//current slides out from the right	and fades out
    											case 'rightFade':
    												$current.animate({
    													'left':$current.width()+'px',
    													'opacity':'0'
    												},
    												animSpeed,
    												easeType,
    												function(){
    													$current.hide().css({
    														'z-index'	: '1',
    														'left'		: '0px',
    														'opacity'	: '1'
    													});
    													$next.css('z-index','9999');
    													$area.data('over',true);
    												});
    												break;
    											//current slides out from the left and fades out	
    											case 'leftFade':
    												$current.animate({
    													'left':-$current.width()+'px','opacity':'0'
    												},
    												animSpeed,
    												easeType,
    												function(){
    													$current.hide().css({
    														'z-index'	: '1',
    														'left'		: '0px',
    														'opacity'	: '1'
    													});
    													$next.css('z-index','9999');
    													$area.data('over',true);
    												});
    												break;
    											//current slides out from the top and fades out	
    											case 'topFade':
    												$current.animate({
    													'top':-$current.height()+'px',
    													'opacity':'0'
    												},
    												animSpeed,
    												easeType,
    												function(){
    													$current.hide().css({
    														'z-index'	: '1',
    														'top'		: '0px',
    														'opacity'	: '1'
    													});
    													$next.css('z-index','9999');
    													$area.data('over',true);
    												});
    												break;
    											//current slides out from the bottom and fades out	
    											case 'bottomFade':
    												$current.animate({
    													'top':$current.height()+'px',
    													'opacity':'0'
    												},
    												animSpeed,
    												easeType,
    												function(){
    													$current.hide().css({
    														'z-index'	: '1',
    														'top'		: '0px',
    														'opacity'	: '1'
    													});
    													$next.css('z-index','9999');
    													$area.data('over',true);
    												});
    												break;		
    											default:
    												$current.animate({
    													'left':-$current.width()+'px'
    												},
    												animSpeed,
    												easeType,
    												function(){
    													$current.hide().css({
    														'z-index'	: '1',
    														'left'		: '0px'
    													});
    													$next.css('z-index','9999');
    													$area.data('over',true);
    												});
    												break;
    										}	
    									}
    								});
    							});
    							
    							//when clicking the hs_container all areas get slided
    							//(just for fun...you would probably want to enter the site
    							//or something similar)
    							$hs_container.bind('click',function(){
    								$hs_areas.trigger('mouseenter');
    							});
    						}
    					}).attr('src',$this.attr('src'));
    				});			
    				
    
                });
            </script>
    </body>
    
    </html>

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