新做的焦点图js组件 focus1.js 用json传参 彭成刚

工作中总是用到焦点图组件 所以从写了下~~

谢谢大家对我的支持撒~~

 

使用说明:

head中插入

<script language="JavaScript" src="images/focus1js.js"></script>
<link href="images/focus1css.css" rel="stylesheet" type="text/css" />

 

body中插入

<script type="text/javascript">     
var focusOne = new focus1({
    objStr:"focusOne", //创建的对象明
    width:"358px", //框架宽度
    height:"216px", //框架高度
    oTemplate:"<a href='$picHref' target='_blank'><img src='$picSrc' width='358' height='216' border='0' /></a>",
    picSrcArr:[
     {picSrc:"images/jdt01.jpg",picHref:"http://g.tj.house.sina.com.cn/ditan/"},
     {picSrc:"images/jdt02.jpg",picHref:"http://tj.house.sina.com.cn/focus/2010Q1top/index.shtml"},
     {picSrc:"images/jdt03.jpg",picHref:"http://tj.house.sina.com.cn/focus/2010cjfjh/index.html"},
     {picSrc:"images/jdt04.jpg",picHref:"http://tj.house.sina.com.cn/focus/kft201003/index.shtml"}
     ]
    
});
</script>

 

下载:https://files.cnblogs.com/pengpengsay/focus1.rar

posted @ 2010-04-23 15:34  彭成刚  阅读(564)  评论(1编辑  收藏  举报