canvi imatge inici automatic, falta acabar d'ajustar q sigui suau

This commit is contained in:
idoctnef
2016-06-07 16:42:44 +02:00
parent aea03785b6
commit 0ae2c68b1c
13 changed files with 12 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 968 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 959 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

View File

@@ -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>

View File

@@ -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();

View File

@@ -35,6 +35,7 @@ a:active {
position: fixed;
left: 0px;
top: 0px;
}
}
@@ -46,6 +47,7 @@ a:active {
position: fixed;
left: 0px;
top: 0px;
}
}
.own-langIndex{