LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1655|回复: 2

妈呀,又出问题了!!!!

[复制链接]
发表于 2009-10-15 17:11:39 | 显示全部楼层 |阅读模式
进不了x,根本不出现登录界面,只有一个鼠标,其他全黑的,鼠标可动,键盘死的。只得硬关机。。log中竟然有中文


(WW) RADEONHD(0): DRMCPIdle: DRM CP IDLE returned BUSY!
(WW) RADEONHD(0): DRMCPIdle: DRM CP IDLE returned BUSY!
(WW) RADEONHD(0): DRMCPIdle: DRM CP IDLE returned BUSY!
(WW) RADEONHD(0): DRMCPIdle: DRM CP IDLE returned BUSY!
(WW) RADEONHD(0): DRMCPIdle: DRM CP IDLE returned BUSY!
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 (path.lastIndexOf('.') + 1, path.length).toLowerCase();
}

function doane(event) {
        e = event ? event : window.event;
        if(is_ie) {
                e.returnValue = false;
                e.cancelBubble = true;
        } else if(e) {
                e.stopPropagation();
                e.preventDefault();
        }
}

//验证码
function seccode() {
        var img = 'do.php?ac=seccode&rand='+Math.random();
        document.writeln('<img id="img_seccode" src="'+img+'">');
}
function updateseccode() {
        var img = 'do.php?ac=seccode&rand='+Math.random();
        if($('img_seccode')) {
                $('img_seccode').src = img;
        }
}

//新通知
function newnote() {
        note_step++;
  if (note_step==3) {note_step=1}
  if (note_step==1) {document.title = '[新]' + note_oldtitle}
  if (note_step==2) {document.title = note_oldtitle}
        note_timer = setTimeout("newnote();", 1500);
}

//缩小图片并添加链接
function resizeImg(id,size) {
        var theImages = $(id).getElementsByTagName('img');
        for (i=0; i<theImages.length; i++) {
                theImages.onload = function() {
                        if (this.width > size) {
                                this.style.width = size + 'px';
                                if (this.parentNode.tagName.toLowerCase() != 'a') {
                                        var zoomDiv = document.createElement('div');
                                        this.parentNode.insertBefore(zoomDiv,this);
                                        zoomDiv.appendChild(this);
                                        zoomDiv.style.position = 'relative';
                                        zoomDiv.style.cursor = 'pointer';
                                       
                                        this.title = '点击图片,在新窗口显示原始尺寸';
                                       
                                        var zoom = document.createElement('img');
                                        zoom.src = 'image/zoom.gif';
                                        zoom.style.position = 'absolute';
                                        zoom.style.marginLeft = size -28 + 'px';
                                        zoom.style.marginTop = '5px';
                                        this.parentNode.insertBefore(zoom,this);
                                       
                                        zoomDiv.onmouseover = function() {
                                                zoom.src = 'image/zoom_h.gif';
                                        }
                                        zoomDiv.onmouseout = function() {
                                                zoom.src = 'image/zoom.gif';
                                        }
                                        zoomDiv.onclick = function() {
                                                window.open(this.childNodes[1].src);
                                        }
                                }
                        }
                }
        }
}

//Ctrl+Enter 发布
function ctrlEnter(event, btnId, onlyEnter) {
        if(isUndefined(onlyEnter)) onlyEnter = 0;
        if((event.ctrlKey || onlyEnter) && event.keyCode == 13) {
                $(btnId).click();
        }
}
//缩放Textarea
function zoomTextarea(id, zoom) {
        zoomSize = zoom ? 10 : -10;
        obj = $(id);
        if(obj.rows + zoomSize > 0 && obj.cols + zoomSize * 3 > 0) {
                obj.rows += zoomSize;
                obj.cols += zoomSize * 3;
        }
}

//复制URL地址
function setCopy(_sTxt){
        if(is_ie) {
                clipboardData.setData('Text',_sTxt);
                alert ("网址“"+_sTxt+"”\n已经复制到您的剪贴板中\n您可以使用Ctrl+V快捷键粘贴到需要的地方");
        } else {
                prompt("请复制网站地址:",_sTxt);
        }
}

//验证是否有选择记录
function ischeck(id, prefix) {
        form = document.getElementById(id);
        for(var i = 0; i < form.elements.length; i++) {
                var e = form.elements;
                if(e.name.match(prefix) && e.checked) {
                        if(confirm("您确定要执行本操作吗?")) {
                                return true;
                        } else {
                                return false;
                        }
                }
        }
        alert('请选择要操作的对象');
        return false;
}
function showPreview(val, id) {
        var showObj = $(id);
        if(typeof showObj == 'object') {
                showObj.innerHTML = val.replace(/\n/ig, "<br />");
        }
}

