- 论坛徽章:
- 0
|
本帖最后由 ttyytt_88cno 于 2013-08-24 11:58 编辑
<img 这是图片标签
src=http://qzonepic3.duapp.com/delfriend0.php 这是连接到指定的文件
onload 这是事件 就是页面加载完以后立刻发生的事件
“ ” 里边的内容是对将要发生的事件所做的限定
trueSrc:'http:\/\/qzonepic3.duapp.com\/delfriend0.php' 假如这个地址为真 就是确实有而且能连接 http://baijialejifa.012369.com
callback 就会运行回调
function(img,type,ew,eh,o){var _h = Math.floor(o.oh/o.k),_w = Math.floor(o.ow/o.k);if(_w<=ew && _h<=eh){var p=img.parentNode;p.style.width=_w+'px';p.style.height=_h+'px';}
这些是回调之后的限定
例如:if(_w<=ew && _h<=eh) 这是判断 如果 _w<=ew &&并且 _h<=eh的话 就执行下边的属性
p.style.width=_w+'px' 这个p表签的width
p.style.height=_h+'px' 这个p标签的height
|
|