test/emission_fichiers/rollover.js
branchnew-model
changeset 882 61c384dda19e
parent 881 f11b234497f7
child 883 d35ad8111c5e
--- a/test/emission_fichiers/rollover.js	Fri Apr 27 19:18:21 2012 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,29 +0,0 @@
-  $(document).ready(function(){  
-    
-	    $('.rollover').hover(function(){
-        if($(this).attr("src").indexOf("-hover") == -1) {
-			var newSrc = $(this).attr("src").replace(".png","-hover.png");
-			$(this).attr("src",newSrc);}},
-	function(){
-            if($(this).attr("src").indexOf("-hover.png") != -1) {
-					var oldSrc = $(this).attr("src").replace("-hover.png",".png");
-					$(this).attr("src",oldSrc);}
-                                        });
-            
-            $('input[type="text"]').addClass("idleField");  
-            $('form:not([id="user-profile-form"]) input[type="text"]').focus(function() {
-        $(this).removeClass("idleField").addClass("focusField");  
-        if (this.value == this.defaultValue){  
-            this.value = '';  
-         }
-        if(this.value != this.defaultValue){  
-            this.select();  
-        }  
-    });  
-    $('input[type="text"]').blur(function() {  
-        $(this).removeClass("focusField").addClass("idleField");  
-        if (this.value == ''){  
-            this.value = (this.defaultValue ? this.defaultValue : '');  
-        }  
-    });   
-});