canvi imatge inici automatic, falta acabar d'ajustar q sigui suau
BIN
imatges/background/background0.jpg
Normal file
|
After Width: | Height: | Size: 1.2 MiB |
BIN
imatges/background/background1.jpg
Normal file
|
After Width: | Height: | Size: 1.0 MiB |
BIN
imatges/background/background2.jpg
Normal file
|
After Width: | Height: | Size: 968 KiB |
BIN
imatges/background/background3.jpg
Normal file
|
After Width: | Height: | Size: 1.1 MiB |
BIN
imatges/background/background4.jpg
Normal file
|
After Width: | Height: | Size: 1.1 MiB |
BIN
imatges/background/background5.jpg
Normal file
|
After Width: | Height: | Size: 1.5 MiB |
BIN
imatges/background/background6.jpg
Normal file
|
After Width: | Height: | Size: 959 KiB |
BIN
imatges/background/background7.jpg
Normal file
|
After Width: | Height: | Size: 1.0 MiB |
BIN
imatges/background/background8.jpg
Normal file
|
After Width: | Height: | Size: 1.8 MiB |
BIN
imatges/background/background9.jpg
Normal file
|
After Width: | Height: | Size: 1.2 MiB |
@@ -22,7 +22,7 @@
|
||||
</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>
|
||||
|
||||
9
index.js
@@ -15,6 +15,15 @@ function OnLoadDefault(){
|
||||
|
||||
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();
|
||||
|
||||