返回   CHF站长论坛 > 特色讨论区 > vBulletin 交流专栏

vBulletin 交流专栏 vBulletin 是一个强大,灵活并可完全根据自己的需要定制的论坛程序。[官方]

双至强仅二千,企商在线,最早租用商 魔兽世界私服 魔兽世界私服 亿恩1元帮您升级服务器! 天龙八部私服 完美世界私服 新开传奇私服
传奇私服 热血江湖私服 仙境私服 天龙八部私服 魔域私服 魔域私服 新开传奇私服 魔域私服 传奇私服
发表新主题 回复
 
主题工具 主题评分 显示模式
旧 2005-11-01, 14:38   #16 (页面定位)
yeshou
 
yeshou 的头像
 
注册日期: 2005-09-06
帖子: 7033
yeshou 有着人尽皆知的贡献和荣耀yeshou 有着人尽皆知的贡献和荣耀yeshou 有着人尽皆知的贡献和荣耀yeshou 有着人尽皆知的贡献和荣耀yeshou 有着人尽皆知的贡献和荣耀yeshou 有着人尽皆知的贡献和荣耀yeshou 有着人尽皆知的贡献和荣耀yeshou 有着人尽皆知的贡献和荣耀yeshou 有着人尽皆知的贡献和荣耀yeshou 有着人尽皆知的贡献和荣耀yeshou 有着人尽皆知的贡献和荣耀
默认

读书人的事怎么能算偷呢 你就是不读书 所以才会偷

引用:
作者: 不学无术
wm_chief 你可能只使用 IE 吧,多款浏览器下都会如此——不过感觉 IE 频率较高——我自己的程序在 IE 下面经常不相应。

另外,to yeshou:光看书有屁用,只有会偷才会用。你说是不是?


这家伙太懒,什么也没留下
yeshou 当前离线   回复时引用此帖
旧 2005-11-01, 14:40   #17 (页面定位)
不学无术
Ulysses 的元神
 
不学无术 的头像
 
注册日期: 2005-08-31
住址: 冥王星
帖子: 13985
不学无术 有着人尽皆知的贡献和荣耀不学无术 有着人尽皆知的贡献和荣耀不学无术 有着人尽皆知的贡献和荣耀不学无术 有着人尽皆知的贡献和荣耀不学无术 有着人尽皆知的贡献和荣耀不学无术 有着人尽皆知的贡献和荣耀不学无术 有着人尽皆知的贡献和荣耀不学无术 有着人尽皆知的贡献和荣耀不学无术 有着人尽皆知的贡献和荣耀不学无术 有着人尽皆知的贡献和荣耀不学无术 有着人尽皆知的贡献和荣耀
默认

引用:
作者: yeshou
读书人的事怎么能算偷呢 你就是不读书 所以才会偷
我……
不学无术 当前离线   回复时引用此帖
旧 2005-11-01, 14:40   #18 (页面定位)
jcking
 
jcking 的头像
 
注册日期: 2005-08-30
住址: 地球
帖子: 21626
jcking 有着人尽皆知的贡献和荣耀jcking 有着人尽皆知的贡献和荣耀jcking 有着人尽皆知的贡献和荣耀jcking 有着人尽皆知的贡献和荣耀jcking 有着人尽皆知的贡献和荣耀jcking 有着人尽皆知的贡献和荣耀jcking 有着人尽皆知的贡献和荣耀jcking 有着人尽皆知的贡献和荣耀jcking 有着人尽皆知的贡献和荣耀jcking 有着人尽皆知的贡献和荣耀jcking 有着人尽皆知的贡献和荣耀
默认

不能报警抓人的都不算是偷.


引用:
我女儿
MSN:cngdmm@hotmail.com.
jcking 当前离线   回复时引用此帖
旧 2005-11-01, 14:40   #19 (页面定位)
wm_chief©
 
wm_chief 的头像
 
