<!-- DEMO -->
<!-- DEMO -->
<style>/* объява */
#slideShowContainer{
width:310px;
padding:120px 0;
height:250px;
position:relative;
z-index:1000;
margin-left:10px;
}
#slideShow{
position:absolute;
height:250px;
width:300px;
background-color:#fff;
margin:8px 0 0 10px;
z-index:100;
-moz-box-shadow:0 0 10px #111;
-webkit-box-shadow:0 0 10px #111;
box-shadow:0 0 10px #111;
}
#pictures { position: relative; height: 208px; }
#pictures img { position: absolute; top: 0; left: 0; margin: 10px 0 0 10px;}
#slideShowContainer > a{
border:none;
text-decoration:none;
text-indent:-99999px;
overflow:hidden;
width:36px;
height:37px;
background:url('http://upforme.ru/uploads/0007/e3/f7/64535-1.png') no-repeat;
position:absolute;
top:50%;
margin-top:-21px;
}
#previousLink{left:-22px;}
#previousLink:hover{ background-position:bottom left;}
a#nextLink{right:-32px;background-position:top right;}
#nextLink:hover{background-position:bottom right;}
</style>
<center>
<div id="slideShowContainer">
<div id="slideShow">
<div id="pictures">
<img src="http://upforme.ru/uploads/0007/e3/f7/64525-1.png" alt="" />
<img src="http://upforme.ru/uploads/0007/e3/f7/64525-2.png" alt="" />
<img src="http://upforme.ru/uploads/0007/e3/f7/64525-3.png" alt="" />
<img src="http://upforme.ru/uploads/0007/e3/f7/64525-4.png" alt="" />
<img src="http://upforme.ru/uploads/0007/e3/f7/64525-5.png" alt="" />
<img src="http://upforme.ru/uploads/0007/e3/f7/64526-1.png" alt="" />
<img src="http://upforme.ru/uploads/0007/e3/f7/64526-2.png" alt="" />
</div>
</div>
<a id="previousLink" href="#">»</a>
<a id="nextLink" href="#">«</a>
</div></center>
<!-- галерейка -->
<script>
$(document).ready(function() {
var z = 0;
var inAnimation = false;
$('#pictures img').each(function() {
z++;
$(this).css('z-index', z);
});
function swapFirstLast(isFirst) {
if(inAnimation) return false;
else inAnimation = true;
var processZindex, direction, newZindex, inDeCrease;
if(isFirst) { processZindex = z; direction = '-'; newZindex = 1; inDeCrease =
1; }
else { processZindex = 1; direction = ''; newZindex = z; inDeCrease = -1; }
$('#pictures img').each(function() {
if($(this).css('z-index') == processZindex) {
$(this).animate({ 'top' : direction + $(this).height() + 'px' }, 'slow',
function() {
$(this).css('z-index', newZindex)
.animate({ 'top' : '0' }, 'slow', function() {
inAnimation = false;
});
});
}
else {
$(this).animate({ 'top' : '0' }, 'slow', function() {
$(this).css('z-index', parseInt($(this).css('z-index')) + inDeCrease);
});
}
});
return false;
}
$('#previousLink').click(function() {
return swapFirstLast(false);
});
$('#nextLink').click(function() {
return swapFirstLast(true);
});
});
</script>гостевая
Сообщений 1 страница 6 из 6
Поделиться12014-05-06 09:23:06
Поделиться22014-05-06 09:30:13
<style>
#menu span {
padding: 7px 15px 7px;
margin-right: 5px;
margin: 4px -4px;
width: 100px;
text-decoration: none;
color:#641C22;
font-size:13px;
text-shadow:#9C706D 1px 1px 2px;
border
}
#menu .tabactive {
color: #2662DF;
background:#F9F1DD;
}
#submenu {
padding: 5px;
height: 300px;
text-align: left;
font-size: 12px;
width: 720px;
}
.submenutext {
text-align: center!i;
background:#F9F1DD;
position:absolute;
width:100%;
width: 720px!important;
display: none;
height: 300px;
}
.submenutext img{
width: 720px!important;
}
.bgdiv {
background:url(http://savepic.net/744293.png) right top repeat-y;
position:relative;
text-align: left;
width:100%;
height:100%;
}
</style>
<script type="text/javascript">
$(document).ready(function() {
$("td.#MenuTxT div.submenutext").hide();
<!--$(".tabs span:first").addClass("active").show(); -->
$("td.#MenuTxT div.submenutext:first").show();
$("div.#menu span").click(function() {
$("div.#menu span").removeClass("tabactive");
$(this).addClass("tabactive");
$("td.#MenuTxT div.submenutext").css({"z-index":"-1;"})
var activeDiv = $(this).attr("alt");
$("div."+activeDiv).css({"z-index":"1"})
$("td.#MenuTxT div.submenutext").hide(1200);
$("div."+activeDiv).show(2200);
return false; });
});
</script>
<center><table style="width: 720px;">
<tbody>
<tr>
<td align="center">
<div id="menu"> <b>
<span alt=#sm1 "style="cursor: pointer;">Погода и время</span>
<span alt=#sm2 "style="cursor: pointer;">Сюжет,акции и квесты</span>
<span alt=#sm3 "style="cursor: pointer;">Соревнования</span>
<span alt=#sm4 "style="cursor: pointer;">Администрация</span>
<span alt=#sm5 "style="cursor: pointer;">Навигация</span>
</b>
</div>
</td>
</tr>
<tr align="left">
<td id="MenuTxT" valign="top" style="height: 300px;">
<div id="submenu" width="100%">
<div id="sm1" class="submenutext" style="display:block;">
<img src="http://upforme.ru/uploads/000f/05/97/100-1-f.jpg" height=100% style="position:absolute;"/>
<div class="bgdiv">
Тут пишем свой текст Погода и время
</div>
</div>
<div id="sm2" class="submenutext">
<img src="http://upforme.ru/uploads/000f/05/97/100-2-f.jpg" height=100% style="position:absolute;"/>
<div class="bgdiv">
Тут пишем свой текст Сюжет,акции и квесты
</div>
</div>
<div id="sm3" class="submenutext">
<img src="http://upforme.ru/uploads/000f/05/97/100-3-f.jpg" height=100% style="position:absolute;"/>
<div class="bgdiv">
Тут пишем свой текст Соревнования
</div>
</div>
<div id="sm4" class="submenutext">
<img src="http://upforme.ru/uploads/000f/05/97/100-4-f.jpg" height=100% style="position:absolute;"/>
<div class="bgdiv">
Тут пишем свой текст Администрация
</div>
</div>
<div id="sm5" class="submenutext">
<img src="http://upforme.ru/uploads/000f/05/97/100-5-f.jpg" height=100% style="position:absolute;"/>
<div class="bgdiv">
Тут пишем свой текст Навигация
</div>
</div>
</div>
</td>
</tr>
</tbody>
</table></center>Поделиться32014-05-06 09:47:30
<a href=""><img src="http://savepic.net/3270190m.png" onmouseover="this.src='http://savepic.net/3236399m.gif'" onmouseout="this.src='http://savepic.net/3270190m.png'" border="0"></a>
Поделиться42014-05-06 10:58:52
плавная смена картинок
<style>
.image.UP,
.image.Down {
border:2px solid transparent;
margin:0;
padding:0;
}
.image.UP{
opacity:1.0;
display:block;
position:absolute;z-index:100;
transition-duration: 0.96s;
-webkit-transition-duration: 0.96s;
-moz-transition-duration: 0.96s;
-o-transition-duration: 0.96s;
-ms-transition-duration: 0.96s; /* IE9+ */
}
.image.UP:hover {
opacity:0.00;
}
div.ImgWrap{
display:inline-block;
padding:0;margin:0;
background-position:center center;
background-repeat:no-repeat;
}
</style>Туда , где нужно
Картинки вместе с внешним div можно размножать (*Меняем на свое - только ссылки, Верхняя - нижняя картинки должны быть идентичны по размеру
<div class=ImgWrap>
<img class="image UP" src="http://uploads.ru/i/i/n/D/inDOK.png"/>
<img class="image Down" src="http://uploads.ru/i/3/E/W/3EWuB.png"/>
</div>
Поделиться52015-02-22 02:52:39
профиль не катит.. цвет основного тела совсем не подходит, как и пунктир по краям и тени.. тени лучше пустить по краям тела форума внутрь, а у профиля наружние, как сейчас на керсе, что думаешь?
кстати, строка меню после входа вернулась на место, а если не вхожу тогда только наезжает на страницк))
Поделиться62015-02-22 19:29:48
<script type="text/javascript">
$(document).ready(function(){
var currentPosition = 0;
var slideWidth = 750;
var slides = $('.slide');
var numberOfSlides = slides.length;
// Remove scrollbar in JS
$('#slidesContainer').css('overflow', 'hidden');
// Wrap all .slides with #slideInner div
slides
.wrapAll('<div id="slideInner"></div>')
// Float left to display horizontally, readjust .slides width
.css({
'float' : 'right',
'width' : slideWidth
});
// Set #slideInner width equal to total width of all slides
$('#slideInner').css('width', slideWidth * numberOfSlides);
// Insert controls in the DOM
$('#slideshow')
.prepend('<span class="control" id="leftControl">Clicking moves left</span>')
.append('<span class="control" id="rightControl">Clicking moves right</span>');
// Hide left arrow control on first load
manageControls(currentPosition);
// Create event listeners for .controls clicks
$('.control')
.bind('click', function(){
// Determine new position
currentPosition = ($(this).attr('id')=='rightControl') ? currentPosition+1 : currentPosition-1;
// Hide / show controls
manageControls(currentPosition);
// Move slideInner using margin-left
$('#slideInner').animate({
'marginLeft' : slideWidth*(-currentPosition)
});
});
// manageControls: Hides and Shows controls depending on currentPosition
function manageControls(position){
// Hide left arrow if position is first slide
if(position==0){ $('#leftControl').hide() } else{ $('#leftControl').show() }
// Hide right arrow if position is last slide
if(position==numberOfSlides-1){ $('#rightControl').hide() } else{ $('#rightControl').show() }
}
});
</script>
<style>
.punbb .post-content .quote-box, .punbb .post-content .code-box {
border-style: double;
border-width: 3px;
border: 3px double #660000;
border-radius:5px;
-webkit-border-radius:5px;
-khtml-border-radius:5px;
-moz-border-radius:5px;
-o-border-radius:5px;
}</style>







