• Home
  • 1000 Efectos jQuery
  • 1000 Estilos Css
  • Foro
  • Freelance
  • Herramientas Web
  • Tu Granito de Arena!!
  • ZoneArtCss Móvil

Galeria de Images 3D en Mootools para tu Web :)

Obtén una cuenta de @zoneartcss.com gratuita
Registrarse
Ver correo
Jul 06


mootols
Esta es una buena galeria para su web, esta está echa con javascript y css… Si esta medio fresona, por que a las fotos les agrega automaticamente un degradado(lamentablemente ese degradado solo funciona en Firefox, Chrome, Opera y demas, pero menos en el iexplorer.)

Pus ya a empesar..

El primer paso es agregar las librerias siguientes te dejo el link para descargarlas:
mootools-1.2.1-core-yc.js
mootools-1.2-more.js
pbb-magicwheel-1.0.js

1
2
3
	<script type="text/javascript" charset="utf-8" src="mootools-1.2.1-core-yc.js" ></script>
	<script type="text/javascript" charset="utf-8" src="mootools-1.2-more.js" ></script>
	<script type="text/javascript" charset="utf-8" src="pbb-magicwheel-1.0.js" ></script>

Estas son las librerias javascript que vamos a utiliazar!!! ahora agrega este codigo javascript:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
	<script type="text/javascript" charset="utf-8">
	window.addEvent('domready', function(){
		var MyMW = new PBB_MagicWheel($('magicwheel'));
 
		var SLIDEuserIconWidth = new Slider($('SLIDEuserIconWidth'), $('KNOBuserIconWidth'), {
			range: [MyMW.options.iconMinWidth, MyMW.options.iconMaxWidth],
			steps: MyMW.options.iconMaxWidth,
			wheel: true,
			onChange: function(pos){
				MyMW.options.userIconWidth = pos;
				MyMW.checkSettings();
			}
		}).set(MyMW.options.userIconWidth);
 
		var SLIDEuserIconMinWidth = new Slider($('SLIDEuserIconMinWidth'), $('KNOBuserIconMinWidth'), {
			range: [MyMW.options.iconMinWidth, MyMW.options.iconMaxWidth],
			steps: MyMW.options.iconMaxWidth,
			wheel: true,
			onChange: function(pos){
				if(pos > MyMW.options.userIconWidth)
					this.set(MyMW.options.userIconWidth);
				else
					MyMW.options.userIconMinWidth = pos;
				MyMW.checkSettings();
			}
		}).set(MyMW.options.userIconMinWidth);
 
		var SLIDEuserWidth = new Slider($('SLIDEuserWidth'), $('KNOBuserWidth'), {
			range: [MyMW.options.minWidth, MyMW.options.maxWidth],
			steps: 100,
			wheel: true,
			onChange: function(pos){
				if(pos > MyMW.options.maxWidth - MyMW.options.userIconWidth)
					this.set(MyMW.options.maxWidth - MyMW.options.userIconWidth);
				else
					MyMW.options.userWidth = pos;
				MyMW.checkSettings();
			}
		}).set(MyMW.options.userWidth);
 
		var SLIDEuserHeight = new Slider($('SLIDEuserHeight'), $('KNOBuserHeight'), {
			range: [MyMW.options.minHeight, MyMW.options.maxHeight],
			steps: 100,
			wheel: true,
			onChange: function(pos){
				MyMW.options.userHeight = pos / MyMW.icons.length;
				MyMW.checkSettings();
			}
		}).set(MyMW.options.userHeight * MyMW.icons.length);
 
		var SLIDEuserSpeed = new Slider($('SLIDEuserSpeed'), $('KNOBuserSpeed'), {
			range: [-1000, 1000],
			steps: 200,
			wheel: true,
			onChange: function(pos){
				MyMW.options.userSpeed = pos / 1000;
				MyMW.checkSettings();
			}
		}).set(MyMW.options.userSpeed * 1000);
 
		var SLIDEuserIconOpacity = new Slider($('SLIDEuserIconOpacity'), $('KNOBuserIconOpacity'), {
			range: [0, 10],
			steps: 10,
			wheel: true,
			onChange: function(pos){
				MyMW.options.userIconOpacity = pos / 10;
				MyMW.checkSettings();
			}
		}).set(MyMW.options.userIconOpacity * 10);
 
		var SLIDEuserIconMinOpacity = new Slider($('SLIDEuserIconMinOpacity'), $('KNOBuserIconMinOpacity'), {
			range: [0, 10],
			steps: 10,
			wheel: true,
			onChange: function(pos){
				if(pos / 10 > MyMW.options.userIconOpacity)
					this.set(MyMW.options.userIconOpacity * 10);
				else
					MyMW.options.userIconMinOpacity = pos / 10;
				MyMW.checkSettings();
			}
		}).set(MyMW.options.userIconMinOpacity * 10);
 
		var SLIDEuserRefOpacity = new Slider($('SLIDEuserRefOpacity'), $('KNOBuserRefOpacity'), {
			range: [0, 10],
			steps: 10,
			wheel: true,
			onChange: function(pos){
				MyMW.options.userRefOpacity = pos / 10;
				MyMW.checkSettings();
			}
		}).set(MyMW.options.userRefOpacity * 10);
 
		$('add').addEvent('click', function(e){
			e.stop();
			MyMW.addIcon('new.png', 'new.png', 'Hey i\' the new icon !');
		});
	});
	</script>

