نیلوفر66
چهارشنبه 12 شهریور 1393, 13:08 عصر
با سلام
برای تغییر زمان پخش اسلاید چه کدی رو تغییر بدم؟عکس ها با فاصله زمانی زیادی پخش بشن
animSpeedرو تغییر دادم ولی سرعت تغییر نکرد!
<script type="text/javascript">
$(function(){
$("#accordion, #graphdiv, #map, #tabs, #ft, #contact-form, #forhs1, #forhs2, #forhs3, #forhs4, #forhs5, #forhs6").hide();
$("#b1").click(function () {
if ($("#accordion, #forhs1").is(":hidden")) {
$("html").animate({ scrollTop: $(document).height() }, 3000);
hideAll();
$("#accordion, #forhs1").delay(1000).slideDown(2000);
}
});
$("#b2").click(function () {
if ($("#tabs, #forhs4").is(":hidden")) {
$("html").animate({ scrollTop: $(document).height() }, 3000);
hideAll();
$("#tabs, #forhs4").delay(1000).slideDown(2000);
}
});
$("#b3").click(function () {
if ($("#graphdiv, #forhs2").is(":hidden")) {
$("html").animate({ scrollTop: $(document).height() }, 3000);
hideAll();
$("#graphdiv, #forhs2").delay(1000).slideDown(2000);
}
});
$("#b4").click(function () {
if ($("#map, #forhs3").is(":hidden")) {
$("html").animate({ scrollTop: $(document).height() }, 3000);
hideAll();
$("#map, #forhs3").delay(1000).slideDown(2000);
$("#map").gMap({
latitude: 32.06,
longitude: 54.08,
zoom: 12,
markers: [{latitude: 32.012006, longitude: 54.218302, html: ""},],
controls: ["GSmallMapControl", "GMapTypeControl"],
scrollwheel: false,
maptype: G_NORMAL_MAP,
icon:
{
image: "",
shadow: false,
iconsize: [54, 50],
shadowsize: false,
iconanchor: [31, 50],
infowindowanchor: [31, 50]
}
});
}
});
$("#b5").click(function () {
if ($("#ft, #contact-form, #forhs5").is(":hidden")) {
$("html").animate({ scrollTop: $(document).height() }, 3000);
hideAll();
$("#ft, #contact-form, #forhs5").delay(1000).slideDown(2000);
}
});
$("#accordion").accordion({ header: "h3",
autoHeight: false,
navigation: true
});
$('#tabs').tabs();
$('ul#icons li').hover(
function() { $(this).addClass('ui-state-hover'); },
function() { $(this).removeClass('ui-state-hover'); }
);
var theWindow = $(window),
$bg = $("#bg"),
aspectRatio = $bg.width() / $bg.height();
function resizeBg() {
if ( (theWindow.width() / theWindow.height() ) < aspectRatio ) {
$bg.removeClass().addClass('bgheight');
} else {
$bg.removeClass().addClass('bgwidth');
}
}
theWindow.resize(function() {
resizeBg();
}).trigger("resize");
$('#page-wrap').corner("10px");
$('.va-wrapper').corner("10px");
$('#map').corner("10px");
$('#graphdiv').corner("10px");
$('#contact-form').corner();
$('#ft').corner();
$('#va-accordion').vaccordion({
expandedHeight : 540,
animSpeed : 500,
animEasing : 'easeInOutBack',
animOpacity : 0.4,
accordionW : 800,
accordionH : 540,
savePositions : true,
});
$('#slider').nivoSlider();
$('#contact-form').slidinglabels({
className : 'slider',
topPosition : '5px',
leftPosition : '5px',
axis : 'x',
speed : 'slow'
});
});
$('#slider').corner("10px");
</script>
برای تغییر زمان پخش اسلاید چه کدی رو تغییر بدم؟عکس ها با فاصله زمانی زیادی پخش بشن
animSpeedرو تغییر دادم ولی سرعت تغییر نکرد!
<script type="text/javascript">
$(function(){
$("#accordion, #graphdiv, #map, #tabs, #ft, #contact-form, #forhs1, #forhs2, #forhs3, #forhs4, #forhs5, #forhs6").hide();
$("#b1").click(function () {
if ($("#accordion, #forhs1").is(":hidden")) {
$("html").animate({ scrollTop: $(document).height() }, 3000);
hideAll();
$("#accordion, #forhs1").delay(1000).slideDown(2000);
}
});
$("#b2").click(function () {
if ($("#tabs, #forhs4").is(":hidden")) {
$("html").animate({ scrollTop: $(document).height() }, 3000);
hideAll();
$("#tabs, #forhs4").delay(1000).slideDown(2000);
}
});
$("#b3").click(function () {
if ($("#graphdiv, #forhs2").is(":hidden")) {
$("html").animate({ scrollTop: $(document).height() }, 3000);
hideAll();
$("#graphdiv, #forhs2").delay(1000).slideDown(2000);
}
});
$("#b4").click(function () {
if ($("#map, #forhs3").is(":hidden")) {
$("html").animate({ scrollTop: $(document).height() }, 3000);
hideAll();
$("#map, #forhs3").delay(1000).slideDown(2000);
$("#map").gMap({
latitude: 32.06,
longitude: 54.08,
zoom: 12,
markers: [{latitude: 32.012006, longitude: 54.218302, html: ""},],
controls: ["GSmallMapControl", "GMapTypeControl"],
scrollwheel: false,
maptype: G_NORMAL_MAP,
icon:
{
image: "",
shadow: false,
iconsize: [54, 50],
shadowsize: false,
iconanchor: [31, 50],
infowindowanchor: [31, 50]
}
});
}
});
$("#b5").click(function () {
if ($("#ft, #contact-form, #forhs5").is(":hidden")) {
$("html").animate({ scrollTop: $(document).height() }, 3000);
hideAll();
$("#ft, #contact-form, #forhs5").delay(1000).slideDown(2000);
}
});
$("#accordion").accordion({ header: "h3",
autoHeight: false,
navigation: true
});
$('#tabs').tabs();
$('ul#icons li').hover(
function() { $(this).addClass('ui-state-hover'); },
function() { $(this).removeClass('ui-state-hover'); }
);
var theWindow = $(window),
$bg = $("#bg"),
aspectRatio = $bg.width() / $bg.height();
function resizeBg() {
if ( (theWindow.width() / theWindow.height() ) < aspectRatio ) {
$bg.removeClass().addClass('bgheight');
} else {
$bg.removeClass().addClass('bgwidth');
}
}
theWindow.resize(function() {
resizeBg();
}).trigger("resize");
$('#page-wrap').corner("10px");
$('.va-wrapper').corner("10px");
$('#map').corner("10px");
$('#graphdiv').corner("10px");
$('#contact-form').corner();
$('#ft').corner();
$('#va-accordion').vaccordion({
expandedHeight : 540,
animSpeed : 500,
animEasing : 'easeInOutBack',
animOpacity : 0.4,
accordionW : 800,
accordionH : 540,
savePositions : true,
});
$('#slider').nivoSlider();
$('#contact-form').slidinglabels({
className : 'slider',
topPosition : '5px',
leftPosition : '5px',
axis : 'x',
speed : 'slow'
});
});
$('#slider').corner("10px");
</script>