You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

sidebar.js 1.8 kB

11 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /* =================================================
  2. //
  3. // jQuery Fixed Plugins 1.3.1
  4. // author :
  5. // Url:
  6. // Data : 2012-03-30
  7. //
  8. // ²ÎÊý : float --> Ðü¸¡·½Ïò[left or right]
  9. // minStatue --> ×îС״̬£¬ֻÓÐshow_btn
  10. // skin --> Ƥ·ô¿ØÖÆ
  11. // durationTime --> Íê³Éʱ¼ä
  12. //ÊÂÀý :
  13. $("#scrollsidebar2").fix({
  14. float : 'right', //default.left or right
  15. minStatue : true, //default.false or true
  16. skin : 'green', //default.gray or yellow ¡¢blue ¡¢green ¡¢orange ¡¢white
  17. durationTime : 1000 //
  18. });
  19. //
  20. // =================================================*/
  21. ;(function($){
  22. $.fn.fix = function(options){
  23. var defaults = {
  24. float : 'left',
  25. minStatue : false,
  26. skin : 'blue',
  27. durationTime : 1000
  28. }
  29. var options = $.extend(defaults, options);
  30. this.each(function(){
  31. //»ñȡ¶ÔÏó
  32. var thisBox = $(this),
  33. closeBtn = thisBox.find('.close_btn' ),
  34. show_btn = thisBox.find('.show_btn' ),
  35. sideContent = thisBox.find('.side_content'),
  36. sideList = thisBox.find('.side_list')
  37. ;
  38. var defaultTop = thisBox.offset().top; //¶ÔÏóµÄĬÈÏtop
  39. thisBox.css(options.float, 0);
  40. if(options.minStatue){
  41. $(".show_btn").css("float", options.float);
  42. sideContent.css('width', 0);
  43. show_btn.css('width', 25);
  44. }
  45. //closeʼþ
  46. closeBtn.bind("click",function(){
  47. sideContent.animate({width: '0px'},"fast");
  48. show_btn.stop(true, true).delay(300).animate({ width: '25px'},"fast");
  49. });
  50. //showʼþ
  51. show_btn.click(function() {
  52. $(this).animate({width: '0px'},"fast");
  53. sideContent.stop(true, true).delay(200).animate({ width: '154px'},"fast");
  54. });
  55. }); //end this.each
  56. };
  57. })(jQuery);

软件技术创新是当今国家整体创新能力的重要基础和发展引擎。近年来,大众参与的软件创新与创业活动已经成为网络时代软件开发和应用的新形态,正在快速改变着全球软件创新模式和软件产业格局。 ...