Este codigo sirve para poder controlar las acciones qeu tiene con div para poder hacer que sea mas rapido o mas lento segun como te convenga.

Ahora vamos por los bonito de la vida, ponerle estilo al los div.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
	<style type="text/css"><!--
	body {
	margin: 0;
	padding: 0;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 11px;
	background: #fff;
	overflow: hidden;
	background-color: #000000;
	}
 
	a:link, a:visited {
		color: #D33131;
	}
 
	a:hover {
		text-decoration: none;
	}
	/*
		Magic Wheel CSS
	*/
	.loading {
		background: url('../imagenes/spinner.gif') center center no-repeat;
	}
 
	#magicwheel {
		position: absolute;
	}
 
	.tip {
		position: absolute;
		visibility: hidden;
		top: 0;
		left: 0;
		background: url('arrow.png') bottom center no-repeat;
		z-index: 1000;
		padding-bottom: 6px;
	}
 
	.tip span {
		padding: 1px 10px;
		background: #FFFFFF;
		color: #000000;
		font-weight: bold;
	}
 
	#magicwheel .icon, #magicwheel .ref {
		position: absolute;
		border: none;
		visibility: hidden;
	}
 
	/*
		Settings CSS
	*/
	.box {
		position: absolute;
		color: #666;
		margin: 10px;
		padding: 0px 7px 5px 7px;
		background: #000000;
		width: 280px;
		z-index: 1000;
	}
 
	.slider {
		background: #D8D8D8;
		height: 10px;
		margin-bottom: 7px;
		cursor: pointer;
	}
 
	.knob {
		background: #666;
		width: 20px;
		height: 10px;
		cursor: pointer;
	}
	--></style>

ya teniendo nuestros stylos jaja ahora agregamos los div de control en nuestro body y tambien el codigo donde va estar cada imagen. puedes ahcer que en php te genere la lista de images para hacer una galeria más dinamica.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<body>
	<div class="box"><a href="http://www.sexytec.net"><img src="http://www.sexytec.net/imagenes/barra_fotos.png" border="0"></a></div>
<div class="box" style="right: 0px; visibility:hidden">
		<h2>Magic Wheel Settings :</h2>
		<span>Icons width : </span>
		<div id="SLIDEuserIconWidth" class="slider"><div id="KNOBuserIconWidth" class="knob"></div></div>
 
		<span>Background icons width :</span>
		<div id="SLIDEuserIconMinWidth" class="slider"><div id="KNOBuserIconMinWidth" class="knob"></div></div>
		<span>Wheel width :</span>
		<div id="SLIDEuserWidth" class="slider"><div id="KNOBuserWidth" class="knob"></div></div>
		<span>Wheel height :</span>
		<div id="SLIDEuserHeight" class="slider"><div id="KNOBuserHeight" class="knob"></div></div>
		<span>Wheel speed :</span>
 
		<div id="SLIDEuserSpeed" class="slider"><div id="KNOBuserSpeed" class="knob"></div></div>
		<span>Icons opacity :</span>
		<div id="SLIDEuserIconOpacity" class="slider"><div id="KNOBuserIconOpacity" class="knob"></div></div>
		<span>Background icons opacity :</span>
		<div id="SLIDEuserIconMinOpacity" class="slider"><div id="KNOBuserIconMinOpacity" class="knob"></div></div>
		<span>Reflection opacity :</span>
		<div id="SLIDEuserRefOpacity" class="slider"><div id="KNOBuserRefOpacity" class="knob"></div></div>
 
		<p></p>
</div>
	<div id="magicwheel" class="loading">
 
