Author: booz@rezo.net
Date: Wed Jul 26 15:02:53 2006
New Revision: 4222
Log:
ca commence a ressembler a quelque chose, youpi
Modified:
_plugins_/splickrbox/splickrbox.js
Modified: _plugins_/splickrbox/splickrbox.js
--- _plugins_/splickrbox/splickrbox.js (original)
+++ _plugins_/splickrbox/splickrbox.js Wed Jul 26 15:02:53 2006
@@ -11,10 +11,8 @@
cptj =0;
max = $("td.image img").size();
-
//il faudrait essayer ce plugin .pause()
// http://www.mythin.net/pause.js
-// et essayer de redemmarer le slide show apres la derniere image
start();
@@ -28,39 +25,79 @@
$.fn.splicker = function(i) {
+$("div#changeMe").css({
+width: "70px",
+height: "70px"
+});
image = this.get(i).cloneNode(true) ;
+image.style.width="100%";
+image.style.height="100%";
+
href = this.get(i).parentNode.href;
+
$("div#changeMe").append(image);
+
$("div#changeMe img").wrap("<a href=\""+href+"\">","</a>").click(function(){showLightbox(href);});
-$("div#changeMe img").showCustom("slow",70);
+
+if(i%3 == 0){
+$("div#changeMe").css("left","35px");
+ll1="70";
+}
+if(i%3 == 1){
+$("div#changeMe").css("left","35px");
+ll1="35";
+}
+if(i%3 == 2){
+$("div#changeMe").css("left","0px");
+ll1="0";
+}
+
if(i>=0 && i<=2){
$("div#changeMe").css("top","70px");
+tt1="105";
}
if(i>=3 && i<=5){
$("div#changeMe").css("top","35px");
+tt1="70";
+
}
if(i>=6 && i<=8){
$("div#changeMe").css("top","0px");
+tt1="35";
+}
+if(i>=9 && i<=11){
+$("div#changeMe").css("top","0px");
+tt1="0";
}
-setTimeout('$("div#changeMe img").hide_propre();start()',5000);
+tt0 = $("div#changeMe").get(0).style.top;
+ll0 = $("div#changeMe").get(0).style.left;
+tt0 = tt0.replace(/px/,"");
+ll0 = ll0.replace(/px/,"");
-}
+$("#statusMsg").html(tt0+'->'+ll0);
+
+$("div#changeMe").fadeIn(2000);
+
+setTimeout('$("div#changeMe").resize_(1500,35,'+tt0+','+tt1+','+ll0+','+ll1+');',4000);
+
+setTimeout('itere();$("div#changeMe img").remove();start()',7000);
-$.fn.hide_propre = function() {
-this.hide("slow", function(){
- $(this).remove();
- });
-if(cptj == max-1){ cptj=0 ;}else{ cptj++ ;}
-//$("#statusMsg").html(cptj+"=?"+max);
}
-$.fn.showCustom = function(a,w,o) {
+$.fn.resize_ = function(a,w,t0,t1,l0,l1,o) {
o = $.speed(a,o);
return this.each(function(){
-(new fx.Opacity(this,o)).show();
-(new fx.Width(this,o)).custom(0,w);
-(new fx.Height(this,o)).custom(0,w);
+(new fx.Top(this,o)).custom(t0,t1);
+(new fx.Left(this,o)).custom(l0,l1);
+(new fx.Width(this,o)).custom(70,w);
+(new fx.Height(this,o)).custom(70,w);
});
};
\ No newline at end of file
+
+
+function itere () {
+if(cptj == max-1){ cptj=0 ;}else{ cptj++ ;}
+$("#statusMsg").html("it"+cptj+"=?"+max);
+};
\ No newline at end of file