2

我正在制作一个网站,背景将是一张大照片(室内设计公司),所以图片非常重要。这就是为什么我一直在尝试制作一个临时文本框,以便进入主页的人会看到临时欢迎消息等,但我真的不知道如何开始或我应该使用什么语言来做到这一点。

我希望任何人都可以帮助我开始。或者我需要搜索的地方/内容

提前致谢

4

1 回答 1

0

使用alert方法简单。
例子:

<html>
<head>
<script type="text/javascript">
function display_alert()
{
alert("Welcome to the site!");
}

display_alert();
</script>
</head>
<body>
</body>
</html>

或者使用jquery的hide方法。
例子:

<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$(document).ready(function() {
    $("input").click(function() {
        $(this).hide();
    });
});
</script>
</head>

<body>
<input value="Welcome to the Site!">
</body>
</html>
于 2012-06-04T00:56:27.533 回答