请大虾帮忙解决网页制作或者javascript的问题
发布网友
发布时间:2022-04-28 12:54
我来回答
共3个回答
热心网友
时间:2022-04-19 02:33
<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
<style ID="AsstStyle">
BODY{font: 宋体;}
.clickable {color:darkblue; cursor:hand}
</style>
<title>你会用英语吵架吗?(学会100句,走遍全世界)</title>
</head>
<body topmargin="40px" leftmargin="40px" SCROLL="no">
<div><img ID=TipGif src="http://img.bimg.126.net/photo/zqnxPE_SK7xrCDb2z6-y5g==/4286019470373673158.jpg">
<strong>你会用英语吵架吗?(学会100句,走遍全世界)</strong></div>
<div><span>
<a href="javascript:goNext(1)" class="clickable">上一提示</a></span>
<span>
<a href="javascript:goNext(-1)" class="clickable">下一提示</a></span>
</div>
<div ID="Tip0" Style="">
1. You make me sick! 你真让我恶心!</div>
<div ID="Tip1" Style="display:none;">
2. What’s wrong with you? 你怎么回事?</div>
<div ID="Tip2" Style="display:none;">
3. I’m very disappointed. 真让我失望。</div>
<div ID="Tip3" Style="display:none;">
4. Go to hell. 去死吧。</div>
<div ID="Tip4" Style="display:none;">
5. You’re a jerk! 你是个废物/混球!</div>
<div ID="Tip5" Style="display:none;">
6. Don’t talk to me like that! 别那样和我说话! </div>
<div ID="Tip6" Style="display:none;">
7. Who do you think you are? 你以为你是谁?</div>
<div ID="Tip7" Style="display:none;">
8. What’s your problem? 你怎么回事啊?</div>
<div ID="Tip8" Style="display:none;">
9. I hate you! 我讨厌你!</div>
<div ID="Tip9" Style="display:none;">
10. I don’t want to see your face! 我不愿再见到你!</div>
<div ID="Tip10" Style="display:none;">
11. You’re crazy! 你疯了! </div>
<div ID="Tip11" Style="display:none;">
12. Are you insane/crazy/out of your mind? 你疯了吗?</div>
<div ID="Tip12" Style="display:none;">
13. Don’t bother me. 别烦我。</div>
<div ID="Tip13" Style="display:none;">
14. Knock it off. 少来这一套。</div>
<div ID="Tip14" Style="display:none;">
15. Get out of my face. 从我面前消失!</div>
<div ID="Tip15" Style="display:none;">
16. Leave me alone. 走开。</div>
<div ID="Tip16" Style="display:none;">
17. Get lost.滚开!</div>
<div ID="Tip17" Style="display:none;">
18. Take a hike! 哪儿凉快哪儿歇着去吧。</div>
<div ID="Tip18" Style="display:none;">
19. You piss me off. 你气死我了。</div>
<div ID="Tip19" Style="display:none;">
20. It’s none of your business. 关你屁事!</div>
<script>
var i=0;
var p=0;
function goNext(n)
{
i+=n;
if(i==19)
{
i = 0;
}
if(i<0)
{
i = 19-1;
}
document.all["Tip"+i].style.display='';
document.all["Tip"+p].style.display='none';
p=i
}
</script>
</body>
</html>
热心网友
时间:2022-04-19 03:51
这就需要通过数据来调用了。
热心网友
时间:2022-04-19 05:26
很简单的问题 用很复杂的方式