Olá...
Deu erro na seguinte linha:
//SlideShow-->
slide = {
_imagens : [
["/imagens/manchetes/manchete8.jpg","MultiLOG","Que tal ter seu espaço na internet? Então entre agora no MultiLOG TuaCara.com.br. Fotos, vídeos, músicas e muito mais... Acesse e cadastre-se. É grátis!","05/10/06"],
["/imagens/manchetes/manchete10.jpg","Shopping","Agora, você pode fazer suas compras no TuaCara.com.br<BR><BR>Clique e confira. Você vai se surpreender.","06/10/06"],
],
_count : 0,
_length : 2,
_timeOutID : null,
pause : false,
_start : function(){
this._preLoader();
this._work();
},
_preLoader : function(){
for(x in this._imagens){
var image = new Image();
image.src = this._imagens[x][0];
}
},
_work : function(){
(this._count == this._length) ? this._count = 0 : (this._count < 0) ? this._count = this._length-1 : void(0);
var current = this._imagens[this._count];
this._exchange(current);
if(!this.pause){
(typeof(this._timeOutID) == "number") ? clearTimeout(this._timeOutID) : void(0);
this._timeOutID = setTimeout(function(){ slide._next(); }, 4000);
}
},
_exchange : function(img){
document.getElementById("slideImg").src = img[0];
document.getElementById("titleSlide").innerHTML = img[1]
document.getElementById("textSlide").innerHTML = img[2];
},
_next : function(){
this._count++;
this._work();
},
_previous : function(){
this._count--;
this._work();
},
_pause : function(){
var img = document.getElementById("play|pause");
if(this.pause){
this.pause = false;
img.src = 'imagens/pause.jpg';
img.title = 'Parar';
}
else{
this.pause = true;
img.src = 'imagens/play.jpg';
img.title = 'Continuar';
}
(typeof(this._timeOutID) == "number") ? clearTimeout(this._timeOutID) : void(0);
this._work();
}
}
//SlideShow-->
for(x in this._imagens)
Tá dificil de fazer funcionar. Na página onde é pra ficar, nem roda o código. Ao menos nas outras, funcionava legal.
Opa...
Funcionou o trem aqui...
Só que eu tive que tirar o lance da data.
Se eu quiser colocar mais informações para mostrar, é só adicionar no "_imagens" e criar um uma div com o ID referente (referenciando-a na parte _exchange?)?
Valeu!
Edição feita por: Webeverton, 06/10/2006, 09:28.