会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
我本无名
菩提本无树,明镜亦非台。本来无一物,何处惹尘埃。
博客园
首页
博问
闪存
新随笔
订阅
管理
一个不错的,JavaScript代码,显示首页图片幻灯片效果
<
script type
=
"
text/javascript
"
>
<!--
var
interval_time
=
4
;
var
focus_width
=
320
;
var
focus_height
=
228
;
var
text_height
=
30
;
var
text_mtop
=
0
;
var
text_lm
=
0
;
var
textmargin
=
text_mtop
+
"
|
"
+
text_lm;
var
textcolor
=
"
#ff0000|0x000000
"
;
var
text_align
=
'
center
'
;
var
swf_height
=
focus_height
+
text_height
+
text_mtop;
var
borderStyle
=
"
0|0xaeaeae|0
"
;
var
pics
=
'
http://localhost:100/UserFiles/UpLoad/20080428134618_thum.JPG|http://localhost:100/UserFiles/UpLoad/20080408161603_thum.JPG|http://localhost:100/UserFiles/UpLoad/20080408161418_thum.JPG|http://localhost:100/UserFiles/UpLoad/20061130143626_thum.JPG|http://localhost:100/UserFiles/UpLoad/20061130143626_thum.JPG|http://localhost:100/UserFiles/UpLoad/20061130143626_thum.JPG
'
;
var
links
=
'
/Article/View.aspx?id=6390|/Article/View.aspx?id=2717|/Article/View.aspx?id=2688|/Article/View.aspx?id=5696|/Article/View.aspx?id=5695|/Article/View.aspx?id=5694
'
;
var
texts
=
'
全省房地产开发工作座谈会召开|全省廉租住房保障工作会议召开|关于加强廉租住房质量管理的通知|小产权房的走向是一种博弈|2008年黑龙江省实施十大惠民工程|“经济租赁房”写进政府工作报告
'
;
/**/
/**/
/**/
/*
var pics=' http://www.hljjs.gov.cn/UserFiles/Image/8(3).JPG|http://www.hljjs.gov.cn/UserFiles/Image/5(2).JPG|http://www.hljjs.gov.cn/UserFiles/Image/01(4).JPG|http://www.hljjs.gov.cn/UserFiles/Image/6(2).JPG|http://www.hljjs.gov.cn/UserFiles/Image/2(7).JPG';
var links=' http://www.hljjs.gov.cn/shownews2.aspx?NewsID=242|http://www.hljjs.gov.cn/shownews2.aspx?NewsID=242|http://www.hljjs.gov.cn/shownews2.aspx?NewsID=242|http://www.hljjs.gov.cn/shownews2.aspx?NewsID=242|http://www.hljjs.gov.cn/shownews2.aspx?NewsID=242';
var texts='全省建筑业工作会议在大庆市召开|厅建管处副处长李志传达全国建设工作会议有关精神|全省建筑业工作会议在大庆市召开|中法合作既有建筑节能改造总结会|省建设厅副厅长庄严做重要讲话';
*/
document.write(
'
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="
'
+
focus_width
+
'
" height="
'
+
swf_height
+
'
">
'
);
document.write(
'
<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="http://mat1.qq.com/2008/flash/hot.swf"> <param name="quality" value="high"><param name="bgcolor" value="#ffffff">
'
);
document.write(
'
<param name="menu" value="false"><param name=wmode value="transparent">
'
);
document.write(
'
<param name="FlashVars" value="pics=
'
+
pics
+
'
&links=
'
+
links
+
'
&texts=
'
+
texts
+
'
&borderwidth=
'
+
focus_width
+
'
&borderheight=
'
+
focus_height
+
'
&textheight=
'
+
text_height
+
'
&textmargin=
'
+
textmargin
+
'
&textcolor=
'
+
textcolor
+
'
&borderstyle=
'
+
borderStyle
+
'
&text_align=
'
+
text_align
+
'
&interval_time=
'
+
interval_time
+
'
">
'
);
document.write(
'
<embed src="http://mat1.qq.com/2008/flash/hot.swf" wmode="transparent" FlashVars="pics=
'
+
pics
+
'
&links=
'
+
links
+
'
&texts=
'
+
texts
+
'
&borderwidth=
'
+
focus_width
+
'
&borderheight=
'
+
focus_height
+
'
&textheight=
'
+
text_height
+
'
&textmargin=
'
+
textmargin
+
'
&textcolor=
'
+
textcolor
+
'
&borderstyle=
'
+
borderStyle
+
'
&text_align=
'
+
text_align
+
'
&interval_time=
'
+
interval_time
+
'
" menu="false" bgcolor="#ffffff" quality="high" width="
'
+
focus_width
+
'
" height="
'
+
swf_height
+
'
" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
'
);
document.write(
'
</object>
'
);
//
-->
<
/
script>
posted on
2008-07-11 17:12
我本无名
阅读(
594
) 评论(
0
)
编辑
收藏
举报
会员力量,点亮园子希望
刷新页面
返回顶部