使用网络东西有点新,如果这是一个愚蠢的问题,很抱歉,但是,我似乎无法理解为什么我用来淡入和淡出引号文本的javascript代码会使我的浏览器崩溃,代码跟随。
<!DOCTYPE html>
<html>
<head><style type="text/css">h1 { font-size: 60px;
font-family: 'PT Sans Caption', sans-serif;
color: #F5F5F5;
text-shadow: 0px 0px 6px rgba(255,255,255,0.7);
text-align: center;
}
html {
background: url(http://www.mediafire.com/convkey/9176/gipuztaktb22sw36g.jpg) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
subline {
display: run-in;
width:80%;
height:5px;
background-color:#F5F5F5;
box-shadow: 0px 0px 6px rgba(255,255,255,0.7);
position: relative;
left: 10%;
}
p {
color: #F5F5F5;
font-size: 20px;
font-family: 'Open Sans Condensed', sans-serif;
text-align: center;
}
</style>
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
<link href="http://fonts.googleapis.com/css?family=PT+Sans+Caption" rel="stylesheet" type="text/css">
<link href="http://fonts.googleapis.com/css?family=Open+Sans+Condensed:300" rel="stylesheet" type="text/css">
<title>HD188753</title>
<style type="text/css"></style></head>
<body style="">
<h1>HD188753
<subline></subline>
</h1>
<p id="Quote" style="display: none; ">
"Metaphysical
<b> quote </b>
here"
</p>
<script>
function pausecomp(ms) {
ms += new Date().getTime();
while (new Date() < ms){}
}
x = 0;
while (x < 1)
{
$("p").fadeOut(400);
pausecomp(2000);
$("p").fadeIn(400);
pausecomp(2000);
}
</script></body>
无论如何,感谢您的任何建议或帮助。