// jscript 文件 function topad() { var strtopad=""; //定义小图片内容 var topsmallbanner=""; //判断在那些页面上显示大图变小图效果,非这些地址只显示小图(或flash) if (location == "#" || location == "#" || location == "#" || true) { //定义大图内容 strtopad="
"; } else { //strtopad+=topflash; strtopad+= topsmallbanner; } strtopad+=""; return strtopad; } document.write(topad()); $(function(){ //过两秒显示 showimage(); 内容 settimeout("showimage();",4000); //alert(location); }); function showimage() { $("#adbig").slideup(1000,function(){$("#adsmall").slidedown(1000);}); }