我的用cols判断的:
if(top.document.all("fstMain").cols== "20,150,*")另外最好不要这样写"0,10,80%"应该写成"0,10,*"
if(top.document.all("fstMain").cols== "20,150,*")另外最好不要这样写"0,10,80%"应该写成"0,10,*"
解决方案 »
- 怎么样使用js实现类似淘宝首页那样的层切换效果?
- js prompt()函数
- 求教一个问题
- 把extjs4.2 desktop 窗口最大化动画效果移植到extjs4.1 中
- (100分)关于网络安全一个对大家都很有意义的问题!网站后台如何获得来访客户端的唯一标识符,例如网卡Mac地址??
- Google地图API大家在网页上用过没有?我研究了一下,果然很Cool
- 如何实现图片滚动by javascript
- 请问在text下方显示list的东东怎么做的
- 使用execCommand("CreateLink")建立的超级链接如何加入target
- javascrpt计算时间差!
- 菜鸟请教:如何点击一个链接使当前单元格背景换个图片?
- 请教:网页超时问题!
<!--
function change()
{
if(zuo.style.display=="none")
{
zuo.style.display="";
dot.innerText="<<"; }
else
{
zuo.style.display="none";
dot.innerText=">>";
}
}
//-->
</SCRIPT>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="400" style="font-size:12px">
<tr>
<td width="200" valign="top" bgcolor="#FF9966" id="zuo"> </td>
<td width="10" align="center" bgcolor="#FFCC00" style="cursor:hand" onclick="change();" id="dot"><<</td>
<td valign="top" bgcolor="#669900"> </td>
</tr>
</table>
var u=str.indexOf("/");
var new_str=str.substring(0,u);我原本是用这几句来取类似http://www.sina.com.cn/这样的地址,结果只得到了http:继续想怎么得到第三个“/”符号之前的字符数。
<!--
function switchSysBar()
{
//
//获取页面路径
//
var path = "";
var href = document.location.href;
var s = href.split("/");
for (var i=2;i<(s.length-1);i++) {
path+=s[i]+"/";
}
i=s.length-1;
path=s[1]+s[2];
var url = window.location.protocol + "//" + path+"/";
if (top.document.all("fstMain").cols = "166,10,*")
{
switchPoint.src=url+"images/ArrowRight.gif";
top.document.all("fstMain").cols = "0,10,*";
}
else
{
switchPoint.src=url+"images/ArrowLeft.gif";
top.document.all("fstMain").cols = "166,10,*";
}
}
-->
</SCRIPT>