canvi imatge inici automatic, falta acabar d'ajustar q sigui suau
idoctnef idoctnef@openmailbox.org
Tue, 07 Jun 2016 16:42:44 +0200
13 files changed,
12 insertions(+),
1 deletions(-)
jump to
M
index.html
→
index.html
@@ -22,7 +22,7 @@ <![endif]-->
</head> <body onload='OnLoadIndex();'> <div class='own-container'> - <img class='own-indexBackgroundImage' src='imatges/mainBackground.jpg' /> + <img id='backgroundImage' class='own-indexBackgroundImage' src='imatges/mainBackground.jpg' /> <div class='own-lang own-whiteText'> <a href="#">CAT</a> <a href='#'>CAST</a>
M
index.js
→
index.js
@@ -15,6 +15,15 @@ }
function OnLoadIndex(){ OnLoadDefault(); + var numImg=0; + setInterval(function(){ + document.getElementById("backgroundImage").src="imatges/background/background"+numImg+".jpg"; + numImg++; + if(numImg>9) + { + numImg=0; + } + }, 5000); } function OnLoadNosaltres(){ OnLoadDefault();