日期:2014-05-18  浏览次数:20807 次

20分,20分,也是分啊,请高手给扒一下一个网站的JS代码{有扒了一天也不行}
http://www.mobanku.com/css+div/5.asp

就是以上网站的,鼠标指向出现的层和加载图片的效果。扒了一天,也没有扒下来。

麻烦各位。好了立即给分。

------解决方案--------------------
http://www.mobanku.com/js/preview_templates.js
不就在这个文件里面么?
showtrail这个函数

------解决方案--------------------
把它里面的两个script脚本文件下载下来,修改掉preview_templates.js的class属性,我是把它给去掉了!
if( (navigator.userAgent.indexOf( "Konqueror ")==-1 || navigator.userAgent.indexOf( "Firefox ")!=-1 || (navigator.userAgent.indexOf( "Opera ")==-1 && navigator.appVersion.indexOf( "MSIE ")!=-1)) && (docwidth> 650 && docheight> 500)) function show(imagename,title,width,height)
可以对这个条件修改下


var docwidth=document.all? truebody().scrollLeft+truebody().clientWidth : pageXOffset+window.innerWidth - offsetfrommouse[0]
var docheight=document.all? Math.min(truebody().scrollHeight, truebody().clientHeight) :
Math.min(window.innerHeight)
if( (navigator.userAgent.indexOf( "Konqueror ")==-1 || navigator.userAgent.indexOf( "Firefox ")!=-1 || (navigator.userAgent.indexOf( "Opera ")==-1 && navigator.appVersion.indexOf( "MSIE ")!=-1)) && (docwidth> 650 && docheight> 500))
{

( width == 0 ) ? width = defaultimagewidth: ' ';
( height == 0 ) ? height = defaultimageheight: ' ';

width+=30
height+=55
defaultimageheight = height
defaultimagewidth = width

document.onmousemove=followmouse;


newHTML = ' <div style= "width: '+ width + 'px;height: '+ height + 'px "> <div id= "loader_container "> <div id= "loader "> <div align= "center "> Welcome to MobanKu.com... </div> <div id= "loader_bg "> <div id= "progress "> </div> </div> </div> </div> ';
newHTML = newHTML + ' <h2> ' + ' '+title + ' </h2> '

newHTML = newHTML + ' <div > <img onload= "javascript:remove_loading(); " src= " ' + imagename + ' " border= "0 "> </div> ';
newHTML = newHTML + ' </div> ';

if(navigator.userAgent.indexOf( "MSIE ")!=-1 && navigator.userAgent.indexOf( "Opera ")==-1 ){
newHTML = newHTML+ ' <iframe src= "about:blank " scrolling= "no " frameborder= "0 " width= " '+width+ ' " height= " '+height+ ' "> </iframe> ';
}

gettrailobjnostyle().innerHTML = newHTML;
gettrailobj().display= "block ";
}

}