Tutorials on image galleries and menus are my favorite, because these two things put some attractive look into your webpages. Thats why, from last few weeks I have created few tutorials on these topics here at my blog (99points)
Today, again I created an awesome jquery gallery which is transparent, fixed on screen, autoplay on/off buttons and css3 stylized gallery. I used simple jQuery functions and make them more clear by commenting the code and making them parametrized. I hope you can customized it easily but I would prefer you if you use it as it is with changing images. I really like this one and I hope you will like it. If you feel any problem in using it please do post your issue in comments area and I will reply you ASAP.
Popular Tutorials on 99Points
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 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 |
/* Fancy Transparent JQuery Image Gallery with CSS3 and JQuery =========================================================== Created By: Zeeshan Rasool at http://www.99Points.info You can use it free but can't publish it without permission of Author. Contact Me: ========== www.99Points.info GTalk: zishan.rasool85@gmail.com Skype: zeeshan-rasool */ var AutoLoadGallery = false; // autoload gallery on page load, no need to click to show the gallery var AutoPlayOn = true; // auto image rotating is on var Interval = 8000; // load new image after each 8 seconds, you can change it var current_img_name = 1; // first image name // please use images name 1.jpg,2.jpg,3.jpg,4.jpg for thumbs and 1b.jpg,2b.jpg,3b.jpg,4b.jpg for large images respectvly var total_images = 11; // total image count var Timer = ''; $(function() { // Param var left_bar = $('#left_bar'); var top_bar = $('#top_bar'); var right_bar = $('#right_bar'); $('#click').click(function () { clearTimeout(Timer); AutoPlayOn = true; // disable play button $('#play').css('opacity', '0.4'); $('#play').css('cursor', 'default'); // enable pause button $('#pause').css('opacity', '1.0'); $('#pause').css('cursor', 'pointer'); loadGallery(); }); /// if AutoLoadGallery is true load gallery in start if(AutoLoadGallery) { loadGallery(); } function loadGallery() { // left bar left_bar.stop().animate({ 'height' :'342px', },1000,'easeOutBack',function(){ $('#click').fadeOut(); }); // top bar top_bar.stop().animate({ 'width' :'570px', },1000,'easeOutBack',function(){ $('#imagePlacer').fadeIn(); $('#top_boxes').fadeIn(); }); //right bar right_bar.stop().animate({ 'height' :'342px', },1000,'easeOutBack',function(){ $('#controls').fadeIn(); $('#border').fadeIn(); /// start autoplay (); }); } // caption on hover $('#imagePlacer img').hover(function () { var id = $(this).attr("id"); $('#captions span').fadeOut('fast'); $('#captions').stop().animate({ 'bottom' :'6px', },300,'easeOutBack',function(){ $('#captions span#caption-'+id).fadeIn('fast'); }); },function(){ // on mouse out hide caption $('#captions').stop().animate({ 'bottom' :'-100px', },200,'easeOutBack',function(){ $('#captions span').fadeOut('fast'); // hide all captions }); }); // stop autplay when click pause $('#pause').click(function () { // stop autoplay AutoPlayOn = false; clearTimeout(Timer); // disable pause button $('#pause').css('opacity', '0.4'); $('#pause').css('cursor', 'default'); // enable play button $('#play').css('opacity', '1.0'); $('#play').css('cursor', 'pointer'); }); $('#play').click(function () { // start autoplay AutoPlayOn = true; Timer = setTimeout('autoplay ();', Interval); // disable play button $('#play').css('opacity', '0.4'); $('#play').css('cursor', 'default'); // enable pause button $('#pause').css('opacity', '1.0'); $('#pause').css('cursor', 'pointer'); }); // show next image in gallery $('#left_bar img,#top_bar img,#right_bar img').click(function () { var name = $(this).attr("id"); clearTimeout(Timer); $('#imagePlacer').find('img').hide(); Timer = setTimeout('func("'+name+'");', 200); if(AutoPlayOn) { clearTimeout(Timer); if(name == total_images) { current_img_name = 1; } else { current_img_name = parseInt(name); } autoplay(); } }); // close gallery $('#hide').click(function(){ $('#top_boxes').hide(); $('#imagePlacer').hide('fast'); left_bar.fadeOut('fast'); top_bar.fadeOut('fast'); right_bar.fadeOut('fast'); left_bar.css('height','0px'); top_bar.css('width','0px'); right_bar.css('height','0px'); $('#click').show(); $('#controls').hide(); $('#border').hide(); AutoPlayOn = false; clearTimeout(Timer); // start autoplay }); }); // auto rotate images function autoplay() { if(AutoPlayOn) { clearTimeout(Timer); if(parseInt(current_img_name) <= parseInt(total_images)) { $('#imagePlacer').find('img').hide(); Timer = setTimeout('func("'+current_img_name+'");', 200); current_img_name++; // increase the count 1 $('#images_count').val(''); $('#images_count').val(current_img_name); } if(current_img_name > total_images) { current_img_name = 1; } Timer = setTimeout('autoplay();', Interval); } } // load new image function func(name){ $("#"+name+"b").fadeIn();} |
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 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 |
html, body{ border:0; outline:0; font-weight:inherit; font-style:inherit; background: url(bg.png) repeat; font-size:100%; font-family:inherit; } #border { cursor:pointer; position:fixed; bottom:0px; left:160px; z-index:999;display:none; } #controls {display:none;} #controls #play { position:fixed; bottom:472px; left:828px; opacity:0.4; z-index:999; } #controls #hide { cursor:pointer; position:fixed; bottom:472px; left:861px; z-index:999; } #controls #pause { cursor:pointer; position:fixed; bottom:472px; left:794px; z-index:999; } #click { cursor:pointer; position:fixed; bottom:0; left:0px; z-index:999; } #left_bar { bottom:80px; left:10px; cursor:pointer; height:0px; width:114px; position:fixed; display:none; padding:10px; background:#666666; -moz-background-clip: padding; /* Firefox 3.6 */ -webkit-background-clip: padding; /* Safari 4? Chrome 6? */ background-clip: padding-box; /* Firefox 4, Safari 5, Opera 10, IE 9 */ border: 15px solid rgba(0,0,0,0.3); -webkit-border-radius: 40px; -moz-border-radius: 40px; border-radius: 40px; } #top_bar { bottom:409px; left:159px; cursor:pointer; height:112px;display:none; width:0px; position:fixed; background:#666666; -moz-background-clip: padding; /* Firefox 3.6 */ -webkit-background-clip: padding; /* Safari 4? Chrome 6? */ background-clip: padding-box; /* Firefox 4, Safari 5, Opera 10, IE 9 */ border: 15px solid rgba(0,0,0,0.3); -webkit-border-radius: 40px; -moz-border-radius: 40px; border-radius: 40px; padding:10px; } #right_bar { bottom:80px; left:764px; cursor:pointer; height:0px; width:114px; position:fixed; display:none; background:#666666; -moz-background-clip: padding; /* Firefox 3.6 */ -webkit-background-clip: padding; /* Safari 4? Chrome 6? */ background-clip: padding-box; /* Firefox 4, Safari 5, Opera 10, IE 9 */ border: 15px solid rgba(0,0,0,0.3); -webkit-border-radius: 40px; -moz-border-radius: 40px; border-radius: 40px; padding:10px; } #top_boxes{ display:none} #left_bar .box{ background: #000; height:110px; margin-bottom:3px; width:110px; } #top_bar .box{ background: #000; float:left; margin-right:3px; height:110px; width:110px; } #imagePlacer{ width:608px; height:413px; position:fixed; bottom:12px; background: url(load.gif) center center no-repeat #000000; padding:5px; left:160px; display:none; z-index:999; } #captions{ position:fixed; bottom:-100px; height:40px; width:558px; background:#000; -moz-background-clip: padding; /* Firefox 3.6 */ -webkit-background-clip: padding; /* Safari 4? Chrome 6? */ background-clip: padding-box; /* Firefox 4, Safari 5, Opera 10, IE 9 */ border: 15px solid rgba(0,0,0,0.3); -webkit-border-radius: 40px; -moz-border-radius: 40px; border-radius: 40px; font: 15px Tahoma, Helvetica, Arial, Sans-Serif; text-align:justify; padding:10px; opacity:0.8; color: #ccc; text-shadow: 0px 2px 3px #555; } #captions span{ display:none; } .box img{border:1px solid #000;-webkit-border-radius: 12px;;border-radius: 12px; -moz-border-radius: 12px; margin:4px 0 0 4px;} .box img:hover { width:94px; margin-left:7px;margin-top:7px;} #right_bar .box{ background: #000; height:110px; margin-bottom:3px; width:110px; } #content { width: 750px; margin: 0 auto; background:#D1DFF3; margin-bottom: 25px;font-family:Arial,Helvetica,sans-serif; font-size:11px; padding: 10px; text-align:justify; } a.link{ bottom:10; left:804px;position:fixed; z-index:999; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px } |
Download the source files to get all data.
Comments are closed.