|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
Java伴随着互联网的迅猛发展而发展,逐渐成为重要的网络编程语言。Oracle收购Sun后Java前途未卜。<HTML><HEAD><TITLE>都会女孩社区</TITLE>
<METAhttp-equiv=Content-Typecontent=text/html;charset=gb2312>
<LINKhref="scrool.CSS"type=text/cssrel=stylesheet>
<styletype="text/css">
.navPoint
{
COLOR:#444444;CURSOR:hand;FONT-FAMILY:Webdings;FONT-SIZE:9pt
}
</style>
<scriptlanguage=javascript>
functionGetQueryvalue(sorStr,panStr)
{
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
CopyRight:收集无限公司Joysos.Com
Description:在javascript内完成QueryString
CreatDate:2004-02-28
AuthorName::WuMeibowumeibo@joysos.com
LastUpdate:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
varvStr="";
if(sorStr==null||sorStr==""||panStr==null||panStr=="")returnvStr;
sorStr=sorStr.toLowerCase();
panStr+="=";
varitmp=sorStr.indexOf(panStr);
if(itmp<0){returnvStr;}
sorStr=sorStr.substr(itmp+panStr.length);
itmp=sorStr.indexOf("&");
if(itmp<0)
{
returnsorStr;
}
else
{
sorStr=sorStr.substr(0,itmp);
returnsorStr;
}
}
functionLoadFrame()
{
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
CopyRight:收集无限公司Joysos.Com
Description:依据QueryString静态加载右边框架
CreatDate:2004-02-28
AuthorName::WuMeibowumeibo@joysos.com
LastUpdate:Bywumeibo2003-03-09
url参数变动增添能够链就任意文章
和论坛且左边导航条可依据参数变更
注:
url参数lefttree优先权最高
其次为topic
再次为forum
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
varurl="main.htm?";
varstrGetQuery=document.location.search;
//依据forum参数加载指定的论坛到右边框架;
varforum=GetQueryvalue(strGetQuery,forum);
//依据forum参数加载指定的文章到右边框架;
vartopic=GetQueryvalue(strGetQuery,topic);
//依据forum参数加载指定的导航条坛到右边框架;
varlefttree=GetQueryvalue(strGetQuery,lefttree);
if(lefttree.toUpperCase()!="DJ")
{
//革新左边导航条为都会女孩;
tree.location.href="index/index.files/111.htm";
}
else
{//革新左边导航条为DJ年夜同盟;
tree.location.href="index/index.files/222.htm";
}
url="main.htm?forum="+forum+"&topic="+topic;
ZhuFrame.location.href=url;
}
</script>
<script>
if(self!=top)
{
top.location=self.location;
}
functionswitchSysBar()
{//两头点击按钮的笔墨变更
if(switchPoint.innerText=="3")
{
switchPoint.innerText="4"
document.all("frmTitle").style.display="none"
}
else
{
switchPoint.innerText="3"
document.all("frmTitle").style.display=""
}
}
</script>
</HEAD>
<!--利用按钮把持导航菜单的显现与封闭,这部分代码临时中断事情2004-03-03by武眉博wumeibo@joysos.com
<FRAMESETname=fstMainonload="LoadFrame()"cols=130,*>
<FRAMEborder=1name=treesrc="index/index.files/111.htm"
frameBorder=autonoResizetarget="_self">
<FRAMEname=ZhuFrameid=ZhuFrameborderColor=#000000
frameBorder=autotarget="_self"></FRAMESET><noframes></noframes>
-->
<bodystyle="MARGIN:0px"scroll=noonResize=javascript:parent.tree.location.reload()onload="LoadFrame()"topmargin=0>
<tableborder="0"cellPadding="0"cellSpacing="0"height="100%"width="100%">
<tr>
<tdwidth="140"align="left"vAlign="center"noWrapid="frmTitle"name="frmTitle">
<iframeframeBorder="1"name="tree"scrolling=autosrc="index/index.files/111.htm"style="HEIGHT:100%;VISIBILITY:inherit;WIDTH:140px;Z-INDEX:2">
</iframe></td>
<tdstyle="WIDTH:8pt">
<tableborder="0"cellPadding="0"cellSpacing="0"height="100%"bgcolor=#CCCCCC>
<tr>
<tdstyle="HEIGHT:100%"onclick="switchSysBar()">
<fontstyle="FONT-SIZE:9pt;CURSOR:#000000;COLOR:#666666">
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<spanclass="navPoint"id="switchPoint"title="封闭/翻开导航栏">3</span><br>
<br>
<br>
<br>
<br>
<br>
</font></td>
</tr>
</table>
</td>
<tdstyle="WIDTH:100%">
<iframeframeBorder="0"name="ZhuFrame"scrolling="yes"src=../../main.htmstyle="HEIGHT:100%;VISIBILITY:inherit;WIDTH:100%;Z-INDEX:1">
</iframe>
</td>
</tr>
</table>
</html>
<script>
if(window.screen.width<1024)
{
//假如客户端显现器分辩率(宽)小与1024象素,则埋没左边导航;
switchSysBar();
}
</script>
在ruby里才是一切皆对象。当然我不并不是很了解ruby,但是ruby确实是将语法简化得很好。 |
|