| Autor | Zpráva | ||
|---|---|---|---|
| CZOggy Profil |
#1 · Zasláno: 25. 2. 2010, 19:30:07 · Upravil/a: CZOggy
Dobrý den, potřebuji poradit jak do tohoto scriptu přidat timer
function slideSwitch() {
}
$(function() {
setInterval(slideSwitch, 1000 );
});
var imgWrapper = $('#plakat > img');
imgWrapper.hide().filter(':first').show();
$('#akce li a').click(function () {
if (this.className.indexOf('current') == -1){
imgWrapper.hide();
imgWrapper.filter(this.hash).fadeIn(500);
$('#akce li a').removeClass('current');
$('#akce li a').each(function(i, el) {
if($(el).html() != "" ) {
$(el).html($(el).html().replace(/-on/ig, "-off"));
}
});
$(this).addClass('current');
$(this).each(function(i, el) {
if($(el).html() != "" ) {
$(el).html($(el).html().replace(/-off/ig, "-on"));
}
});
}
return false;
});
Děkuji |
||
| CZOggy Profil |
#2 · Zasláno: 26. 2. 2010, 12:17:29
uz jsem na to prisel..
|
||
|
Časová prodleva: 16 let
|
|||
0