好东西仿Vista窗体

这是在网上看到的,然后改了一下!
很好调用!!!!

<SCRIPT src="_Window.js" type=text/javascript></SCRIPT>  窗体类
<SCRIPT  src="index.js" type=text/javascript>  //包含一写函数
 
var _windows = new Array();
 
_windows["Welcome"] = { name:"欢迎光临", features:"width=380,height=-1", painted:false, object:null, x:335, y:parseInt(Math.random() * 300) };  
 
Init(); //初始化
 
OpenText("Welcome");  //显示 Welcome 这个窗体

 

例如:一个页面

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<!-- saved from url=(0023)http://www.fonshen.com/ -->
<HTML 
xmlns="http://www.w3.org/1999/xhtml"><HEAD>
 
<META http-equiv=Content-Type c>
<LINK  href="index.css" type=text/css rel=stylesheet>
<LINK  href="_Window.css" type=text/css rel=stylesheet>
<SCRIPT src="_Window.js" 
type=text/javascript></SCRIPT>
<META c name=GENERATOR></HEAD>
<BODY>
<DIV id=Data style="DISPLAY:block">
<DIV id=Works>
<UL>
  <LI><A href="javascript:OpenText('loading');">风声 ASP 无组件上传类</A></LI></UL>
</DIV>
</DIV>
 
<DIV id=loading style="visibility:hidden">
<table align=center cellpadding=0 cellspacing=0 >
<tr align="center">
<td>正在读取数据......</td>
</tr>
<tr>
<td></td>
</tr>
<tr align="center">
<td><img src="images/progressbar_green.gif"</td>
</tr>
</table>
</DIV>
 
<SCRIPT  src="index.js" type=text/javascript>
 
</SCRIPT>
</BODY></HTML>

<!--------------------index.js --------------------------->

 

_windows["loading"] = { name:"loading......", features:"width=300,height=-1", painted:false, object:null, x:335, y:parseInt(Math.random() * 300) };
 
OpenText("loading");
posted @ 2008-07-02 12:48  superfang  阅读(634)  评论(5编辑  收藏  举报