global.js 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. $(function(){
  2. $(".regForm dd .tips").click(function(){
  3. $(this).siblings(".regForm dd .inputText").focus();
  4. });
  5. $(".regForm dd .inputText").focus(function(){
  6. $(this).siblings(".tips").css("color", "#CCC");
  7. });
  8. // ·Çie
  9. $(".regForm dd .inputText").bind("input", function(){
  10. var curVal = $(this).val();
  11. var label = $(this).siblings(".tips");
  12. if(curVal != "") {
  13. label.hide();
  14. }else{
  15. label.show();
  16. }
  17. });
  18. // ie
  19. $(".regForm dd .inputText").bind("propertychange", function(){
  20. var curVal = $(this).val();
  21. var label = $(this).siblings(".tips");
  22. if(curVal != "") {
  23. label.hide();
  24. }else{
  25. label.show();
  26. }
  27. });
  28. $(".regForm dd .inputText").blur(function(){
  29. var curVal = $(this).val();
  30. var label = $(this).siblings(".tips");
  31. if(curVal == "") {
  32. label.css("color", "#999");
  33. }
  34. });
  35. var zhemail = $("#zhemail").val();
  36. if(zhemail != "") {
  37. var label = $("#zhemail").siblings(".tips");
  38. label.hide();
  39. };
  40. var zhuser = $("#zhuser").val();
  41. if(zhuser != "") {
  42. var label = $("#zhuser").siblings(".tips");
  43. label.hide();
  44. };
  45. var zhanswer = $("#zhanswer").val();
  46. if(zhanswer != "") {
  47. var label = $("#zhanswer").siblings(".tips");
  48. label.hide();
  49. };
  50. $(".avtraLogin").hover(function () {
  51. $(this).addClass("avtraLoginCur").children(".loginInfoMenu").slideDown("fast");
  52. },
  53. function () {
  54. $(this).removeClass("avtraLoginCur").children(".loginInfoMenu").slideUp("fast")
  55. }
  56. );
  57. $(".openMore").click(function(){
  58. $(this).parent(".orderEntry").siblings(".orderMore").slideToggle()
  59. })
  60. })