<div id=div1 style="display:block;width=200;height=200;background:#222222;"></div>
<input type=button onclick=show()>
<script>
var showmode=true;
function show(){
showmode=(showmode)?false:true;
if(showmode){
div1.style.display='block';
}
else{
div1.style.display='none';
}
}
</script>
<input type=button onclick=show()>
<script>
var showmode=true;
function show(){
showmode=(showmode)?false:true;
if(showmode){
div1.style.display='block';
}
else{
div1.style.display='none';
}
}
</script>
解决方案 »
- 怎么能找出下面类型的url请求地址?
- 请问下 百度知道 登陆效果怎么做的
- 克隆出来的不同行tr里的radio怎么命名
- JQuery写的一个TAB菜单无法正常切换.
- 请帮忙修改成按顺序循环变换变景Javascript程序
- 弹出一个窗口,如何返回子窗口的值?
- 提交页面之后,谷歌和火狐浏览器就一直提示在处理; ie浏览器却可以提交?
- 请大家帮忙看看这句话,很急!!!!谢谢
- onpropertychange为什么只能在input type=button的disable由false到true的时候触发?
- jq遍历不到相关html标签
- 请问如何判断用户的浏览器版本?
- 谁知道:怎样删除cookie中存放的多个值?????
<script language=javascript>
function changeWin()
{
if (parent.frameset.cols == "40,*")
{
parent.frameset.cols = "0,*";
}
else
{
parent.frameset.cols = "40,*";
}
}
</script>