<script type="text/javascript">
function showWindown(url,width,heigth) {
window.showModalDialog(url, null,'dialogWidth='+width+'px;dialogHeight='+heigth+'px;help:no;status:no')
}
</script>
<img alt="添加分类" src="Images/add.png" style="cursor: pointer;" onclick="javascript:showWindown('CoursewareSectionAdd.aspx?courseWareId=<%=CourseWareID%>',700,500);" />
function showWindown(url,width,heigth) {
window.showModalDialog(url, null,'dialogWidth='+width+'px;dialogHeight='+heigth+'px;help:no;status:no')
}
</script>
<img alt="添加分类" src="Images/add.png" style="cursor: pointer;" onclick="javascript:showWindown('CoursewareSectionAdd.aspx?courseWareId=<%=CourseWareID%>',700,500);" />

本文介绍了一个使用JavaScript实现的弹窗功能,该功能允许用户通过点击图标来打开一个用于添加分类的窗口。此方法通过定义一个名为showWindown的函数来创建一个具有指定宽度和高度的模态对话框。
1474

被折叠的 条评论
为什么被折叠?



