Difference between revisions of "Team:Tuebingen/Art and Design"

Line 37: Line 37:
 
slots.push(div);
 
slots.push(div);
 
carousel.appendChild(div);
 
carousel.appendChild(div);
 
+
}
 
var left = document.createElement('div');
 
var left = document.createElement('div');
 
left.style.cssText = 'position:absolute;top:0px;bottom:0px;left:0px;right:50%;z-index:100;cursor:pointer;';
 
left.style.cssText = 'position:absolute;top:0px;bottom:0px;left:0px;right:50%;z-index:100;cursor:pointer;';
Line 47: Line 47:
 
right.onmouseover = function() {this.interval = window.setInterval('rotateCarousel(10)',1000);};
 
right.onmouseover = function() {this.interval = window.setInterval('rotateCarousel(10)',1000);};
 
carousel.appendChild(right);
 
carousel.appendChild(right);
}
 
 
slotPos = [315,0,45,90,135,180,225,270]
 
slotPos = [315,0,45,90,135,180,225,270]
 
/*slots[0].style.display = 'block';
 
/*slots[0].style.display = 'block';

Revision as of 16:49, 18 September 2015

<
>