Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[已解决] Discuz X3.2 日历选择不出现选择器的解决方案

[复制链接]
柳拂之 发表于 2014-6-11 21:52:43 | 显示全部楼层 |阅读模式
本文转载于,转载请注明出处:Discuz X3.2 日历选择不出现选择器的解决方案http://www.discuzlab.com/thread-13050-1-1.html

修改方法,打开文件static/js/calendar.js

搜索
游客,如果您要查看本帖隐藏内容请回复


在任意的一个上面加入
  1. function showcalendar(event, controlid1, addtime1, startdate1, enddate1, halfhour1, recall) {
  2.         controlid = controlid1;
  3.         addtime = addtime1;
  4.         startdate = startdate1 ? parsedate(startdate1) : false;
  5.         enddate = enddate1 ? parsedate(enddate1) : false;
  6.         currday = controlid.value ? parsedate(controlid.value) : today;
  7.         hh = currday.getHours();
  8.         ii = currday.getMinutes();
  9.         halfhour = halfhour1 ? true : false;
  10.         calendarrecall = recall ? recall : null;
  11.         var p = fetchOffset(controlid);
  12.         $('calendar').style.display = 'block';
  13.         $('calendar').style.left = p['left']+'px';
  14.         $('calendar').style.top        = (p['top'] + 20)+'px';
  15.         doane(event);
  16.         refreshcalendar(currday.getFullYear(), currday.getMonth());
  17.         if(lastcheckedyear != false) {
  18.                 $('calendar_year_' + lastcheckedyear).className = 'calendar_default';
  19.                 $('calendar_year_' + today.getFullYear()).className = 'calendar_today';
  20.         }
  21.         if(lastcheckedmonth != false) {
  22.                 $('calendar_month_' + lastcheckedmonth).className = 'calendar_default';
  23.                 $('calendar_month_' + (today.getMonth() + 1)).className = 'calendar_today';
  24.         }
  25.         $('calendar_year_' + currday.getFullYear()).className = 'calendar_checked';
  26.         $('calendar_month_' + (currday.getMonth() + 1)).className = 'calendar_checked';
  27.         $('hourminute').style.display = addtime ? '' : 'none';
  28.         lastcheckedyear = currday.getFullYear();
  29.         lastcheckedmonth = currday.getMonth() + 1;
  30.         if(halfhour) {
  31.                 $('halfhourselector').style.display = '';
  32.                 $('fullhourselector').style.display = 'none';
  33.         } else {
  34.                 $('halfhourselector').style.display = 'none';
  35.                 $('fullhourselector').style.display = '';
  36.         }
  37.         if(BROWSER.ie && BROWSER.ie < 7) {
  38.                 $('calendariframe').style.top = $('calendar').style.top;
  39.                 $('calendariframe').style.left = $('calendar').style.left;
  40.                 $('calendariframe').style.width = $('calendar').offsetWidth;
  41.                 $('calendariframe').style.height = $('calendar').offsetHeight;
  42.                 $('calendariframe').style.display = 'block';
  43.         }
  44.         initclosecalendar();
  45. }
复制代码


保存覆盖即可

本文由科站网首发,转载请注明出处!

评分

1

查看全部评分

 楼主| 柳拂之 发表于 2014-6-11 21:52:55 | 显示全部楼层
沙发位自己站
回复

使用道具 举报

allthebest 发表于 2014-6-11 22:42:51 | 显示全部楼层
谢谢分享啊
回复

使用道具 举报

798165121 发表于 2014-6-12 04:48:13 | 显示全部楼层
想问问楼主站收录几万,权重1是怎么做到的
回复

使用道具 举报

jmid 发表于 2014-6-12 16:00:04 | 显示全部楼层
gggggggggggggggggggggggggggggg
回复

使用道具 举报

丹丹1 发表于 2014-6-12 17:22:27 | 显示全部楼层
开开心心每一天哦
回复

使用道具 举报

dayedaye90 发表于 2014-6-13 01:22:56 | 显示全部楼层
谢谢分享啊
回复

使用道具 举报

seeker908 发表于 2014-6-13 08:45:15 | 显示全部楼层
谢谢提供解决方法
回复

使用道具 举报

stonys 发表于 2014-6-13 08:47:44 | 显示全部楼层
纳尼?貌似很给力的样子!!...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-9-28 09:31 , Processed in 0.847364 second(s), 20 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表