只适合在IE中用,大家可以修改一下就可以通用了,这里我就不作修改了,弄了一上午才弄出来。
<script language="JavaScript1.2">
function move(x) {
if (document.all) {
object1.style.pixelLeft += x;
object1.style.visibility = "visible"}
else if (document.layers) {
document.object1.left += x;
document.object1.visibility = "show"}};
function makeStatic() {
if (document.all) {object1.style.pixelTop=document.body.scrollTop+20}
else {eval(document.object1.top=eval(window.pageYOffset+20));}
setTimeout("makeStatic()",0);}
</script>
<script language="JavaScript1.2">
function positionmenu(){
move(-100)
}
if (document.all) {document.write('<DIV ID="object1" style="visibility:hidden;cursor:hand; Position : Absolute ;Left : 100px ;Top : 120px ;100 : 120">')}
</script>
<table border="0" cellpadding="0" cellspacing="0" width="115" bgcolor="#000000">
<script language="JavaScript1.2"><!--
if (document.all||document.layers) {
makeStatic();}
var text=new Array();
var thelink=new Array();
text[0]="";
thelink[0]="../infoadd.aspx";
var linktarget=''
function navigateie(which){
if (linktarget=='')
window.location=thelink[which]
else if (linktarget=='new')
window.open(thelink[which])
else{
temp_var=eval("window.parent."+linktarget)
temp_var.location=thelink[which]
}
}
for (i=0;i<=text.length-1;i++)
if (document.all) {document.write('<TR><TD height=159 background=images/fabu.gif onclick="navigateie('+i+')" onmouseover="className=\'hl\'" onmouseout="className=\'n\'"><FONT SIZE=2 FACE=ARIAL> '+text[i]+'</FONT></TD></TR>')}
else {document.write('<TR><TD background="images/fabu.gif"><ILAYER><LAYER HEIGHT="18" width=131><FONT SIZE=2 FACE=ARIAL> <A HREF="'+thelink[i]+'" target="'+linktarget+'" id="nounderline">'+text[i]+'</A></FONT></LAYER></ILAYER></TD></TR>')}
</script>
<tr>
<td bgcolor="#0099FF"><font size="1" face="Arial"> </font></td>
</TR>
</table>
<script language="JavaScript1.2">
if (document.all) {document.write('</DIV>')}
window.onload=positionmenu
</script>
---------------------------------------------------------------------
下面是应用时的代码
-----------------------------------------------
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>
<html>
<head id="Head1" runat="server">
<title>无标题页</title>
<link href="css/css.css" rel="stylesheet" type="text/css" />
</head>
<%--oncontextmenu=window.event.returnValue=false onselectstart=window.event.returnValue=false ondragstart=window.event.returnValue=false--%>
<body>
<form id="form1" runat="server">
<table cellpadding="0" cellspacing="0" style="width: 1003px">
<tr>
<td style="width: 112px; height: 23px;">
</td>
<td style="width: 778px; height: 23px;">
<table align="center" bgcolor="#ffffff" cellpadding="0" cellspacing="0" width="778">
<tr>
<td align="left" width="546">
<img height="36" src="images/01.GIF" width="248" /></td>
<td class="shenhong" valign="bottom" width="232">
<span style="font-size: 12px">
<a href="javascript:window.external.addFavorite('http://www.mingrisoft.com/about.asp','**科技有限公司');">加入收藏 </a>
| <a href=# onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.cxyhome.com');">设为首页</a>
</span> | <a href="mailto:ABC***@1**.COM">联系我们</a></td>
</tr>
</table>
<table align="center" background="images/daohangb.GIF" bgcolor="#ffffff" cellpadding="0"
cellspacing="0" height="55" width="778">
<tr>
<td valign="top">
<table cellpadding="0" cellspacing="0" height="27" width="779">
<tr>
<td class="daohangh" style="width: 153px">
<asp:HyperLink ID="HyperLink1" runat="server" CssClass="daohangh" NavigateUrl="~/Default.aspx">首 页</asp:HyperLink></td>
<td align="center" class="daohangh" style="width: 110px">
<a href="ShowPage/webZP.aspx"></a>
<asp:HyperLink ID="HyperLink2" runat="server" CssClass="daohangh" NavigateUrl="">招聘信息</asp:HyperLink></td>
<td align="center" class="daohangh" width="117">
<a href="ShowPage/webGY.aspx"></a>
<asp:HyperLink ID="HyperLink3" runat="server" CssClass="daohangh" NavigateUrl="">公寓信息</asp:HyperLink></td>
<td align="center" class="daohangh" width="112">
<a href="ShowPage/webWPQG.aspx"></a>
<asp:HyperLink ID="HyperLink4" runat="server" CssClass="daohangh" NavigateUrl="">物品求购</asp:HyperLink></td>
<td align="center" class="daohangh" width="116">
<a href="ShowPage/webQDCD.aspx"></a>
<asp:HyperLink ID="HyperLink5" runat="server" CssClass="daohangh" NavigateUrl="">求兑出兑</asp:HyperLink></td>
<td width="169">
<span class="daohangh"><asp:HyperLink ID="HyperLink6" runat="server" CssClass="daohangh" NavigateUrl="">寻求合作</asp:HyperLink></span></td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" class="shenlan" height="28" width="779">
<tr>
<td class="shenlan" width="153">
<span class="shenlan"><asp:HyperLink ID="HyperLink7" runat="server" CssClass="shenlan" NavigateUrl="">培训信息</asp:HyperLink></span></td>
<td align="center" class="shenlan" width="110">
<a href="ShowPage/webQZ.aspx"></a>
<asp:HyperLink ID="HyperLink8" runat="server" CssClass="shenlan" NavigateUrl="">求职信息</asp:HyperLink></td>
<td align="center" class="shenlan" width="117">
<a href="ShowPage/webJJ.aspx"></a>
<asp:HyperLink ID="HyperLink9" runat="server" CssClass="shenlan" NavigateUrl="">家教信息</asp:HyperLink></td>
<td align="center" class="shenlan" width="112">
<a href="ShowPage/webWPCS.aspx"></a>
<asp:HyperLink ID="HyperLink10" runat="server" CssClass="shenlan" NavigateUrl="">物品出售</asp:HyperLink></td>
<td align="center" class="shenlan" width="116">
<a href="ShowPage/webCL.aspx"></a>
<asp:HyperLink ID="HyperLink11" runat="server" CssClass="shenlan" NavigateUrl="">车辆信息</asp:HyperLink></td>
<td class="shenlan" width="169">
<asp:HyperLink ID="HyperLink12" runat="server" CssClass="shenlan" NavigateUrl="">企业广告</asp:HyperLink></td>
</tr>
</table>
</td>
</tr>
</table>
<table align="center" bgcolor="#ffffff" cellpadding="0" cellspacing="0" height="112"
width="778">
<tr>
<td align="left" background="images/banner.jpg" height="112">
</td>
</tr>
</table>
</td>
<td style="width: 112px; height: 23px;">
</td>
</tr>
<tr>
<td style="width: 112px; height: 208px;">
</td>
<td style="width: 778px; height: 208px;">
<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
</asp:ContentPlaceHolder>
</td>
<td style="width: 112px; height: 208px;">
</td>
</tr>
<tr>
<td style="width: 112px; height: 29px;">
</td>
<td style="width: 778px; height: 29px;">
<table align="center" bgcolor="#ffffff" cellpadding="0" cellspacing="0" height="59"
width="778">
<tr>
<td background="images/end.gif" height="59" valign="bottom">
<table align="center" width="359">
<tr>
<td align="center" class="danhuang" valign="bottom" width="363">
公司网址:www.mingri**ft.com 联系电:87****1287 96454**13<br />
吉林省**科技有限公司 版权所有 <a href="../Logon.aspx"><span class="danhuang" style=" text-decoration:none">后台入口</span></a></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td style="width: 112px; height: 29px;">
</td>
</tr>
</table>
</form>
</body>
</html>
<script language="JavaScript1.2">
function move(x) {
if (document.all) {
object1.style.pixelLeft += x;
object1.style.visibility = "visible"}
else if (document.layers) {
document.object1.left += x;
document.object1.visibility = "show"}};
function makeStatic() {
if (document.all) {object1.style.pixelTop=document.body.scrollTop+20}
else {eval(document.object1.top=eval(window.pageYOffset+20));}
setTimeout("makeStatic()",0);}
</script>
<script language="JavaScript1.2">
function positionmenu(){
move(-100)
}
if (document.all) {document.write('<DIV ID="object1" style="visibility:hidden;cursor:hand; Position : Absolute ;Left : 100px ;Top : 120px ;100 : 120">')}
</script>
<table border="0" cellpadding="0" cellspacing="0" width="115" bgcolor="#000000">
<script language="JavaScript1.2"><!--
if (document.all||document.layers) {
makeStatic();}
var text=new Array();
var thelink=new Array();
text[0]="";
thelink[0]="../infoadd.aspx";
var linktarget=''
function navigateie(which){
if (linktarget=='')
window.location=thelink[which]
else if (linktarget=='new')
window.open(thelink[which])
else{
temp_var=eval("window.parent."+linktarget)
temp_var.location=thelink[which]
}
}
for (i=0;i<=text.length-1;i++)
if (document.all) {document.write('<TR><TD height=159 background=images/fabu.gif onclick="navigateie('+i+')" onmouseover="className=\'hl\'" onmouseout="className=\'n\'"><FONT SIZE=2 FACE=ARIAL> '+text[i]+'</FONT></TD></TR>')}
else {document.write('<TR><TD background="images/fabu.gif"><ILAYER><LAYER HEIGHT="18" width=131><FONT SIZE=2 FACE=ARIAL> <A HREF="'+thelink[i]+'" target="'+linktarget+'" id="nounderline">'+text[i]+'</A></FONT></LAYER></ILAYER></TD></TR>')}
</script>
<tr>
<td bgcolor="#0099FF"><font size="1" face="Arial"> </font></td>
</TR>
</table>
<script language="JavaScript1.2">
if (document.all) {document.write('</DIV>')}
window.onload=positionmenu
</script>
相关推荐
漂浮广告插件网页特效
JS漂浮广告代码JS漂浮广告代码JS漂浮广告代码JS漂浮广告代码JS漂浮广告代码
js物理弹性漂浮广告_兼容版 测试可用 需要的朋友可以看看
实现漂浮广告,点击图片可以跳转到广告页面,点击关闭可以关闭广告
jQuery可拖动图片漂浮广告代码简介: jQuery可拖动图片漂浮广告代码是一款支持鼠标拖动,在浏览器自动漂浮的jQuery广告代码。
漂浮广告 弹性漂浮广告 JS广告 效果不错的
带关闭按钮的网页漂浮广告代码(全屏漂浮)
漂浮广告代码 本人文学网站开通,欢迎大家赏脸光顾 [removed] var x = 50,y = 60 var xin = true, yin = true var step = 1 var delay = 10 var obj=document.getElementById("www_qpsh_com") function...
jQuery右下角pop弹窗漂浮广告代码,兼容主流浏览器.rar
教会你如何制作漂浮广告!这里有两个简单的漂浮广告,保证你可以看懂的!
jquery全屏漂浮广告插件,可点击关闭
js漂浮广告 漂浮广告js 网页漂浮广告 网页漂浮物
该资源系本人学习时之收藏,现在和大家一起共享,如果侵犯了作者的权益,请联系我,但是我感觉您不会介意我和大家分享您的作品的!
JS物理弹性漂浮广告
页面无规律漂浮广告,兼容各种浏览器
JS物理弹性漂浮广告代码,核心:漂浮广告代码,结合目前国内最流行的设计风格及浏览风格!操作简单,图片大小便于修改,默认图片大小80*80,图片大小可根据情况进行及时的修改;漂浮行动的时间也可以修改,总之操作...
漂浮广告源代码 把上面的代码放在需要放置广告的页面HTML代码的<body></body>之间
纯DIVCSS对联漂浮广告代码(无JS),源码网两侧漂浮。经测试,兼容IE6,IE7,Firefox浏览器。