arnaucube
arnaucube/ivardiawebPublic Self-hosted repository
canvi imatge inici automatic, falta acabar d'ajustar q sigui suau
idoctnef idoctnef@openmailbox.org
Tue, 07 Jun 2016 16:42:44 +0200
commit

0ae2c68b1cf30b1670ce2cedd56032c8e34295ae

parent

aea03785b6b0e3f2242c3c546fe447eff824a566

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();
M own.css → own.css

@@ -35,6 +35,7 @@ z-index: -1;

position: fixed; left: 0px; top: 0px; + } }

@@ -46,6 +47,7 @@ z-index: -1;

position: fixed; left: 0px; top: 0px; + } } .own-langIndex{