当前注册人数162855人 邮箱: 密码: 注册新用户 忘记密码
首页 C/C++/MFC C# ASP.NET VB.NET MATLAB   站内搜索 BBS讨论社区 下载代码说明/积分规则
为什么要注册?

1. 可以直接免费从本站下载代码,防止邮件发送不到您的邮箱,或登录不了国外网站

2. 可以设定关键字,当有您关心的代码收录时,邮件通知您

3. 对这里的代码进行评分和评论

4. 可以和大家一起分享你的源代码,得到更多的建议

Prototype Window

网页上最酷的弹出窗口(对话框)脚本源代码及示例

2008年01月02日
Javascript HTML XHTML
这是我所见过的最好看的网页窗口/对话框程序,它实现于标准的HTML页面,实现语言是Javascript。你可以把它用到ASP.NET,AJAX,Java等等所有网页上,支持的功能有:可以改变窗口大小、支持最小化、最大化窗口、模型对话框、渐入渐出的渐变效果,支持皮肤等等功能。现有的实例包括:模仿MAC OS的对话框,在对话框中打开一个网页,警告框,确认对话框,信息对话框,登录对话框,AJAX对话框等等。
相关知识

使用代码

<script type="text/javascript" src="/javascripts/prototype.js"> </script> 
<script type="text/javascript" src="/javascripts/window.js"> </script>
<link href="/stylesheets/themes/default.css" rel="stylesheet" type="text/css"/>
<!-- Add this to have a specific theme-->
<link href="themes/mac_os_x.css" rel="stylesheet" type="text/css"/>

下面的代码弹出一个对话框

win = new Window({className: "mac_os_x", title: "Sample", width:200, height:150, destroyOnClose: true, recenterAuto:false}); 
win.getContent().update("<h1>Hello world !!</h1>");
win.showCenter();

 

 

源代码原文下载:
Prototype Window This javascript class allows you to add window in a HTML page. This class is based on Prototype. The code is inspired by the powerful script.aculo.us library. You can even use all script.aculo.us effects to show and hide windows if you include effects.js file , but it's not mandatory. It has been tested on Safari, Camino, Firefox and IE6, Opera looks fine. * Valid HTML/XHTML generated code * Resizable windows * Minimize/Maximize * Modal dialogs * Visual effects * Skinnable * And more...

源码图片

从本站下载附件及源代码(1个附件,已经成功下载1157次)

最值得关注的外文源代码

Prototype Window
graybox-A pop-up window that doesn't suck
Lightbox/Modal window effect using CSS
Jason's Date Input Calendar
评论(评论是增加积分的一个有效途径)
字数在300字内
请如实评论
本源代码共评论216次,此处显示最近20次评论! 查看所有评论

IRyan  2010年08月30日
效果很不错
Rocca  2010年08月02日
不错不错不错不错
小丑鱼  2010年05月10日
谢谢
wwj  2010年05月09日
谢谢
jiajingang  2010年04月30日
很好,有这么强大的东东吗?
小草人  2010年04月15日
不错不错不错不错
盖茨  2010年03月21日
不错不错
lyl  2010年03月09日
不错不错
feilong0079  2010年01月07日
偶英文不好
darkhawk  2009年12月18日
非常好
huke  2009年09月09日
很不错
guangqq  2009年08月08日
很漂亮的,不错,
aber  2009年06月02日
很好 研究研究~
mudangel  2009年05月30日
谢谢,借鉴一下
亚一  2009年05月29日
强 值得学习
mmwang  2009年05月21日
值得学习
流浪河  2009年05月03日
效果是很好的 不过样式好像一般
okyle  2009年04月01日
不错,谢谢
xin36933  2009年03月31日
很好
  2009年03月22日
很好啊
字数在300字内
请如实评论
CopyRight (C) codesoso.com 2007-2009 All Rights Reserved   免责声明