<script type="text/javascript">
var mystr = "最初的想法";
var mychar = "输出了,才能进一步";
document.write(mystr+"如果"+mychar);
</script>
var mystr = "最初的想法";
var mychar = "输出了,才能进一步";
document.write(mystr+"如果"+mychar);
</script>
2016-07-11
<script type="text/javascript"></script>
2016-07-11
最新回答 / Tofly_ZZL
<!--当点击相应按钮,执行相应操作,为按钮添加相应事件--> <input type="button" value="改变颜色" onclick="changecolor()" > <input type="button" value="改变宽高" onclick="change()"> <input type="button" value="隐藏内容" onclick="tt()"> <input type="butto...
2016-07-11
如果没有设置宽度,无论后面设置的height top left是多少,窗口都会在一个固定的地方打开啊。
2016-07-11
var oTxt = document.getElementById('txt')
//定义"改变颜色"的函数
function color(){
oTxt.style.color ='red';
}
//定义"改变宽高"的函数
function wid(){
oTxt.style.width = "150px";
oTxt.style.height = '150px';
}
//定义"隐藏内容"的函数
function dis(){
oTxt.style.display = 'none';
}
//定义"改变颜色"的函数
function color(){
oTxt.style.color ='red';
}
//定义"改变宽高"的函数
function wid(){
oTxt.style.width = "150px";
oTxt.style.height = '150px';
}
//定义"隐藏内容"的函数
function dis(){
oTxt.style.display = 'none';
}
function openWindow(){
var Read= confirm("Are you ready?");
if(Read){
var openWin = prompt("http://www.imooc.com?");
if(openWin == 666){
window.open('http://www.imooc.com','_blank','width=400,height=500,menubar=no,toolbar=no')
}
}
};
var Read= confirm("Are you ready?");
if(Read){
var openWin = prompt("http://www.imooc.com?");
if(openWin == 666){
window.open('http://www.imooc.com','_blank','width=400,height=500,menubar=no,toolbar=no')
}
}
};