jQueryで実現!優雅で高貴なスライドギャラリーsmart-gallery

smart-gallery サンプル

画像が切り替わる際に様々な効果を表示できる
数あるjQueryスライド画像ギャラリーの中から今回は優雅で高貴なイメージギャラリーを紹介します。画像チェンジの効果がすばらしい!高級インテリアやマンションギャラリーの写真紹介にも使えそうです!

優雅で高貴なスライドギャラリーsmart-gallery サンプル

smart-gallery サンプル

サンプルは画像クリックで見ることができます

Head部記述サンプル

    <script src="jquery-1.4.4.min.js" type="text/javascript"></script>
    <link href="smart-gallery.css" rel="stylesheet" type="text/css" />
    <script src="smart-gallery.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function() {
        $('#smart-gallery').gallery({ stickthumbnails: true, random: true});
        });
    </script>

    <style type="text/css">
        body
        {
            margin: 0;
            padding: 0;
            background-color: Black;
        }
        #contributor
        {
            color: Gray;
            margin: 0;
            padding: 0;
            margin-top: 4px;
            text-align: center;
        }
        #contributor a
        {
            color: Gray;
        }
    </style>

HTML

<body>
    <div id="smart-gallery">
<a href="images/cubagallery-img-4.jpg"
                        title="Fourth Image">
                        <img src="images/cubagallery-img-4.jpg" /></a> <a href="images/cubagallery-img-5.jpg"
                            title="Fifth Image">
                            <img src="images/cubagallery-img-5.jpg" /></a>  <a href="images/cubagallery-img-8.jpg"
                                        title="Eigth Image">
                                        <img src="images/cubagallery-img-8.jpg" /></a>
        <a href="images/cubagallery-img-10.jpg" title="Tenth Image">
            <img src="images/cubagallery-img-10.jpg" /></a> <a href="images/cubagallery-img-11.jpg"
                title="Eleventh Image">
                <img src="images/cubagallery-img-11.jpg" /></a>
    </div>
</body>

smart-gallery.css

.min-gallery
{
	width: 823px;
	height: 630px;
	border: solid 1px black;
	background-color: Black;
	background: url(bg.jpg);
	margin: auto;
}
.min-gallery .preview
{
	width: 747px;
	height: 493px;
	margin-top: 36px;
	margin-left: 36px;
	margin-right: 36px;
	position: relative;
	border: solid 2px black;
	overflow: hidden;
	background-color: White;
}
.min-gallery .preview img
{
	/* width: 795px;             height: 525px;*/
	position: absolute;
}
.min-gallery .bottom
{
	width: 100%;
	height: 98px;
	color: Gray;
	font-family: Arial;
	font-size: 1em;
	font-weight: bold;
	overflow: hidden;
}
.min-gallery .bottom .long
{
	width: 100%; /*height: 100%;*/
}
.close
{
	text-align: center;
	color: white;
	font-family: Verdana;
	font-size: 10px;
	font-weight: normal;
	text-transform: uppercase;
	cursor: pointer;
	width: 100%;
	padding: 4px;
}
.min-gallery .bottom .short
{
	width: 100%;
	height: 100%;
}
.min-gallery .bottom .short .left
{
	padding-left: 44px;
	padding-top: 42px;
	width: 322px;
	float: left;
}
.min-gallery .bottom .short .middle
{
	width: 118px;
	float: left;
}
.min-gallery .bottom .short .right
{
	width: 300px;
	float: left;
	text-align: right;
	padding-right: 38px;
	padding-top: 42px;
}
.min-gallery .bottom .short .middle > div
{
	float: left;
}

.short-thumbnail-container
{
	width: 36px;
	padding-top: 30px;
	cursor: pointer;
}
.gallery-nav-left
{
	cursor: pointer;
	width: 12px;
	margin-right: 28px;
	height: 18px;
	background-image: url(arrow-left.png);
	background-repeat: no-repeat;
	background-position: center;
	margin-top: 40px;
}
.gallery-nav-right
{
	width: 12px;
	margin-left: 28px;
	height: 18px;
	cursor: pointer;
	background-image: url(arrow-right.png);
	background-repeat: no-repeat;
	background-position: center;
	margin-top: 40px;
}
.thumbnail-button
{
	width: 8px;
	height: 8px;
	margin: 2px;
	background-image: url(box.jpg);
	float: left;
}
.active-image
{
	z-index: 100;
	display: block;
}
.inactive-image
{
}
.gallery-caption
{
	position: absolute;
	width: 100%;
	height: 100px;
	background-color: Black;
	widht: 100%;
	z-index: 102;
	color: gray;
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=70)";
	filter: alpha(opacity=70);
	-moz-opacity: 0.7;
	-khtml-opacity: 0.7;
	opacity: 0.7;
	padding: 8px;
}
/*Horizontal Orientation CSS*/
.thumbnails
{
	width: 420px; /*height: 28px;*/
	margin: auto;
	padding: 0;
	padding: 22px 0px 0px 0px;
	position: relative;
}
.thumbnails-back, .thumbnails-forward
{
	float: left;
	width: 13px;
	height: 40px;
	position: relative;
	top: 6px;
	cursor: pointer;
}
.thumbnails-back
{
	background-image: url(arrow-left.png);
	background-repeat: no-repeat;
	background-position: left;
}
.thumbnails-forward
{
	background-image: url(arrow-right.png);
	background-repeat: no-repeat;
	background-position: right;
}
.thumbnails-contents
{
	width: 390px;
	height: 48px;
	float: left;
	position: relative;
	overflow: hidden;
}
.thumbnails-contents > div
{
	position: absolute;
	width: 100%;
}
.thumbnails-contents > div > div
{
	float: left;
}
.thumbnails-contents img
{
	width: 43px;
	height: 43px;
	margin-left: 9px;
	margin-right: 9px;
	border: solid 2px black;
}
/*Horizontal Orientation CSS Ends*/

/*Common*/
.hidden
{
	display: none;
}
.visible
{
	display: block;
}
.thumbnail-active
{
	filter: alpha(opacity=100);
	opacity: 1.0;
	cursor: pointer;
}
.thumbnail-inactive
{
	filter: alpha(opacity=50);
	opacity: 0.5;
	cursor: pointer;
}
.thumbnail-text
{
	color: #7A7677;
	font-weight: bold;
	text-align: left;
	display: block;
	padding: 10px 2px 2px 0px;
}
.clear-fix
{
	clear: both;
}

rss登録 rss登録 rss登録

コメント

コメントをお寄せください。

コメントの投稿

コメントフィード コメントフィード

トラックバックURL: http://select.rash.jp/jquery/414/trackback/