مجموعه ی از کدهای آماده برای ساخت گالری عکس بصورت معمولی و ساده : ابتدا این مجموعه را با 4 گالری شروع میکنم.// این کدهای قابل ویرایش هستند.شاید خیلی ها بدنبال این کدها باشن ./ سبک این گالری ها در حد ساده و معمولی هست و هرکسی میتونه اونو ویرایش و تغییربده.

.jpg)

سبک : ساده + گالری عکس + زوم عکس ها : دمو این گالری
<!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 http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>گالری Zoom</title><meta name="description" content="Easiest jQuery Tooltip Ever"><script src="http://20soft.rozup.ir/desing/jquery.js" type="text/javascript"></script><script src="http://20soft.rozup.ir/desing/mainJ.js" type="text/javascript"></script><style>body { margin:0; padding:40px; background:#fff; font:80% Arial, Helvetica, sans-serif; color:#555; line-height:180%;}h1{ font-size:180%; font-weight:normal; color:#555;}h2{ clear:both; font-size:160%; font-weight:normal; color:#555; margin:0; padding:.5em 0;}a{ text-decoration:none; color:#f30; }p{ clear:both; margin:0; padding:.5em 0;}pre{ display:block; font:100% "Courier New", Courier, monospace; padding:10px; border:1px solid #bae2f0; background:#e3f4f9; margin:.5em 0; overflow:auto; width:800px;}img{border:none;}ul,li{ margin:0; padding:0;}li{ list-style:none; float:left; display:inline; margin-right:10px;}/* */#preview{ position:absolute; border:1px solid #ccc; background:#333; padding:5px; display:none; color:#fff; }/* */</style><link rel="stylesheet" href="http://20soft.rozup.ir/Sky/Textboxs.css" </head><body> <h1>نشانه گر ماوس را برروي عکس ها نگهدار تا عکس ها بزرگنمايي شوند</h1> <h2>گالري عکس ها (زوم آنها ) قابليت</h2> <ul> <ul> <li><a title="" href="http://20soft.rozup.ir/desing/20.jpg" class="preview"><img src="http://20soft.rozup.ir/desing/1s.jpg" alt="هدیه تهرانی"></a></li> <li><a title="" href="http://20soft.rozup.ir/desing/20-(2).jpg" class="preview"><img src="http://20soft.rozup.ir/desing/2s.jpg" alt="محمد رضا گلزار"></a></li> <li><a title="" href="http://20soft.rozup.ir/desing/20-(4).jpg" class="preview"><img src="http://20soft.rozup.ir/desing/3s.jpg" alt="هدیه تهرانی"></a></li> <li><a title="" href="http://20soft.rozup.ir/desing/20-(1).jpg" class="preview"><img src="http://20soft.rozup.ir/desing/4s.jpg" alt="توسلی "></a></li> </ul> <h2>گالري عکس ها (زوم آنها ) قابليت</h2> <ul> <ul> <li><a title="" href="http://20soft.rozup.ir/desing/20.jpg" class="preview"><img src="http://20soft.rozup.ir/desing/1s.jpg" alt="هدیه تهرانی"></a></li> <li><a title="" href="http://20soft.rozup.ir/desing/20-(2).jpg" class="preview"><img src="http://20soft.rozup.ir/desing/2s.jpg" alt="محمد رضا گلزار"></a></li> <li><a title="" href="http://20soft.rozup.ir/desing/20-(4).jpg" class="preview"><img src="http://20soft.rozup.ir/desing/3s.jpg" alt="هدیه تهرانی"></a></li> <li><a title="" href="http://20soft.rozup.ir/desing/20-(1).jpg" class="preview"><img src="http://20soft.rozup.ir/desing/4s.jpg" alt="توسلی "></a></li> </ul></body></html><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html> <head> <link rel="stylesheet" type="text/css" href="http://20soft.rozup.ir/desing/mobileSilder/Stlyemobile.css"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Mobile Silder v2.1 موبايل</title> </head> <body> <div id="outerContainer"> <div id="imageScroller"> <div id="viewer" class="js-disabled"> <a class="wrapper" href="http://www.apple.com" title="Apple"><img class="logo" id="apple" src="http://20soft.rozup.ir/desing/mobileSilder/apple.jpg" alt="Apple"></a> <a class="wrapper" href="https://rozblog.com" title="Rozblog.com"><img class="logo" id="rozblog" src="http://20soft.rozup.ir/desing/mobileSilder/rozblog.jpg" alt="Rozblog"></a> <a class="wrapper" href="http://news.rozblog.com/forum"masoud.rzb"><img class="logo" id="jquery" src="http://20soft.rozup.ir/desing/mobileSilder/mrzb.jpg" alt="mrzb"></a> <a class="wrapper" href="http://www.20soft.r98.ir" title="20Soft"><img class="logo" id="desinger" src="http://20soft.rozup.ir/desing/mobileSilder/desinger.jpg" alt="desinger"></a> <a class="wrapper" href="http://jqueryui.com" title="jQuery UI X"><img class="logo" id="jqueryui" src="http://20soft.rozup.ir/desing/mobileSilder/jqueryui.jpg" alt="jQuery UI"></a> </div> </div> </div> <script type="text/javascript" src="http://20soft.rozup.ir/desing/jquery-1.3.2.min.js"></script> <script type="text/javascript"> $(function() { //remove js-disabled class $("#viewer").removeClass("js-disabled"); //create new container for images $("<div>").attr("id", "container").css({ position:"absolute"}).width($(".wrapper").length * 170).height(170).appendTo("div#viewer"); //add images to container $(".wrapper").each(function() { $(this).appendTo("div#container"); }); //work out duration of anim based on number of images (1 second for each image) var duration = $(".wrapper").length * 1000; //store speed for later (distance / time) var speed = (parseInt($("div#container").width()) + parseInt($("div#viewer").width())) / duration; //set direction var direction = "rtl"; //set initial position and class based on direction (direction == "rtl") ? $("div#container").css("left", $("div#viewer").width()).addClass("rtl") : $("div#container").css("left", 0 - $("div#container").width()).addClass("ltr") ; //animator function var animator = function(el, time, dir) { //which direction to scroll if(dir == "rtl") { //add direction class el.removeClass("ltr").addClass("rtl"); //animate the el el.animate({ left:"-" + el.width() + "px" }, time, "linear", function() { //reset container position $(this).css({ left:$("div#imageScroller").width(), right:"" }); //restart animation animator($(this), duration, "rtl"); //hide controls if visible ($("div#controls").length > 0) ? $("div#controls").slideUp("slow").remove() : null ; }); } else { //add direction class el.removeClass("rtl").addClass("ltr"); //animate the el el.animate({ left:$("div#viewer").width() + "px" }, time, "linear", function() { //reset container position $(this).css({ left:0 - $("div#container").width() }); //restart animation animator($(this), duration, "ltr"); //hide controls if visible ($("div#controls").length > 0) ? $("div#controls").slideUp("slow").remove() : null ; }); } } //start anim animator($("div#container"), duration, direction); //pause on mouseover $("a.wrapper").live("mouseover", function() { //stop anim $("div#container").stop(true); //show controls ($("div#controls").length == 0) ? $("<div>").attr("id", "controls").appendTo("div#outerContainer").css({ opacity:0.7 }).slideDown("slow") : null ; ($("a#rtl").length == 0) ? $("<a>").attr({ id:"rtl", href:"#", title:"rtl" }).appendTo("#controls") : null ; ($("a#ltr").length == 0) ? $("<a>").attr({ id:"ltr", href:"#", title:"ltr" }).appendTo("#controls") : null ; //variable to hold trigger element var title = $(this).attr("title"); //add p if doesn't exist, update it if it does ($("p#title").length == 0) ? $("<p>").attr("id", "title").text(title).appendTo("div#controls") : $("p#title").text(title) ; }); //restart on mouseout $("a.wrapper").live("mouseout", function(e) { //hide controls if not hovering on them (e.relatedTarget == null) ? null : (e.relatedTarget.id != "controls") ? $("div#controls").slideUp("slow").remove() : null ; //work out total travel distance var totalDistance = parseInt($("div#container").width()) + parseInt($("div#viewer").width()); //work out distance left to travel var distanceLeft = ($("div#container").hasClass("ltr")) ? totalDistance - (parseInt($("div#container").css("left")) + parseInt($("div#container").width())) : totalDistance - (parseInt($("div#viewer").width()) - (parseInt($("div#container").css("left")))) ; //new duration is distance left / speed) var newDuration = distanceLeft / speed; //restart anim animator($("div#container"), newDuration, $("div#container").attr("class")); }); //handler for ltr button $("#ltr").live("click", function() { //stop anim $("div#container").stop(true); //swap class names $("div#container").removeClass("rtl").addClass("ltr"); //work out total travel distance var totalDistance = parseInt($("div#container").width()) + parseInt($("div#viewer").width()); //work out remaining distance var distanceLeft = totalDistance - (parseInt($("div#container").css("left")) + parseInt($("div#container").width())); //new duration is distance left / speed) var newDuration = distanceLeft / speed; //restart anim animator($("div#container"), newDuration, "ltr"); }); //handler for rtl button $("#rtl").live("click", function() { //stop anim $("div#container").stop(true); //swap class names $("div#container").removeClass("ltr").addClass("rtl"); //work out total travel distance var totalDistance = parseInt($("div#container").width()) + parseInt($("div#viewer").width()); //work out remaining distance var distanceLeft = totalDistance - (parseInt($("div#viewer").width()) - (parseInt($("div#container").css("left")))); //new duration is distance left / speed) var newDuration = distanceLeft / speed; //restart anim animator($("div#container"), newDuration, "rtl"); }); }); </script> </body></html>سبک : بکگراند + عکس + متن + افکت : دمو این گالری
!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml">
<style>
img.bg {
/* Set rules to fill background */
min-height: 100%;
min-width: 1024px;
/* Set up proportionate scaling */
width: 100%;
height: auto;
/* Set up positioning */
position: fixed;
top: 0;
left: 0;
}
@media screen and (max-width: 1024px){
img.bg {
left: 50%;
margin-left: -512px; }
}
#page-wrap { position: relative; width: 400px; margin: 50px auto; padding: 20px; background: white; -moz-box-shadow: 0 0 20px black; -webkit-box-shadow: 0 0 20px black; box-shadow: 0 0 20px black; }
p { font: 15px/2 Georgia, Serif; margin: 0 0 30px 0; text-indent: 40px; }
</style>
</head>
</style>
</head>
<body>
<img src="http://20soft.rozup.ir/desing/20.jpg" class="bg">
<div id="page-wrap">
<head>
<title>گالری عکس ایرانی</title>
<link rel="stylesheet" href="http://20soft.rozup.ir/Sky/Textboxs.css"
type="text/css">
<script type="text/javascript" src="http://20soft.rozup.ir/desing/jquery-1.3.1.min.js"></script>
<script type="text/javascript" src="http://20soft.rozup.ir/desing/jquery.scrollTo.js"></script>
<script>
$(document).ready
(function() {
//Speed of the slideshow
var speed = 7000;
//You have to specify width and height in #slider CSS properties
//After that, the following script will set the width and height accordingly
$('#mask-gallery, #gallery li').width($('#slider').width());
$('#gallery').width($('#slider').width() * $('#gallery li').length);
$('#mask-gallery, #gallery li, #mask-excerpt, #excerpt li').height($('#slider').height());
//Assign a timer, so it will run periodically
var run = setInterval('newsscoller(5)', speed);
$('#gallery li:first, #excerpt li:first').addClass('selected');
//Pause the slidershow with clearInterval
$('#btn-pause').click(function () {
clearInterval(run);
return false;
});
//Continue the slideshow with setInterval
$('#btn-play').click(function () {
run = setInterval('newsscoller(0)', speed);
return false;
});
//Next Slide by calling the function
$('#btn-next').click(function () {
newsscoller(0);
return false;
});
//Previous slide by passing prev=1
$('#btn-prev').click(function () {
newsscoller(1);
return false;
});
//Mouse over, pause it, on mouse out, resume the slider show
$('#slider').hover(
function() {
clearInterval(run);
},
function() {
run = setInterval('newsscoller(0)', speed);
}
);
});
function newsscoller(prev) {
//Get the current selected item (with selected class), if none was found, get the first item
var current_image = $('#gallery li.selected').length ? $('#gallery li.selected') : $('#gallery li:first');
var current_excerpt = $('#excerpt li.selected').length ? $('#excerpt li.selected') : $('#excerpt li:first');
//if prev is set to 1 (previous item)
if (prev) {
//Get previous sibling
var next_image = (current_image.prev().length) ? current_image.prev() : $('#gallery li:last');
var next_excerpt = (current_excerpt.prev().length) ? current_excerpt.prev() : $('#excerpt li:last');
//if prev is set to 0 (next item)
} else {
//Get next sibling
var next_image = (current_image.next().length) ? current_image.next() : $('#gallery li:first');
var next_excerpt = (current_excerpt.next().length) ? current_excerpt.next() : $('#excerpt li:first');
}
//clear the selected class
$('#excerpt li, #gallery li').removeClass('selected');
//reassign the selected class to current items
next_image.addClass('selected');
next_excerpt.addClass('selected');
//Scroll the items
$('#mask-gallery').scrollTo(next_image, 900);
$('#mask-excerpt').scrollTo(next_excerpt, 900);
}
</script>
<style>
#slider {
/* You MUST specify the width and height */
width:420px;
height:506px;
position:relative;
overflow:hidden;
}
#mask-gallery {
overflow:hidden;
}
#gallery {
/* Clear the list style */
list-style:none;
margin:0;
padding:0;
z-index:0;
/* width = total items multiply with #mask gallery width */
width:500px;
overflow:hidden;
}
#gallery li {
/* float left, so that the items are arrangged horizontally */
float:left;
}
#mask-excerpt {
/* Set the position */
position:absolute;
top:0;
left:0;
z-index:000;
/* width should be lesser than #slider width */
width:212px;
overflow:hidden;
}
#excerpt {
/* Opacity setting for different browsers */
filter:alpha(opacity=80);
-moz-opacity:0.7;
-khtml-opacity: 0.7;
opacity: 0.7;
/* Clear the list style */
list-style:none;
margin:0;
padding:0;
/* Set the position */
z-index:110;
position:absolute;
top:110;
left:50;
/* Set the style */
width:190px;
background-color:#000000;
overflow:hidden;
font-family:Arial;
font-size:18px;
color:#FFFFFF;
}
#excerpt li {
padding:0px;
}
.clear {
clear:both;
}
</style>
</head>
<body>
<div id="debug"></div>
<div id="slider">
<div id="mask-gallery">
<ul id="gallery">
<li><img src="http://20soft.rozup.ir/desing/20-(1).jpg" width="500" height="586" alt=""/></li>
<li><img src="http://20soft.rozup.ir/desing/20-(2).jpg" width="500" height="586" alt=""/></li>
<li><img src="http://20soft.rozup.ir/desing/20-(3).jpg" width="500" height="586" alt=""/></li>
<li><img src="http://20soft.rozup.ir/desing/20-(4).jpg" width="500" height="586" alt="هدیه تهرانی"/></li
</ul>
</div>
<div id="mask-excerpt">
<ul id="excerpt">
<li>محتویات عکس ها این صفحه فقط برای آزمایش کد ها قرار داده شده است TEXT20 (1)</li>
<li>از دکمه هایTEXT20 (4) زیر استفاده فرمایید</li>
<li> TEXT20 (2)عکس های بازیگران ایرانی</li> <li>TEXT20 (3) 20Soft.R98.ir</li>
<style type="text/css">
A:hover { COLOR: #00BFFF; TEXT-DECORATION: none; font-weight: none
TEXT-DECORATION: none; text-shadow: 0px 2px 2px #00BFFF; }
</style><font style="text-decoration: blink; font-variant: small-caps"> <font size="6"</ul>
</div>
</div>
<div id="buttons">
<a href="#" id="btn-prev">Last ^ </a>
<a href="#" id="btn-pause">Stop ^</a>
<a href="#" id="btn-play">Play ^ </a>
<a href="#" id="btn-next">Next</a>
</div>
<div class="clear"></div>
<div style="font-size:18px;color:#888">فارسی سازی این برنامه تحت وب توسط : صورت گرفته است.</div></font>
</body>
</html>
M.RZB ™
سبک : + عکس + ساده :
<!--
By masoud.RZB----->www.onemightyroar.com
-->
<html>
<head>
<title>قالب های سایت من</title>
<center>
<style type="text/css">
*{ padding:0px; margin:0px; }
body{ background:#000000; }
a{ color:#C8DCE5; }
h3{ margin: 10px 10px 0 10px; color:#FFF; font:18pt Arial, sans-serif; letter-spacing:-1px; font-weight: bold; }
.boxgrid{
width: 325px;
height: 260px;
margin:10px;
float:left;
background:#161613;
border: solid 2px #8399AF;
overflow: hidden;
position: relative;
}
.boxgrid img{
position: absolute;
top: 0;
left: 0;
border: 0;
}
.boxgrid p{
padding: 0 10px;
color:#afafaf;
font-weight:bold;
font:10pt "Lucida Grande", Arial, sans-serif;
}
.boxcaption{
float: left;
position: absolute;
background: #000;
height: 100px;
width: 100%;
opacity: .9;
/* For IE 5-7 */
filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=80);
/* For IE 8 */
-MS-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";
}
.captionfull .boxcaption {
top: 260;
left: 0;
}
.caption .boxcaption {
top: 220;
left: 0;
}
</style>
<script type="text/javascript" src="http://20soft.rozup.ir/desing/jquery-20soft.js"></script>
<script type="text/javascript">
$(document).ready(function(){
//To switch directions up/down and left/right just place a "-" in front of the top/left attribute
//Vertical Sliding
$('.boxgrid.slidedown').hover(function(){
$(".cover", this).stop().animate({top:'-260px'},{queue:false,duration:500});
}, function() {
$(".cover", this).stop().animate({top:'0px'},{queue:false,duration:300});
});
//Horizontal Sliding
$('.boxgrid.slideright').hover(function(){
$(".cover", this).stop().animate({left:'325px'},{queue:false,duration:300});
}, function() {
$(".cover", this).stop().animate({left:'0px'},{queue:false,duration:300});
});
//Diagnal Sliding
$('.boxgrid.thecombo').hover(function(){
$(".cover", this).stop().animate({top:'260px', left:'325px'},{queue:false,duration:300});
}, function() {
$(".cover", this).stop().animate({top:'0px', left:'0px'},{queue:false,duration:300});
});
//Partial Sliding (Only show some of background)
$('.boxgrid.peek').hover(function(){
$(".cover", this).stop().animate({top:'90px'},{queue:false,duration:160});
}, function() {
$(".cover", this).stop().animate({top:'0px'},{queue:false,duration:160});
});
//Full Caption Sliding (Hidden to Visible)
$('.boxgrid.captionfull').hover(function(){
$(".cover", this).stop().animate({top:'160px'},{queue:false,duration:160});
}, function() {
$(".cover", this).stop().animate({top:'260px'},{queue:false,duration:160});
});
//Caption Sliding (Partially Hidden to Visible)
$('.boxgrid.caption').hover(function(){
$(".cover", this).stop().animate({top:'160px'},{queue:false,duration:160});
}, function() {
$(".cover", this).stop().animate({top:'220px'},{queue:false,duration:160});
});
});
</script>
</head>
<body>
<div class="boxgrid captionfull">
<img src="http://20soft.rozup.ir/desing/gpic2/jareck.jpg"/> <div class="cover boxcaption">
<h3>عکس شماره 1</h3>
<p>هنرمند<br/><a href="http://Site000"target="_BLANK">ادامه اين مطلب</a></p>
</div>
</div>
<div class="boxgrid caption">
<img src="http://20soft.rozup.ir/desing/gpic2/kamil.jpg"/>
<div class="cover boxcaption">
<p>Artist<br/><a href="http://Site000" target="_BLANK">ادامه اين مطلب</a></p>
</div>
</div>
<div class="boxgrid slideright">
<img class="cover" src="http://20soft.rozup.ir/desing/gpic2/martin.jpg"/>
<h3>عکس شماره 2</h3>
<p>عکاس<br/><a href="http://Site000" target="_BLANK">ادامه اين مطلب</a></p>
</div>
<div class="boxgrid thecombo">
<img class="cover" src="http://20soft.rozup.ir/desing/gpic2/florian.jpg"/>
<h3>Florian Nicolle</h3>
<p>Graphic Designer<br/><a href="http://Site000" target="_BLANK">ادامه اين مطلب</a></p>
</div>
<div class="boxgrid slidedown">
<img class="cover" src="http://20soft.rozup.ir/desing/gpic2/nonsense.jpg"/>
<h3>The Nonsense Society</h3>
<p>عکس <br/><a href="http://Site000" target="_BLANK">سايت</a></p>
</div>
<div class="boxgrid peek">
<a href="http://Site000" target="_BLANK"><img src="http://20soft.rozup.ir/desing/gpic2/buildinternet.jpg"/><div class="cover boxcaption">
</a>
<a href="http://Site000"target="_BLANK"><img class="cover" src="http://20soft.rozup.ir/desing/gpic2/buildinternet.jpg"/></a>
<center> </div>
</body>
</html>
<center>