You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.0 KiB

8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
  1. //http://placehold.it/1920x1080
  2. function OnLoadDefault(){
  3. $(document).ready(function(e) {
  4. $('#HTMLmenu').load('HTMLmenu.html',function(){
  5. //
  6. });
  7. });
  8. $(document).ready(function(e) {
  9. $('#HTMLfooter').load('HTMLfooter.html',function(){
  10. //
  11. });
  12. });
  13. }
  14. function OnLoadIndex(){
  15. OnLoadDefault();
  16. var numImg=0;
  17. setInterval(function(){
  18. document.getElementById("backgroundImage").src="imatges/background/background"+numImg+".jpg";
  19. numImg++;
  20. if(numImg>9)
  21. {
  22. numImg=0;
  23. }
  24. }, 5000);
  25. }
  26. function OnLoadNosaltres(){
  27. OnLoadDefault();
  28. setTimeout(function(){
  29. document.getElementsByClassName("own-menuButtons")[0].childNodes[3].className="own-currentPageMenu";
  30. }, 500);
  31. }
  32. function OnClickCampanyesDeSuport(){
  33. if(document.getElementById("desplegable").className=="own-desplegable")
  34. {
  35. document.getElementById("desplegable").className="own-desplegableAmagat";
  36. }else{
  37. document.getElementById("desplegable").className="own-desplegable";
  38. }
  39. }