| 特效代码集 |
|
作者:野汉子 文章来源:im286 点击数: 更新时间:2004-8-25 14:33:51  |
|
电击图片弹出无边自定义窗口
| Code: |
[Copy to clipboard] |
| <a href="#"><img src="image/tx.gif" alt="更换头像" width="16" height="16" hspace=10 border=0 onClick="MM_openBrWindow('tx.htm','tx','status=yes,scrollbars=yes,width=280,height=45')"></a> | | 无边框对话框窗口可以在myie中弹出
| Code: |
[Copy to clipboard] |
<script Language="javascript"> function 页面名称(WINwidth, WINheight) { showx = event.screenX - event.offsetX - 4 - WINwidth ; // + deltaX; showy = event.screenY - event.offsetY + 18; // + deltaY;
newWINwidth = WINwidth + 4 + 18; var features = 'dialogWidth:' + newWINwidth + 'px;' + 'dialogHeight:' + WINheight + 'px;' + 'dialogLeft:' + showx + 'px;' + 'dialogTop:' + showy + 'px;' + 'directories:no; localtion:no; menubar:no; status=no; toolbar=no;scrollbars:no;Resizeable=no';
var endtarget = "弹出页面.htm";
// window.open(endtarget, '', ''); window.showModalDialog(endtarget, " ", features); } </script> | |
| Code: |
[Copy to clipboard] |
| <input name="image" type=image onClick="页面名称(230, 35);return false;" src="代替按扭的图片.gif" alt="鼠标经过显示的文字" width="16" height="16" > | |
上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] ... 下一页 >> |
| 文章录入:admin 责任编辑:admin |
|
上一篇文章: 真正页面无刷新调用数据原理
下一篇文章: JS广告代码大集合 |
| 【字体:小 大】【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口】 |