<!-- AQUI VA LAS IMAGENES QUE TU QUIERAS -->
		<a href="http://www.sexytec.net/main.php" title="you"><img class="icon" src="../fotos_web/900995460.jpg" /></a>
		<a href="http://www.sexytec.net/main.php" title="MI novia"><img class="icon" src="../fotos_web/88928786.jpg" /></a>
		<!-- . -->
                <!-- . -->
                <!-- . -->
 
	</div>
</body>

Y listo.. Ya esta tu Galeria funcionando correctamente, aaaa les voy a dejar el demo para que vean como funciona. Saludos.

VER del Demo

Cualquier duda Dejen sus comentarios.






Compartir   votar
¿Te gusto este tema?
Recibe en tu correo las ultimas actualizaciones

Escribe tu correo:

Recibirás un correo con todos los articulos escritos en ZoneArtCss durante el día.
Posted in Mootools, Programación con Style. on Lunes, Julio 6th, 2009 by miguelortega Tags: 3d, galeria, galeria con degradados, galeria con fotos y reflejos, galeria con transparencias, galeria de imagenes, galeria mootools, miguel ortega, Mootools

Leave a Reply

Security Code:

ZoneArtCSS | Tu lugar: Del Arte CSS

  • Buscador
  • Suscribete
    Escribe tu correo:

    Recibirás un correo con todos los articulos escritos en ZoneArtCss durante el día.








  • Lo Último

    Un Administrador de Proyectos para un Diseñador WebUn Administrador de Proyectos para un Diseñador Web   39 Iconos Sociales para tu Sitio Web39 Iconos Sociales para tu Sitio Web   Editor de código online Editor de código online   Iconos para Redes SocialesIconos para Redes Sociales   ¿Cuantos usuarios online soporta tu sitio Web?¿Cuantos usuarios online soporta tu sitio Web?  


  • Ideas
  • Archivos
  • Comentarios
  • Populares
ajax alex aguiar cms codigo CSS Curl diseño efecto estilo facebook facil firefox fireworks fix flash gallery google gratis html ie6 i hate photoshop images Javascript jQuery js libreria liz palacios manual menu miguel ortega miguelortega Mootools php plugin problema solucion style Themes para dedalus tutorial Twitter video video tutorial web wordpress zoneartcss
  • Julio 2010
  • Junio 2010
  • Mayo 2010
  • Abril 2010
  • Marzo 2010
  • Febrero 2010
  • Enero 2010
  • Diciembre 2009
  • Noviembre 2009
  • Octubre 2009
  • Septiembre 2009
  • Agosto 2009
  • Julio 2009
  • Junio 2009
  • Navegar por internet gratis desde celular o móvil con telcel  629
    fernando, gabo, Andres, Roberto, miguelortega, Roberto [...]
  • Filtrar palabras de un post de formulario con PHP  2
    zonarock, dante
  • Simple Inicio de Sesión con Php y Mysql  3
    audio rodriguez, bk7, argos
  • Tu Granito de Arena!!  3
    miguelortega, edardo, la nena
  • CSS text-shadow  4
    miguelortega, Carlos, Luis, uJuan
  • Navegar por internet gratis desde celular o móvil con telcel {630}
  • Popin - Plugin jQuery para Pop-Ups {27}
  • Crear tu aplicación del facebook {18}
  • Personalizar en menú que sale cuando das clic secundario con JavaScript {16}
  • Beautiful Slide con jQuery {12}


  • Categorías
  • RSS Twitter
    Zoneartcss
    • Buen día a todos !! Espero que sea un excelente viernes :) hace 1 hora desde TweetDeck
    • ahora zoneartcss.com ya tiene su versión para celulares, :) hace 23 horas desde TweetDeck
    • ZoneArtCss.com Versión Móvil http://goo.gl/fb/7sXzh 11:01:31 PM Julio 28, 2010 desde Google
    • Traductor con jQuery http://goo.gl/fb/oOXwj 10:47:11 PM Julio 28, 2010 desde Google
  • Enlaces
    • Alex Aguiar
    • Bienes Raices en Mérida
    • Blog SexyTec
    • Desarrollo Web
    • Descargas para Celular
    • Frogx3
    • Hosting en Mexico
    • Noticias en Cozumel
    • Playeras y Uniformes
    • SexyTec.net
    • WebAdictos
  • Home
  • 1000 Efectos jQuery
  • 1000 Estilos Css
  • Foro
  • Freelance
  • Herramientas Web
  • Tu Granito de Arena!!
   

Back to Top

© Copyright ZoneArtCSS | Tu lugar: Del Arte CSS. All rights reserved.
Designed by FTL Wordpress Themes brought to you by Smashing Magazine

  • Blogalaxia
  • http://www.wikio.es