链接类
VML
按钮类
标题类
表单类
表格类
菜单类
窗口类
对象类
滚动条
键盘类
框架类
例子类
模拟类
日期类
色彩类
鼠标类
数学类
图片类
文字类
下拉框
样式类
游戏类
状态栏
资料类
字幕类
其它类
·
样式控制窗口目标
·
链接Loading效果
·
本地文件夹链接
·
CreateLink...
·
后退无效的链接
·
链接效果
·
判断链接是否被访问
·
自动刷新
·
查看当前页面的源代码
·
链接确认警告
您当前位置:
好素材首页
-> 网页特效 -> 链接类
查看信息
随机链接
好素材网 www.HaoSc.com 02月22日 11:49
[
查看演示
] 源码如下
----------------------------------------------------------
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>New Page 1-www.51windows.Net</title>
</head>
<body>
<table cellSpacing="0" cellPadding="0" width="100%" border="0">
<tr bgColor="#ffffff">
<td width="100%">
<table width="100%" border="0" cellpadding="8">
<tr>
<td bgcolor="#f7f7f7"><!-- #BeginEditable "example" -->
<table width="100%" border="0" cellspacing="1" cellpadding="3" bgcolor="#000000">
<tr bgcolor="#FFFFFF">
<td><a href="http://www.wanxu.com/index.html">万旭网站工作室</a></td>
<td><a href="http://spook.500.to/index.html">JavaScript-World</a></td>
</tr>
<tr bgcolor="#FFFFFF">
<td><a href="http://jet.aladin.com.cn/index.html">织梦地带</a></td>
<td><a href="http://www.dynamicdrive.com/index.html">Dynamic Drive</a></td>
</tr>
<tr bgcolor="#FFFFFF">
<td><a href="http://www.gznet.com/index.html">广州视窗</a></td>
<td><a href="http://www.51js.com/index.html">无忧脚本</a></td>
</tr>
</table>
<script>
function random_all(){
var myrandom=Math.round(Math.random()*(document.links.length-1))
window.location=document.links[myrandom].href
}
</script>
<form>
<input onClick="random_all()" type="button" value="随便走一走" name="button">
提示:点击此按钮,会随机打开页面中其中的一条连接。试试看..
</form>
</table>
</table>
</body>
</html>
<div style="position: absolute; top: 10; right: 10; width: 148; height: 18;cursor:hand">
<input type="button" name="Button" value="查看源代码" onClick= 'window.location = "view-source:" + window.location.href'></div>
此信息共 1 页 [
1
]