if(score>=90 && score<=100)
{
document.write("你很棒!");
}
else if(score>=75)
{
document.write("不錯(cuò)吆!");
}
else if(score>=60)
{
document.write("要加油!");
}
else if(score>=0&&score<60)
{
document.write("你是蠢材嗎?");
}
else
{
document.write("你他媽搞事情是不?");
}
{
document.write("你很棒!");
}
else if(score>=75)
{
document.write("不錯(cuò)吆!");
}
else if(score>=60)
{
document.write("要加油!");
}
else if(score>=0&&score<60)
{
document.write("你是蠢材嗎?");
}
else
{
document.write("你他媽搞事情是不?");
}
2022-01-30
function openWindow(){
var m = confirm("是否打開新窗口?");
if(m == true){
var url = prompt("輸入你要打開的新網(wǎng)址!",'http://idcbgp.cn/');
if(url != null){
window.open(url,'_blank','width=400,height=500,menubar=no,toolbar=no');
}
}
}
var m = confirm("是否打開新窗口?");
if(m == true){
var url = prompt("輸入你要打開的新網(wǎng)址!",'http://idcbgp.cn/');
if(url != null){
window.open(url,'_blank','width=400,height=500,menubar=no,toolbar=no');
}
}
}
2021-12-20
window.open(http://idcbgp.cn/)
if(mymessage==true)
{ document.write("很好,加油!"); }
else
{ document.write("JS功能強(qiáng)大,要學(xué)習(xí)噢!"); }
</script>
if(mymessage==true)
{ document.write("很好,加油!"); }
else
{ document.write("JS功能強(qiáng)大,要學(xué)習(xí)噢!"); }
</script>
2021-11-06
}else if(id==3){
txt.style.display="block"
}else if(id==4){
var setting= confirm("你確定要取消設(shè)置么")
if(setting){
document.write("點(diǎn)擊了確定")
}else{
document.write("點(diǎn)擊了取消")
}
}
}
txt.style.display="block"
}else if(id==4){
var setting= confirm("你確定要取消設(shè)置么")
if(setting){
document.write("點(diǎn)擊了確定")
}else{
document.write("點(diǎn)擊了取消")
}
}
}
2021-09-22
function chang(id){
var txt= document.getElementById("txt")
if(id==0){
txt.style.color="red"
txt.style.backgroundColor="#edd"
}else if(id==1){
txt.style.width="200"
txt.style.height="200"
}else if(id==2){
txt.style.display="none"
var txt= document.getElementById("txt")
if(id==0){
txt.style.color="red"
txt.style.backgroundColor="#edd"
}else if(id==1){
txt.style.width="200"
txt.style.height="200"
}else if(id==2){
txt.style.display="none"
2021-09-22
<input type="button" value="改變顏色" onclick="chang(0)" >
<input type="button" value="改變寬高" onclick="chang(1)">
<input type="button" value="隱藏內(nèi)容" onclick="chang(2)">
<input type="button" value="顯示內(nèi)容" onclick="chang(3)">
<input type="button" value="取消設(shè)置" onclick="chang(4)">
<input type="button" value="改變寬高" onclick="chang(1)">
<input type="button" value="隱藏內(nèi)容" onclick="chang(2)">
<input type="button" value="顯示內(nèi)容" onclick="chang(3)">
<input type="button" value="取消設(shè)置" onclick="chang(4)">
2021-09-22
function openWindow(){
var isopen=confirm('是否打開網(wǎng)站');
if(isopen==true){
var url=prompt("輸入網(wǎng)址","http://idcbgp.cn")
if(url!=null){
window.open(url,'_bank','width=400,height=500,menubar=no,toolbar=no')
}
}
}
var isopen=confirm('是否打開網(wǎng)站');
if(isopen==true){
var url=prompt("輸入網(wǎng)址","http://idcbgp.cn")
if(url!=null){
window.open(url,'_bank','width=400,height=500,menubar=no,toolbar=no')
}
}
}
2021-09-07
document.getElementById("con")
//:獲取到是這個(gè)p元素。
//而你想要的是P元素的文本。所以
document.getElementById("con").innerHTML;
//獲取里面的內(nèi)容
?
//:獲取到是這個(gè)p元素。
//而你想要的是P元素的文本。所以
document.getElementById("con").innerHTML;
//獲取里面的內(nèi)容
?
2021-08-01
function openWindow()
{var mytext=prompt("請(qǐng)輸入網(wǎng)址:","http://idcbgp.cn/");
if(mytext!=null) {window.open(mytext,'_blank','height=500,width=400,menubar=no,toolbar=no');}
else
{alert("Thanks");}
}
{var mytext=prompt("請(qǐng)輸入網(wǎng)址:","http://idcbgp.cn/");
if(mytext!=null) {window.open(mytext,'_blank','height=500,width=400,menubar=no,toolbar=no');}
else
{alert("Thanks");}
}
2021-06-11