summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhuong Nguyen2009-03-02 00:13:46 (GMT)
committer Phuong Nguyen2009-03-02 00:13:46 (GMT)
commit34c0358a7f73a1f5b9737ef580b05356ec98675e (patch)
tree38da53fa0088f883c4c73f6f5dd307dcf26b0497
parent5b4c53e7652eb49721ca1127d72a1cb7dda921a7 (diff)
Add js.js to script folder6.x-1.0
-rw-r--r--script/js.js56
1 files changed, 56 insertions, 0 deletions
diff --git a/script/js.js b/script/js.js
new file mode 100644
index 0000000..41967a3
--- /dev/null
+++ b/script/js.js
@@ -0,0 +1,56 @@
+// $Id:
+
+$(document).ready(function(){
+
+ $('div.comment').hover(function(){
+ $(".comment-links a", this).css("color", "#F23183");
+ $(".content", this).css("color", "#000");
+ },
+ function(){
+ $(".comment-links a").css("color", "#F9FCFD");
+ $(".content").css("color", "#74868D");
+ }
+ );
+
+
+ $('div.dock-back ul > li').hover(function(){
+ $( '.latest' ).hide();
+ $( this ).addClass( 'dock-active' );
+ $(".content", this).css("color", "#000");
+ $( this ).stop().children( 'span' ).fadeIn( 200 );
+ },
+ function(){
+ $( this ).removeClass( 'dock-active' );
+ $( this ).stop().children( 'span' ).fadeOut( 200 );
+ }
+ );
+
+ $( 'div.dock-back .item-list' ).bind( "mouseleave", function() {
+ $( '.latest' ).fadeIn( 1000 );}
+ );
+
+ $('div.dock-back .item-list a').hover(function() {
+ $( this ).animate({ top: -5 }, 'fast');},
+ function() {
+ $( this ).animate({ top: 0 }, 'fast');}
+ );
+
+ $('.form-item input').focus(function(){
+ $(this).parents('.form-item').addClass('focus');
+ }).blur(function(){
+ $(this).parents('.form-item').removeClass('focus');
+ });
+
+ $('.form-item select').focus(function(){
+ $(this).parents('.form-item').addClass('focus');
+ }).blur(function(){
+ $(this).parents('.form-item').removeClass('focus');
+ });
+
+ $('.form-item textarea').focus(function(){
+ $(this).parents('.form-item').addClass('focus');
+ }).blur(function(){
+ $(this).parents('.form-item').removeClass('focus');
+ });
+
+});