'height:'+ height + 'elseVariable:'+ elseVariable
the second 'height' is variable gained from window or other object.
Please see the msdn.Good luck.
the second 'height' is variable gained from window or other object.
Please see the msdn.Good luck.
解决方案 »
- jquery里针对insertCell()里的input值如何获取其value值
- 请教一下如下脚本什么意思
- JS顺序问题
- 问个关于“event.returnValue = false;”的问题
- "您查看的网页正试图关闭窗口"如何去掉
- 用JS获取某段内容中的特定内容,求解
- QQ一样的web聊天程式,新消息如何更新?
- javascript中我要追加方式打开文件,这样错在那里?
- 89元:115元,JavaSCRIPT从入门到精通:JavaSCRIPT宝典,那本书更好?
- 【大家来看看这个奇怪的问题,关于window.close()】
- 请问在javascript中。如何去掉一个字符串两头的空格
- 单选框(radiobutton)如何进行.js或.asp的调用?
printf("height:%s",height);
<button onclick="resetHeight(100)">test1</button>
<button onclick="resetHeight(10)">test2</button>
<br><br>
<span style="background=blue;width:100;height:10" id=s></span>
<SCRIPT LANGUAGE="JavaScript">
<!--
function resetHeight(h){
s.outerHTML="<span style='background=blue;width:100;height:"+h+"' id=s></span>"
}
//-->
</SCRIPT>
</BODY>