DOS CODIGO SOLO EJECUTA UNO
Publicado por chavez (2 intervenciones) el 13/10/2008 21:53:27
Tengo estor dos codigos el primero es para un SLIDE y el segundo es para una galeria con slide and Show
solo ejecuta uno porke ?
CODIGO SLIDE PANEL -------------------------------------------------------------------
<script type="text/javascript">
window.addEvent('domready', function(){
var mySlide = new Fx.Slide('slide');
var mySlide2 = new Fx.Slide('slide2');
mySlide.hide();
mySlide2.hide();
$('toggle').addEvent('click', function(e){
e = new Event(e);
mySlide.toggle();
mySlide2.toggle();
e.stop();
});
});
</script>
CODIGO SLIDE AND SHOW ----------------------------------------------------------
<script type="text/javascript">
var theInt = null;
var $crosslink, $navthumb;
var curclicked = 0;
theInterval = function(cur){
clearInterval(theInt);
if( typeof cur != 'undefined' )
curclicked = cur;
$crosslink.removeClass("active-thumb");
$navthumb.eq(curclicked).parent().addClass("active-thumb");
$(".stripNav ul li a").eq(curclicked).trigger('click');
theInt = setInterval(function(){
$crosslink.removeClass("active-thumb");
$navthumb.eq(curclicked).parent().addClass("active-thumb");
$(".stripNav ul li a").eq(curclicked).trigger('click');
curclicked++;
if( 6 == curclicked )
curclicked = 0;
}, 1000);
};
$(function(){
$("#main-photo-slider").codaSlider();
$navthumb = $(".nav-thumb");
$crosslink = $(".cross-link");
$navthumb
.click(function() {
var $this = $(this);
theInterval($this.parent().attr('href').slice(1) - 1);
return false;
});
theInterval();
});
</script>
solo ejecuta uno porke ?
CODIGO SLIDE PANEL -------------------------------------------------------------------
<script type="text/javascript">
window.addEvent('domready', function(){
var mySlide = new Fx.Slide('slide');
var mySlide2 = new Fx.Slide('slide2');
mySlide.hide();
mySlide2.hide();
$('toggle').addEvent('click', function(e){
e = new Event(e);
mySlide.toggle();
mySlide2.toggle();
e.stop();
});
});
</script>
CODIGO SLIDE AND SHOW ----------------------------------------------------------
<script type="text/javascript">
var theInt = null;
var $crosslink, $navthumb;
var curclicked = 0;
theInterval = function(cur){
clearInterval(theInt);
if( typeof cur != 'undefined' )
curclicked = cur;
$crosslink.removeClass("active-thumb");
$navthumb.eq(curclicked).parent().addClass("active-thumb");
$(".stripNav ul li a").eq(curclicked).trigger('click');
theInt = setInterval(function(){
$crosslink.removeClass("active-thumb");
$navthumb.eq(curclicked).parent().addClass("active-thumb");
$(".stripNav ul li a").eq(curclicked).trigger('click');
curclicked++;
if( 6 == curclicked )
curclicked = 0;
}, 1000);
};
$(function(){
$("#main-photo-slider").codaSlider();
$navthumb = $(".nav-thumb");
$crosslink = $(".cross-link");
$navthumb
.click(function() {
var $this = $(this);
theInterval($this.parent().attr('href').slice(1) - 1);
return false;
});
theInterval();
});
</script>
Valora esta pregunta


0