js代码,怎样打出我网站上的js代码,有9处呢,我找不到,我的网站是www.t8866.com.cn

JavaScript05

js代码,怎样打出我网站上的js代码,有9处呢,我找不到,我的网站是www.t8866.com.cn,第1张

你的代码有的是直接写入网页中,有的引用连接, 我把引用js代码连接的地址发上来,复制到浏览器中即可查看. 直接写入的代码因为太长,所以发到你的空间留言中.

第一处:http://www.t8866.com.cn/Inc/Southidcmenu.js

第二处: http://www.t8866.com.cn/Inc/southidcj2f.Js

第三处 - 第九处的js代码我发到你空间留言里了. 请查看.

另外, 在第七处js代码之后,网页上有些图片和连接按钮用了单句的js代码, 因为太多了,所以就不单一的发出来了.

例如:

<img src="UploadFiles/200921421345319.jpg" alt="反渗透膜" width="105" height="80" border="0" onload="javascript:DrawImage(this)">

<TD language=javascript onmouseup="opencat(cat103000, img103000)" id=item$pval[catID]) style="CURSOR: hand" width=34 height=24 align=center>

按照以下步骤来:

1、获取当前日期

2、生成日期字符串

3、显示

准备好一张数字的图片:

【代码】

<style type="text/css">

/* css */

.num_0, .num_1, .num_2, .num_3, .num_4, .num_5, .num_6, .num_7, .num_8, .num_9 { background:url(numbers.gif) no-repeat 0 0 display:inline-block width:40px height:40px }

.num_1 { background-position:-40px 0 }

.num_2 { background-position:-80px 0 }

.num_3 { background-position:-120px 0 }

.num_4 { background-position:-160px 0 }

.num_5 { background-position:-200px 0 }

.num_6 { background-position:-240px 0 }

.num_7 { background-position:-280px 0 }

.num_8 { background-position:-320px 0 }

.num_9 { background-position:-360px 0 }

</style>

<div id="dis"></div>

<script>

var date=new Date(),

    str=''+date.getFullYear()+(date.getMonth()+1)+date.getDate(),

    i=0,

    len=str.length,

    html=[]

for( i<len i++)

  html.push('<span class="num_'+str[i]+'">&nbsp</span>')

document.getElementById('dis').innerHTML=html.join('')

</script>

【运行】

运行后,js代码会添加一些元素到页面上,会生成如图所示的结构:

看下页面显示效果:

显示是通过样式表完成的。

这样子就实现一个比较简单的日期显示功能。希望可以帮到您。

这个只要使用窗口调用就可以,参考代码:

<html>

<head>

<title>网页特效|Js|---网页中调用另外网页</title>

<style type="text/css">BODY {

FONT-FAMILY: "宋体"FONT-SIZE: 9ptMARGIN-LEFT: 4pxMARGIN-RIGHT: 0pxMARGIN-TOP: 0px

}

A {

COLOR: blackFONT-SIZE: 13pxFONT-WEIGHT: 400TEXT-DECORATION: none

}

A:hover {

COLOR: redFONT-SIZE: 13pxFONT-WEIGHT: 400TEXT-DECORATION: underline

}

A:active {

COLOR: #ff0033CURSOR: handFONT: 9pt "宋体"

}

</style>

<meta content="text/htmlcharset=gb2312" http-equiv="Content-Type">

</head>

<body>

<font color="red" face="隶书" size="6">

<p align="center"></font><font size="6" face="黑体" color="#00FF00">这是网页</font></p>

<p align="center"><font face="隶书" size="5" color="#FF0000">网页中调用另外网页</font><br>

<font face="幼圆" size="3" color="#FF0000"><strong>&nbsp&nbsp</strong></font>

<object data="http:\\www.boaer.com" height="300" type="text/x-scriptlet" width="600">

</object>

</p>

<p align="center"><strong><font face="幼圆" size="3" color="#FF0000">&nbsp</font><font face="幼圆" size="3" color="#FF0000">&nbsp 

这个网页中调用另外网页的方法可以让别人的页面成为你的页面的一部分,一下子让你的网页的内容丰富起来,再也不要愁你的记数器走的慢了,效果怎么样,你一用就知道了!</font></strong></p>

</body>

</html>