<!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=gb2312" />
<title>百度mp3右侧弹性伸缩广告代码</title>
</head>
<body style="text-align:center"><table id=rightad cellspacing=0 cellpadding=0 width="18%" align=right
border=0><script>
if(window.screen.width<=800)
{
if(mastring==""){document.getelementbyid("rightad").style.paddingtop="65px"}
else{document.getelementbyid("rightad").style.paddingtop="155px"}
}
</script><tbody>
<tr>
<td width=190>
<div id=ad_fd style="overflow: hidden; width: 175px; height: 180px"></div>
<script type=text/网页特效>
var bd = bd || {};bd.asp教程 = bd.asp || {};bd.asp.t5s = {};
bd.asp.t5s.dopen = 0;
bd.asp.t5s.jdata = [];bd.asp.t5s.jdata.push(eval('(' + '<!-- m-start -->{"flash1":"images/01-s.jpg","flash2":"images/01-b.jpg","flashurl":"#","monitorurl":"#"}<!-- m-end -->'.replace("<!-- m-start -->","").replace("<!-- m-end -->","") + ')'));
bd.asp.t5s.jdata.push(eval('(' + '<!-- m-start -->{"flash1":"images/02-s.swf","flash2":"images/02-b.swf","flashurl":"#","monitorurl":"#"}<!-- m-end -->'.replace("<!-- m-start -->","").replace("<!-- m-end -->","") + ')'));
bd.asp.t5s.jdata.push(eval('(' + '<!-- m-start -->{"flash1":"images/03-s.swf","flash2":"images/03-b.swf","flashurl":"#","monitorurl":"#"}<!-- m-end -->'.replace("<!-- m-start -->","").replace("<!-- m-end -->","") + ')'));
bd.asp.t5s.jdata.push(eval('(' + '<!-- m-start -->{"flash1":"images/04-s.swf","flash2":"images/04-b.swf","flashurl":"#","monitorurl":"#"}<!-- m-end -->'.replace("<!-- m-start -->","").replace("<!-- m-end -->","") + ')'));
bd.asp.t5s.registerflash = function(){
return "bd.asp.t5s.mp3";
}
bd.asp.t5s.getheight = function(type){
var height = 0;
var l = bd.asp.t5s.jdata.length;
if( type ){
height = (l-1)*90+20+300;
}else{
height = l*75+20+(l-1)*15;
}
return height;
}
bd.asp.t5s.mp3 = {
"setdata" : function(){
var xmlstr = "<data open='" + bd.asp.t5s.dopen + "'>";
var j = bd.asp.t5s.jdata.length;
for(var i = 0; i < j; i++){
xmlstr += "<a small='" + bd.asp.t5s.jdata[i].flash1 + "' big='" + bd.asp.t5s.jdata[i].flash2 + "' url='" + bd.asp.t5s.jdata[i].flashurl + "'/>";
}
xmlstr += "</data> ";
return xmlstr;
},
"setflashpos" : function(event){
event = event || window.event;
try{
bd.asp.t5s.mp3.thismovie("bd_asp_t5s_mp3flash").getposi(event.clienty-290+document.body.scrolltop);
}catch(ex){
//
}
},
"thismovie" : function(moviename) {
if (navigator.appname.indexof("microsoft") != -1) {
return window[moviename]
}else {
return document[moviename]
}
},
"onrollover" : function(n){
flash = window["bd_asp_t5s_mp3flash"]||document["bd_asp_t5s_mp3flash"];
flash.height = bd.asp.t5s.getheight(1);
document.getelementbyid('bd_asp_t5s_monitor').src = bd.asp.t5s.jdata[n].monitorurl;
}
}
if (window.addeventlistener) {
document.addeventlistener('mousemove',bd.asp.t5s.mp3.setflashpos,false);
}else{
document.attachevent('onmousemove',bd.asp.t5s.mp3.setflashpos);
}
</script><script src="js/t5s.js" type=text/javascript></script>
<iframe id=bd_asp_t5s_monitor style="display: none"
name=bd_asp_t5s_monitor src="javascript:void(0)"></iframe>
<div id=bd_asp_t5s
style="border-right: #ccc 1px solid; border-top: #ccc 1px solid; margin-bottom: 10px; border-left: #ccc 1px solid; width: 185px; border-bottom: #ccc 1px solid">
<script type=text/javascript>
bd.asp.t5s.createflash("bd_asp_t5s_mp3flash","flash/sidead.swf",185,bd.asp.t5s.getheight(bd.asp.t5s.dopen));
</script>
</div>
<br></td></tr></tbody></table>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p><p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
</body>
</html>
源码下载
http://down.111cn.net/down/code/js/jiaodiantu/2010/1105/21648.html
效果预览
http://g.111cn.net/javascript/code/20101105/baidu