front_idill/src/mosaic/js/pointers.js
changeset 112 58ba3ae2d3d9
parent 100 db42ef1faa7a
--- a/front_idill/src/mosaic/js/pointers.js	Fri Sep 21 16:13:20 2012 +0200
+++ b/front_idill/src/mosaic/js/pointers.js	Sat Sep 22 14:28:35 2012 +0200
@@ -1201,11 +1201,11 @@
 	//Si on est sur la première page, on cache la flèche haut.
 	if(this.creditsPageNumber == 0)
 	{
-		$('#credits_upArrow').css(
+		$('#credits_upArrow, #credits_upArrow_mask').css(
 		{
 			opacity: 0
 		});
-		$('#credits_downArrow').css(
+		$('#credits_downArrow, #credits_downArrow_mask').css(
 		{
 			opacity: 1
 		});
@@ -1218,11 +1218,11 @@
 	//Si on est sur la dernière page, on cache la flèche bas.
 	else if(this.creditsPageNumber + 1 >= this.creditsPageLength)
 	{
-		$('#credits_upArrow').css(
+		$('#credits_upArrow, #credits_upArrow_mask').css(
 		{
 			opacity: 1
 		});
-		$('#credits_downArrow').css(
+		$('#credits_downArrow, #credits_downArrow_mask').css(
 		{
 			opacity: 0
 		});
@@ -1235,11 +1235,11 @@
 	//Si on est dans les autres pages, on affiche les deux flèches.
 	else
 	{
-		$('#credits_upArrow').css(
+		$('#credits_upArrow, #credits_upArrow_mask').css(
 		{
 			opacity: 1
 		});
-		$('#credits_downArrow').css(
+		$('#credits_downArrow, #credits_downArrow_mask').css(
 		{
 			opacity: 1
 		});
@@ -1249,11 +1249,11 @@
 			height: notify_credits.height() - footer_height - 2 * arrowHeight - margin
 		});
 	}
-	
+	//console.log('in');
 	//On déplace le texte des crédits.
 	$('#credits_container').css(
 	{
-		left: -($('#credits_container').width() * N - parseInt(notify_credits.css('margin-left')))// + this.column_gap)
+		top: -(($('#credits_container').height() - 2 * $('.credits_arrows').height()) * N - parseInt(notify_credits.css('margin-left')))// + this.column_gap)
 	});
 }