没有合适的资源?快使用搜索试试~ 我知道了~
php数据库连接代码,html创建窗口代码,javascript脚本文.pdf
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 51 浏览量
2021-11-04
16:33:47
上传
评论
收藏 43KB PDF 举报
温馨提示
试读
6页
php数据库连接代码,html创建窗口代码,javascript脚本文.pdf
资源推荐
资源详情
资源评论
1. 下面代码显示一幅泰山图片,当鼠标移到图片的时候,显
示一个简单的介绍,鼠标移走后重新显示图片。
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=gb2312">
<title>Taishan Introduction</title>
</head>
<body>
<img src="image/t01.jpg" width="200" height="150" border="1"
align="left" name="tai" alt="taishan" vspace="10" hspace="10"
onmouseover="tai.src='image/t02.gif'"
onmouseout="tai.src='image/t01.jpg'" >
</body>
</html>
2. 下述代码演示了超文本链接、在 html 文档中插入书签、图
像链接的应用。
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
</head>
<body>
<p align="center"> 美丽的山东 </p>
<p><a href="# 济 南 "><img border="0" src="image/1.jpg"
width="30" height="30"></a></p>
<p><a name="济南 ">美丽的泉城 </a></p>
<p><a name="青岛 ">美丽的海滨城市 --青岛 </a></p>
<a href="http://www.cnta.com/" title=" 中 国 旅 游 网 "
target="_blank"> 主要旅游网 </a>
</body>
</html>
3. Textarea 多行文本框控件
<table border="1" cellpadding="2" width="350" >
<tr>
<th width= “30” align= “center ”>简<br><br> 介 </th>
<td width="300">
<form name="myForm" method="POST"
action="--WEBBOT-SELF--">
<textarea name="brief" rows="5" cols="40"> 简要说明
</textarea>
</form>
</tr>
</table>
4. SELECT 语句用于从数据库中选取数据。
<?php
$con = mysql_connect("localhost","root","123456");
if (!$con)
{die('Could not connect: ' . mysql_error()); }
mysql_select_db("my_db", $con);
$result = mysql_query("SELECT * FROM Persons");
while($row = mysql_fetch_array($result))
{ echo $row['FirstName'] . " " . $row['LastName'];
echo "<br />"; }
mysql_close($con);
5. 框架网页
<html>
<head>
</head>
<frameset rows="64,*,64">
<frame name="top" src="new_page_2.htm">
<frameset cols="150,*">
<frame name="contents" target="main"
src="new_page_3.htm">
<frame name="main" src="new_page_4.htm">
</frameset>
<frame name="bottom" target="contents"
src="new_page_5.htm">
<noframes>
<body>
<p>此网页使用了框架,但您的浏览器不支持框架。 </p>
</body>
</noframes>
</frameset>
</html>
6. 利用 Date 对象显示时钟
<html>
<head>
<script language="javascript">
var timeStr, dateStr;
function clock()
{
now= new Date();
//时间
hours= now.getHours();
minutes= now.getMinutes();
seconds= now.getSeconds();
timeStr= "" + hours;
timeStr+= ((minutes < 10) ? ":0" : ":") + minutes;
timeStr+= ((seconds < 10) ? ":0" : ":") + seconds;
document.clock.time.value = timeStr;
// 日期
date= now.getDate();
month= now.getMonth()+1;
month= ((month < 10) ? "0" : "")+ month;
year= now.getYear();
dateStr= "" + month;
dateStr+= ((date < 10) ? "/0" : "/") + date;
dateStr+= "/" + year;
document.clock.date.value = dateStr;
Timer= setTimeout("clock()",1000);
}
</script>
<body onload="clock()">
<form name="clock">
时 间 : <input type="text" name="time" size="10"
value=""><br>
日期: <input type="text" name="date" size="10" value="">
</form>
</body>
</html>
资源评论
xhr131452007
- 粉丝: 7
- 资源: 14万+
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功