注册日期: 2005-09-05
帖子: 17800
wm_chief 有着人尽皆知的贡献和荣耀wm_chief 有着人尽皆知的贡献和荣耀wm_chief 有着人尽皆知的贡献和荣耀wm_chief 有着人尽皆知的贡献和荣耀wm_chief 有着人尽皆知的贡献和荣耀wm_chief 有着人尽皆知的贡献和荣耀wm_chief 有着人尽皆知的贡献和荣耀wm_chief 有着人尽皆知的贡献和荣耀wm_chief 有着人尽皆知的贡献和荣耀wm_chief 有着人尽皆知的贡献和荣耀wm_chief 有着人尽皆知的贡献和荣耀
默认

引用:
作者: yeshou
读书人的事怎么能算偷呢 你就是不读书 所以才会偷
你个孔以已
wm_chief 当前离线   回复时引用此帖
旧 2005-11-01, 14:42   #20 (页面定位)
jcking
 
jcking 的头像
 
注册日期: 2005-08-30
住址: 地球
帖子: 21626
jcking 有着人尽皆知的贡献和荣耀jcking 有着人尽皆知的贡献和荣耀jcking 有着人尽皆知的贡献和荣耀jcking 有着人尽皆知的贡献和荣耀jcking 有着人尽皆知的贡献和荣耀jcking 有着人尽皆知的贡献和荣耀jcking 有着人尽皆知的贡献和荣耀jcking 有着人尽皆知的贡献和荣耀jcking 有着人尽皆知的贡献和荣耀jcking 有着人尽皆知的贡献和荣耀jcking 有着人尽皆知的贡献和荣耀
默认

你是孝子


引用:
我女儿
MSN:cngdmm@hotmail.com.
jcking 当前离线   回复时引用此帖
旧 2005-11-01, 16:09   #21 (页面定位)
不学无术
Ulysses 的元神
 
不学无术 的头像
 
注册日期: 2005-08-31
住址: 冥王星
帖子: 13985
不学无术 有着人尽皆知的贡献和荣耀不学无术 有着人尽皆知的贡献和荣耀不学无术 有着人尽皆知的贡献和荣耀不学无术 有着人尽皆知的贡献和荣耀不学无术 有着人尽皆知的贡献和荣耀不学无术 有着人尽皆知的贡献和荣耀不学无术 有着人尽皆知的贡献和荣耀不学无术 有着人尽皆知的贡献和荣耀不学无术 有着人尽皆知的贡献和荣耀不学无术 有着人尽皆知的贡献和荣耀不学无术 有着人尽皆知的贡献和荣耀
默认

找到了。

PHP 代码:
// #############################################################################
// vB_AJAX_TitleEdit
// #############################################################################