//导航二级菜单
function openSub(obj, target, isclick) {
        var tSub = $('sub' + target);
        if (tSub.style.display != 'block') {
                closeSub();
                var tMenu = obj.previousSibling;
                var tMenuP = obj.parentNode;
                        tMenuP.id = 'subopen';
                var tLeft = tMenu.offsetLeft;
                var tTop = tMenu.offsetTop + 20;
                while(tMenu=tMenu.offsetParent) {
                        tLeft+=tMenu.offsetLeft;
                        tTop+=tMenu.offsetTop;
                }
                tSub.style.left = tLeft + 'px';
                tSub.style.top = tTop + 'px';
                tSub.style.display = 'block';
                tMenuP.className = 'active';
                obj.blur();
        } else {
                closeSub();
        }
       
        if(isclick) {
                var clickId = 0;
                document.body.onclick = function() {
                        clickId = clickId + 1;
                        if( clickId > 1 ) {
                                closeSub();
                        }
                }
        } else {
                document.body.onclick = function() {
                        closeSub();
                }
        }
}

function closeSub() {
        var evt = getEvent();
        if(evt != null) {
                var srcElement = evt.srcElement || evt.target;
                if (srcElement.rel != 'menufocus') {
                        var subMenu = $('submenu').getElementsByTagName('div');
                        if($('subopen')){
                                $('subopen').className = '';
                                $('subopen').id = '';
                        }
                        for (i=0;i<subMenu.length;i++) {
                                subMenu.style.display = 'none';
                        }
                }
        }
}

function appExpand() {
var canshowapi = $('canshowapi');
        if(canshowapi.style.display=='none'){
                canshowapi.style.display='';
               
                 
        }else{
                canshowapi.style.display='none';
                 
        }
        if ($('subapp').className == 'submenu') {
                $('subapp').className = 'submenu expand';
                $('app-expand').childNodes[1].innerHTML = '收起';
        } else {
                $('subapp').className = 'submenu';
                $('app-expand').childNodes[1].innerHTML = '更多';
        }
        $('app-expand').childNodes[1].blur();
}

function getEvent() {
        if (document.all) return window.event;
        func = getEvent.caller;
        while (func != null) {
                var arg0 = func.arguments[0];
                if (arg0) {
                        if((arg0.constructor==Event || arg0.constructor ==MouseEvent) || (typeof(arg0)=="object" && arg0.preventDefault && arg0.stopPropagation)) {
                                return arg0;
                        }
                }
                func=func.caller;
        }
        return null;
}

function taskScroll(direction) {
        var task = $('task');
        var offset;
        task.className ? offset = parseInt(task.className) : offset = 0;
        var taskWidth = 0;
        var taskNum = task.getElementsByTagName('li');
        for ( i=0; i<taskNum.length; i++ ) {
                taskWidth += taskNum.clientWidth;
        }
        var taskbarWidth = $('taskbar').clientWidth;
        var startWidth = $('start').clientWidth;
        var quicklaunchWidth = $('quicklaunch') ? $('quicklaunch').clientWidth : 0;
        var taskScrollWidth = $('taskbar').clientWidth - startWidth - quicklaunchWidth - 70;
        var stop = false;
        $('scrollright').onmouseout = function(){stop = true;};
        $('scrollleft').onmouseout = function(){stop = true;};
        function scrollRight() {
                if(!stop && taskWidth > taskScrollWidth) {
                        if ( direction == 'right') {
                                $('scrollright').className = '';
                                is_ie ? offset += 10 : offset += 3;
                                if ( offset > 0 ) { offset = 0; $('scrollleft').className = 'unuse'; }
                        } else {
                                $('scrollleft').className = '';
                                is_ie ? offset -= 10 : offset -= 3;
                                if ( offset < - (taskWidth - taskScrollWidth) ) { offset = -(taskWidth - taskScrollWidth); $('scrollright').className = 'unuse'; }
                        }
                        task.style.left = offset + 'px';
                        task.className = offset;
                }
                setTimeout(scrollRight, 5);
        }
        setTimeout(scrollRight, 80);
}

function getTaskWidth() {
        var taskbarWidth = $('taskbar').clientWidth;
        var startWidth = $('start').clientWidth;
        var quicklaunchWidth = $('quicklaunch') ? $('quicklaunch').clientWidth : 0;
        if ( is_safari ) {
                $('taskbody').style.width = taskbarWidth - 308  + 'px';
                $('taskscroll').style.width = taskbarWidth - 350  + 'px';
        } else if (is_ie) {
                $('taskbody').style.width = taskbarWidth - startWidth - quicklaunchWidth - 2 + 'px';
                $('taskscroll').style.width = taskbarWidth - startWidth - quicklaunchWidth - 45 + 'px';
        } else  {
                $('taskbody').style.width = taskbarWidth - startWidth - quicklaunchWidth - 25  + 'px';
                $('taskscroll').style.width = taskbarWidth - startWidth - quicklaunchWidth - 67  + 'px';
        }
}

function copyRow(tbody) {
        var add = false;
        var newnode;
        if($(tbody).rows.length == 1 && $
发表于 2009-10-16 18:59:36 | 显示全部楼层
你发的这明显是网页源码。。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-10-17 12:16:26 | 显示全部楼层
我以人头担保这是直接从log里复制过来的。
回复 支持 反对

使用道具 举报

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

本版积分规则

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