复制代码 代码如下:
<html>
<head>
<title>新浪的图片新闻效果</title>
<metahttp-equiv="Content-Type"content="text/html;charset=gb2312">
</head>
<bodybgcolor="#FFFFFF"text="#000000">
<p></p>
<p>
<scriptlanguage=javascript>
//-------定义图片路径等参数-------------//
//定义大图的路径,
varbigPic0="http://image2.sina.com.cn/book/U1503P167T135D1F4549DT20060629223845.jpg";
varbigPic1="http://image2.sina.com.cn/book/U1503P167T135D1F4552DT20060629223845.jpg";
varbigPic2="http://image2.sina.com.cn/book/U1396P167T135D1F4555DT20060629141338.jpg";
varbigPic3="http://image2.sina.com.cn/book/U1396P167T135D1F4558DT20060628170108.jpg";
//小图路径
varsmallPic0="http://image2.sina.com.cn/book/U1503P167T135D1F4548DT20060629223845.jpg";
varsmallPic1="http://image2.sina.com.cn/book/U1503P167T135D1F4551DT20060629223845.jpg";
varsmallPic2="http://image2.sina.com.cn/book/U1396P167T135D1F4554DT20060629141338.jpg";
varsmallPic3="http://image2.sina.com.cn/book/U1396P167T135D1F4557DT20060628170108.jpg";
//大图的点击后的URL
varPicURL0="http://www.jb51.net";
varPicURL1="http://www.jb51.net";
varPicURL2="http://www.jb51.net";
varPicURL3="http://www.jb51.net";
//标题
vart0="搞笑节目《玩转世界杯》第9期:情陷解说门";
vart1="音频:黄健翔激情解说搞笑版大全";
vart2="PlayGirl(网络宝贝)X计划";
vart3="《Memory》爱情是一个迷";
//描述
vardescribe0="小马派出密探零零发前往德国世界杯现场,调查“解说门”事件真相……";
vardescribe1="黄健翔是公认的中国足球评论员第一人;他,曾骄傲地宣称自己的解说就是行业标准……";
vardescribe2="你也能成为聚万千艳羡于一身的游戏MM,PlayGirlX计划,将你打造成游戏巅峰最耀眼的明星。";
vardescribe3="怎样的爱情可以真实地握在手中?这样的爱情是真实还是虚幻?";
//
vart=t0+"[|]"+t1+"[|]"+t2+"[|]"+t3;
varbigPicURL=bigPic0+"[|]"+bigPic1+"[|]"+bigPic2+"[|]"+bigPic3;
varsmallPicURL=smallPic0+"[|]"+smallPic1+"[|]"+smallPic2+"[|]"+smallPic3;
varPicURL=PicURL0+"[|]"+PicURL1+"[|]"+PicURL2+"[|]"+PicURL3;
vardescribe=describe0+"[|]"+describe1+"[|]"+describe2+"[|]"+describe3;
//
document.write("
<objectclassid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000'codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0'width='535'height='356'ID=FSCommandNAME='focus_one'align='middle'>
<paramname='allowScriptAccess'value='sameDomain'/>
<paramname='movie'value='http://www.jb51.net/demo/flash/bnfocus.swf'/>
<paramname='FlashVars'value='bigPicURL="+bigPicURL+"&smallPicURL="+smallPicURL+"&t="+t+"&PicURL="+PicURL+"&describe="+describe+"'/>
<paramname='quality'value='high'/>
<paramname='bgcolor'value='#ffffff'/>
<embedsrc='http://www.jb51.net/demo/flash/bnfocus.swf'FlashVars='bigPicURL="+bigPicURL+"&smallPicURL="+smallPicURL+"&t="+t+"&PicURL="+PicURL+"&describe="+describe+"'quality='high'bgcolor='#ffffff'width='535'height='356'name='focus'swLiveConnect='true'align='middle'allowScriptAccess='sameDomain'type='application/x-shockwave-flash'pluginspage='http://www.macromedia.com/go/getflashplayer'/>
</object>
");
</script>
</body>
</html>
由于编辑器的问题,每个>后面都有个空格,可以删掉就可以了
给个正确的吧 看这个就知道了