/**
* Class to handle thread title editing with XML-HTTP
*
* @param    object    The <td> containing the title element
*/
function vB_AJAX_TitleEdit(obj)
{
    
this.obj obj;
    
this.threadid this.obj.id.substr(this.obj.id.lastIndexOf('_') + 1);
    
this.linkobj fetch_object('thread_title_' this.threadid);
    
this.container this.linkobj.parentNode;
    
this.editobj null;
    
this.xml_sender null;

    
this.origtitle '';
    
this.editstate false;
    
    
// =============================================================================
    // vB_AJAX_TitleEdit methods

    /**
    * Function to initialize the editor for a thread title
    */
    
this.edit = function()
    {
        if (
this.editstate == false)
        {
            
// create the new editor input box properties...
            
this.inputobj document.createElement('input');
            
this.inputobj.type 'text';
            
this.inputobj.size 50;
            
this.inputobj.maxLength 85;
            
this.inputobj.style.width Math.max(this.linkobj.offsetWidth250) + 'px';
            
this.inputobj.className 'bginput';
            
this.inputobj.value PHP.unhtmlspecialchars(this.linkobj.innerHTML);
            
this.inputobj.title this.inputobj.value;

            
// ... and event handlers
            
this.inputobj.onblur vB_AJAX_ThreadList_Events.prototype.titleinput_onblur;
            
this.inputobj.onkeypress vB_AJAX_ThreadList_Events.prototype.titleinput_onkeypress;

            
// insert the editor box and select it
            
this.editobj this.container.insertBefore(this.inputobjthis.linkobj);
            
this.editobj.select();

            
// store the original text
            
this.origtitle this.linkobj.innerHTML;

            
// hide the link object
            
this.linkobj.style.display 'none';

            
// declare that we are in an editing state
            
this.editstate true;
        }
    }

    
/**
    * Function to restore a thread title in the editing state
    */
    
this.restore = function()
    {
        if (
this.editstate == true)
        {
            
// do we actually need to save?
            
if (this.editobj.value != this.origtitle)
            {
                
this.linkobj.innerHTML PHP.htmlspecialchars(this.editobj.value);
                
this.save(this.editobj.value);
            }
            else
            {
                
// set the new contents for the link
                
this.linkobj.innerHTML this.editobj.value;
            }

            
// remove the editor box
            
this.container.removeChild(this.editobj);

            
// un-hide the link
            
this.linkobj.style.display '';

            
// declare that we are in a normal state
            
this.editstate false;
            
this.obj null;
        }
    }

    
/**
    * Function to save an edited thread title
    *
    * @param    string    Edited title text
    *
    * @return    string    Validated title text
    */
    
this.save = function(titletext)
    {
        
this.xml_sender = new vB_AJAX_Handler(true);
        
this.xml_sender.onreadystatechange(this.onreadystatechange);
        
this.xml_sender.send('ajax.php''do=updatethreadtitle&t=' this.threadid '&title=' PHP.urlencode(titletext));
    }

    var 
me this;

    
/**
    * OnReadyStateChange callback. Uses a closure to keep state.
    * Remember to use me instead of this inside this function!
    */
    
this.onreadystatechange = function()
    {
        if (
me.xml_sender.handler.readyState == && me.xml_sender.handler.status == 200 && me.xml_sender.handler.responseText)
        {
            
me.linkobj.innerHTML me.xml_sender.handler.responseText;
            
            if (
is_ie)
            {
                
me.xml_sender.handler.abort();
            }
            
            
vB_ThreadTitle_Editor.obj null;
        }
    }

    
// start the editor
    
this.edit();


此帖于 2005-11-01 16:11 被 不学无术 编辑.
不学无术 当前离线   回复时引用此帖
旧 2005-11-01, 16:10   #22 (页面定位)
jcking
 
jcking 的头像
 
注册日期: 2005-08-30
住址: 地球
帖子: 21626
jcking 有着人尽皆知的贡献和荣耀jcking 有着人尽皆知的贡献和荣耀jcking 有着人尽皆知的贡献和荣耀jcking 有着人尽皆知的贡献和荣耀jcking 有着人尽皆知的贡献和荣耀jcking 有着人尽皆知的贡献和荣耀jcking 有着人尽皆知的贡献和荣耀jcking 有着人尽皆知的贡献和荣耀jcking 有着人尽皆知的贡献和荣耀jcking 有着人尽皆知的贡献和荣耀jcking 有着人尽皆知的贡献和荣耀
默认

恭喜你找到了。


引用:
我女儿
MSN:cngdmm@hotmail.com.
jcking 当前离线   回复时引用此帖
旧 2005-11-01, 16:11   #23 (页面定位)
yeshou
 
yeshou 的头像
 
注册日期: 2005-09-06
帖子: 7033
yeshou 有着人尽皆知的贡献和荣耀yeshou 有着人尽皆知的贡献和荣耀yeshou 有着人尽皆知的贡献和荣耀yeshou 有着人尽皆知的贡献和荣耀yeshou 有着人尽皆知的贡献和荣耀yeshou 有着人尽皆知的贡献和荣耀yeshou 有着人尽皆知的贡献和荣耀yeshou 有着人尽皆知的贡献和荣耀yeshou 有着人尽皆知的贡献和荣耀yeshou 有着人尽皆知的贡献和荣耀yeshou 有着人尽皆知的贡献和荣耀
默认

不高亮 看不懂


这家伙太懒,什么也没留下
yeshou 当前离线   回复时引用此帖
旧 2005-11-01, 16:11   #24 (页面定位)
不学无术
Ulysses 的元神
 
不学无术 的头像
 
注册日期: 2005-08-31
住址: 冥王星
帖子: 13985
不学无术 有着人尽皆知的贡献和荣耀不学无术 有着人尽皆知的贡献和荣耀不学无术 有着人尽皆知的贡献和荣耀不学无术 有着人尽皆知的贡献和荣耀不学无术 有着人尽皆知的贡献和荣耀不学无术 有着人尽皆知的贡献和荣耀不学无术 有着人尽皆知的贡献和荣耀不学无术 有着人尽皆知的贡献和荣耀不学无术 有着人尽皆知的贡献和荣耀不学无术 有着人尽皆知的贡献和荣耀不学无术 有着人尽皆知的贡献和荣耀
默认

引用:
作者: jcking
恭喜你找到了。
BSU。像你这样灌水,这论坛没办法管理了。
不学无术 当前离线   回复时引用此帖
旧 2005-11-01, 16:12   #25 (页面定位)
jcking
 
jcking 的头像
 
注册日期: 2005-08-30
住址: 地球
帖子: 21626
jcking 有着人尽皆知的贡献和荣耀jcking 有着人尽皆知的贡献和荣耀jcking 有着人尽皆知的贡献和荣耀jcking 有着人尽皆知的贡献和荣耀jcking 有着人尽皆知的贡献和荣耀jcking 有着人尽皆知的贡献和荣耀jcking 有着人尽皆知的贡献和荣耀jcking 有着人尽皆知的贡献和荣耀jcking 有着人尽皆知的贡献和荣耀jcking 有着人尽皆知的贡献和荣耀jcking 有着人尽皆知的贡献和荣耀
默认

引用:
作者: 不学无术
BSU。像你这样灌水,这论坛没办法管理了。
为什么总是说我灌水.不说别人的,我不活了.


引用:
我女儿
MSN:cngdmm@hotmail.com.
jcking 当前离线   回复时引用此帖
旧 2005-11-01, 16:12   #26 (页面定位)
不学无术
Ulysses 的元神
 
不学无术 的头像
 
注册日期: 2005-08-31
住址: 冥王星
帖子: 13985
不学无术 有着人尽皆知的贡献和荣耀不学无术 有着人尽皆知的贡献和荣耀不学无术 有着人尽皆知的贡献和荣耀不学无术 有着人尽皆知的贡献和荣耀不学无术 有着人尽皆知的贡献和荣耀不学无术 有着人尽皆知的贡献和荣耀不学无术 有着人尽皆知的贡献和荣耀不学无术 有着人尽皆知的贡献和荣耀不学无术 有着人尽皆知的贡献和荣耀不学无术 有着人尽皆知的贡献和荣耀不学无术 有着人尽皆知的贡献和荣耀
默认

引用:
作者: yeshou
不高亮 看不懂
看不懂拉到,不过看思路和我的一样。

只是 vB 中都写成类了,我还不会
不学无术 当前离线   回复时引用此帖
旧 2005-11-01, 16:13   #27 (页面定位)
yeshou
 
yeshou 的头像
 
注册日期: 2005-09-06
帖子: 7033
yeshou 有着人尽皆知的贡献和荣耀yeshou 有着人尽皆知的贡献和荣耀yeshou 有着人尽皆知的贡献和荣耀yeshou 有着人尽皆知的贡献和荣耀yeshou 有着人尽皆知的贡献和荣耀yeshou 有着人尽皆知的贡献和荣耀yeshou 有着人尽皆知的贡献和荣耀yeshou 有着人尽皆知的贡献和荣耀yeshou 有着人尽皆知的贡献和荣耀yeshou 有着人尽皆知的贡献和荣耀yeshou 有着人尽皆知的贡献和荣耀
默认

现在看懂了

引用:
作者: 不学无术
看不懂拉到,不过看思路和我的一样。

只是 vB 中都写成类了,我还不会


这家伙太懒,什么也没留下
yeshou 当前离线   回复时引用此帖
旧 2005-11-01, 18:48   #28 (页面定位)
木偶
 
木偶 的头像
 
注册日期: 2005-09-11
帖子: 273
木偶 是普普通通的会员
默认

这个测试不了~~~


就算我牵了,我还能牵一头驴来啊??!!
木偶 当前离线   回复时引用此帖
旧 2005-11-01, 19:25   #29 (页面定位)