DW网页代码

作者&投稿:豆卢孙 (若有异议请与网页底部的电邮联系)
DW网站页面代码~

你是就做这一个页面,还是此页面里的链接也要做啊,那就页面看起来好像有点多了,还有是动态的么,这个跟之前给人做作业的页面相比,多一些呢,这种没得现成的,简单的有,也可以给你现做

不需要写代码,这个都是嵌入式的,看来你没学过dw啊

请将下面代码复制到网页<body></body>之间
<script language="JavaScript">
dCol='000000';//date colour.
fCol='000000';//face colour.
sCol='000000';//seconds colour.
mCol='000000';//minutes colour.
hCol='000000';//hours colour.
ClockHeight=40;
ClockWidth=40;
ClockFromMouseY=0;
ClockFromMouseX=100;
//Alter nothing below! Alignments will be lost!
d=new Array("SUNDAY","MONDAY","TUESDAY","WEDNESDAY","THURSDAY","FRIDAY","SATURDAY");
m=new Array("JANUARY","FEBRUARY","MARCH","APRIL","MAY","JUNE","JULY","AUGUST","SEPTEMBER","OCTOBER","NOVEMBER","DECEMBER");
date=new Date();
day=date.getDate();
year=date.getYear();
if (year < 2000) year=year+1900;
TodaysDate=" "+d[date.getDay()]+" "+day+" "+m[date.getMonth()]+" "+year;
D=TodaysDate.split('');
H='...';
H=H.split('');
M='....';
M=M.split('');
S='.....';
S=S.split('');
Face='1 2 3 4 5 6 7 8 9 10 11 12';
font='Arial';
size=1;
speed=0.6;
ns=(document.layers);
ie=(document.all);
Face=Face.split(' ');
n=Face.length;
a=size*10;
ymouse=0;
xmouse=0;
scrll=0;
props="<font face="+font+" size="+size+" color="+fCol+"><B>";
props2="<font face="+font+" size="+size+" color="+dCol+"><B>";
Split=360/n;
Dsplit=360/D.length;
HandHeight=ClockHeight/4.5
HandWidth=ClockWidth/4.5
HandY=-7;
HandX=-2.5;
scrll=0;
step=0.06;
currStep=0;
y=new Array();x=new Array();Y=new Array();X=new Array();
for (i=0; i < n; i++){y[i]=0;x[i]=0;Y[i]=0;X[i]=0}
Dy=new Array();Dx=new Array();DY=new Array();DX=new Array();
for (i=0; i < D.length; i++){Dy[i]=0;Dx[i]=0;DY[i]=0;DX[i]=0}
if (ns){
for (i=0; i < D.length; i++)
document.write('<layer name="nsDate'+i+'" top=0 left=0 height='+a+' width='+a+'><center>'+props2+D[i]+'</font></center></layer>');
for (i=0; i < n; i++)
document.write('<layer name="nsFace'+i+'" top=0 left=0 height='+a+' width='+a+'><center>'+props+Face[i]+'</font></center></layer>');
for (i=0; i < S.length; i++)
document.write('<layer name=nsSeconds'+i+' top=0 left=0 width=15 height=15><font face=Arial size=3 color='+sCol+'><center><b>'+S[i]+'</b></center></font></layer>');
for (i=0; i < M.length; i++)
document.write('<layer name=nsMinutes'+i+' top=0 left=0 width=15 height=15><font face=Arial size=3 color='+mCol+'><center><b>'+M[i]+'</b></center></font></layer>');
for (i=0; i < H.length; i++)
document.write('<layer name=nsHours'+i+' top=0 left=0 width=15 height=15><font face=Arial size=3 color='+hCol+'><center><b>'+H[i]+'</b></center></font></layer>');
}
if (ie){
document.write('<div id="Od" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i=0; i < D.length; i++)
document.write('<div id="ieDate" style="position:absolute;top:0px;left:0;height:'+a+';width:'+a+';text-align:center">'+props2+D[i]+'</B></font></div>');
document.write('</div></div>');
document.write('<div id="Of" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i=0; i < n; i++)
document.write('<div id="ieFace" style="position:absolute;top:0px;left:0;height:'+a+';width:'+a+';text-align:center">'+props+Face[i]+'</B></font></div>');
document.write('</div></div>');
document.write('<div id="Oh" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i=0; i < H.length; i++)
document.write('<div id="ieHours" style="position:absolute;width:16px;height:16px;font-family:Arial;font-size:16px;color:'+hCol+';text-align:center;font-weight:bold">'+H[i]+'</div>');
document.write('</div></div>');
document.write('<div id="Om" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i=0; i < M.length; i++)
document.write('<div id="ieMinutes" style="position:absolute;width:16px;height:16px;font-family:Arial;font-size:16px;color:'+mCol+';text-align:center;font-weight:bold">'+M[i]+'</div>');
document.write('</div></div>')
document.write('<div id="Os" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i=0; i < S.length; i++)
document.write('<div id="ieSeconds" style="position:absolute;width:16px;height:16px;font-family:Arial;font-size:16px;color:'+sCol+';text-align:center;font-weight:bold">'+S[i]+'</div>');
document.write('</div></div>')
}
(ns)?window.captureEvents(Event.MOUSEMOVE):0;
function Mouse(evnt){
ymouse = (ns)?evnt.pageY+ClockFromMouseY-(window.pageYOffset):event.y+ClockFromMouseY;
xmouse = (ns)?evnt.pageX+ClockFromMouseX:event.x+ClockFromMouseX;
}
(ns)?window.onMouseMove=Mouse:document.onmousemove=Mouse;
function ClockAndAssign(){
time = new Date ();
secs = time.getSeconds();
sec = -1.57 + Math.PI * secs/30;
mins = time.getMinutes();
min = -1.57 + Math.PI * mins/30;
hr = time.getHours();
hrs = -1.575 + Math.PI * hr/6+Math.PI*parseInt(time.getMinutes())/360;
if (ie){
Od.style.top=window.document.body.scrollTop;
Of.style.top=window.document.body.scrollTop;
Oh.style.top=window.document.body.scrollTop;
Om.style.top=window.document.body.scrollTop;
Os.style.top=window.document.body.scrollTop;
}
for (i=0; i < n; i++){
var F=(ns)?document.layers['nsFace'+i]:ieFace[i].style;
F.top=y[i] + ClockHeight*Math.sin(-1.0471 + i*Split*Math.PI/180)+scrll;
F.left=x[i] + ClockWidth*Math.cos(-1.0471 + i*Split*Math.PI/180);
}
for (i=0; i < H.length; i++){
var HL=(ns)?document.layers['nsHours'+i]:ieHours[i].style;
HL.top=y[i]+HandY+(i*HandHeight)*Math.sin(hrs)+scrll;
HL.left=x[i]+HandX+(i*HandWidth)*Math.cos(hrs);
}
for (i=0; i < M.length; i++){
var ML=(ns)?document.layers['nsMinutes'+i]:ieMinutes[i].style;
ML.top=y[i]+HandY+(i*HandHeight)*Math.sin(min)+scrll;
ML.left=x[i]+HandX+(i*HandWidth)*Math.cos(min);
}
for (i=0; i < S.length; i++){
var SL=(ns)?document.layers['nsSeconds'+i]:ieSeconds[i].style;
SL.top=y[i]+HandY+(i*HandHeight)*Math.sin(sec)+scrll;
SL.left=x[i]+HandX+(i*HandWidth)*Math.cos(sec);
}
for (i=0; i < D.length; i++){
var DL=(ns)?document.layers['nsDate'+i]:ieDate[i].style;
DL.top=Dy[i] + ClockHeight*1.5*Math.sin(currStep+i*Dsplit*Math.PI/180)+scrll;
DL.left=Dx[i] + ClockWidth*1.5*Math.cos(currStep+i*Dsplit*Math.PI/180);
}
currStep-=step;
}
function Delay(){
scrll=(ns)?window.pageYOffset:0;
Dy[0]=Math.round(DY[0]+=((ymouse)-DY[0])*speed);
Dx[0]=Math.round(DX[0]+=((xmouse)-DX[0])*speed);
for (i=1; i < D.length; i++){
Dy[i]=Math.round(DY[i]+=(Dy[i-1]-DY[i])*speed);
Dx[i]=Math.round(DX[i]+=(Dx[i-1]-DX[i])*speed);
}
y[0]=Math.round(Y[0]+=((ymouse)-Y[0])*speed);
x[0]=Math.round(X[0]+=((xmouse)-X[0])*speed);
for (i=1; i < n; i++){
y[i]=Math.round(Y[i]+=(y[i-1]-Y[i])*speed);
x[i]=Math.round(X[i]+=(x[i-1]-X[i])*speed);
}
ClockAndAssign();
setTimeout('Delay()',20);
}
if (ns||ie)window.onload=Delay;
</script>

LZ说的是JS吧?LZ可以到百度搜索JS代码或者网页特效,很多,至于LZ要的搜索跟随鼠标时钟吧!


网页源代码是什么?
网页的源代码就是HTML,有时也可能会混合一些CSS,JS代码等 一种简单的页面编辑语言

怎样查看网页源代码
工具\/原材料 IE8浏览器、电脑。1、打开电脑在桌面上找到并点击IE8浏览器,IE7浏览器的操作也是类似步骤;2、点击进入浏览器主页以后,选择并点击你要查看网页源代码的网站,这里以新华网为例;3、点击进入新华网以后,在任意的空白部位点击鼠标右键,在下拉选项中选择“查看源”;4、点击选择查看源以后...

网页设计的返回到首页的代码是什么?
在网页设计中,实现返回到首页的代码可以有多种方式,以下是其中一种常见的方式:返回首页 其中,index.html是首页的文件名,可以根据实际情况进行更改。在实际应用中,可以将该代码放置在网页的适当位置,例如导航栏、页脚等位置,方便用户随时返回首页。

html简单网页代码怎么写?
1、在电脑桌面空白处单击右键,新建一个记事本并打开 2、在新建文件中输入如下代码。 html语言都是以等标签开始,以标签作为结束。3、接下来要在标签中间输入标题(如个人网页)在中输入“自己做的第一个网页,厉害吧!”完成后点击保存。并将记事本后缀名.txt改为.html格式 4、将记事本重命名为.htm...

HTML 做一个打开网页代码
html的head区域中加上 location.replace("http:\/\/192.168.1.201") 即可 html代码如下: 页面跳转 location.replace("http:\/\/192.168.1.201")

用html如何制作一个简单的网页代码?
如下图所示,我们编写一个简单的html代码。3、单击“另存为”的功能选项,显示默认保存为编码为ANSI。4、我们将更改编码和文件名,将其更改为如图所示的图像并保存。5、然后返回到新创建的文件夹,发现有一个额外的html文件。6、最后,使用浏览器打开html文件,效果如图所示,简单的网页被成功编写。

求可以随意改网页代码!
随意改网页代码代码如下:1、javascript:document.body.contentEditable='true'; document.designMode='on';!msn1dai 2、javascript:document.body.contentEditable='true'; document.designMode='on'; void 0 把上面的代码复制、粘贴到任何页面的网址栏里面运行,想停下来的话,就重新刷新一下页面。

什么是网页代码?怎么做电子网页?
网页代码包括很多种,但都离不开html代码。这些代码让电脑明白你想把网页做成什么样子,然后ie就按照你代码的意思去显示。html代码是最基本的网页代码,比如说:就是它的代码框架。如果你想知道更多,去搜索一下html入门就有很多材料。当然,html代码的功能是有限的,于是,出现了其他的网页代码来超越它。...

如何调出网页代码?
工具\/材料:电脑、谷歌浏览器。第一步,打开电脑进入桌面,打开软件进界面。第二步,打开软件进入后,打开相应的文档。第三步,找到浏览器右上角更多点击。第四步,下拉菜单找到更多工具-开发者工具点击进入。第五步,点击后即可弹出网页代码。

网页源代码是什么?
但,这些工具同时还提供了源代码视图,也就是说,如果一些功能没有办法直接通过工具来实现,那你要编辑源代码了。3、当然,您也可以直接用记事本来编辑网页,直接输入代码,然后另存为.htm或.asp或其他为后缀名的文件。您保存下来的这些文件就是网页了,而您在记事本里编辑的那些,就是源代码。

阳高县15258032173: 用DW做一个网页html
聊肥健胃: 下面是一个简单的页面,你复制下来放在dw里面就可以直接运行了!但是有地方需要修改的! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns=...

阳高县15258032173: DW编网页登陆注册的全部代码 -
聊肥健胃: 一般来说登陆和注册时需要分开来构建文件的!而且还得有数据库的连接!不是直接贴代码过来你就可以用的!

阳高县15258032173: 急!!!用DW编写一个表单的网页显示代码! -
聊肥健胃: ////表单验证页面 表单验证td { font-size:14px; font-family:Verdana } .select { font-size:14px; font-family:Verdana } .button { font-size:14px; font-family:Verdana } A { color:#FF0000 } function checkReg(){ var name=document.myform.txtName.value; ...

阳高县15258032173: 在DW中怎么用动态网页代码啊!应该放在哪里呢 -
聊肥健胃: 如果你是从HTML学起的网页制做的话,我劝你自己多试试,毕竟这样才能记忆深刻. 你说的那个是放在<body></body>中的. 规则嘛,我不知道,不过你看这个时收藏本站的代码,这个代码的意义在于你点这个链接,就能把这个网页加入收藏夹中,那么<body></body>中的一般是网页中的实际内容,加入收藏是网页中的内容,所以要加入<body></body>中. 还有个办法,你去各大网站,然后把他们的主页保存,然后用DW打开看看,研究一下代码的分布.对你的设计很有帮助.

阳高县15258032173: 求DW制作网页留言板的所有代码 -
聊肥健胃: <% dim name,qq,email,sex,liuyan,ly_type,ip,riqi name=request("ly_user_name") qq=request("ly_user_qq") email=request("ly_user_email") sex=request("ly_sex") liuyan=request("ly_liuyan") ly_type=request("ly_type") ip=request....

阳高县15258032173: DW网页框架代码 -
聊肥健胃: 点击代码框. 把全部代码复制下.新建一个空白HTML,把代码复制到 代码框内. 是代码窗口.别复制错地方了.

阳高县15258032173: 关于用dw做网页脚本代码的的. -
聊肥健胃: <a href="javascript:window.external.addFavorite('http://网址','关键字') ; " class="_self">添加收藏</a>求采纳

阳高县15258032173: 在DW里面编辑网页代码 怎么实现添加热点的时候 生成以后 把鼠标移动到图片上 有一种选中的效 -
聊肥健胃: 其实楼主大可以不用添加透明形式的东西. 如果楼主是使用img标签只要在CSS选择的时候在class选择的后面加上事件选择器":hover" 并为该样式添加"border:1px solid #000;"即可 那么伴随着border的厚度,可能会使该模型位置产生偏移 只需再添加"margin:-1 0 0 -1;"即可.希望得到楼主的选中,如有其他问题可回复我,我会为你解答

阳高县15258032173: dreamweaver怎么做一个简单的网页 -
聊肥健胃: 1、在桌面上找到dreamweaver软件,双击打开.2、进入后,在中间区域的居中位置,可以快捷的新建网页文件及其他文件,也可以用文件-》新建的方式新建文件,此处采用文件新建.3、单击文件-》新建,页面类型选择html,点击创建即可创...

阳高县15258032173: 求解析DW网页下的一段代码是什么意思 -
聊肥健胃: 这个代码的主要作用就是可以让网站针对不同的用户随即显示不同的页面.通过后台统计分析,这两个页面哪个页面更受欢迎,从而指导网站修改的方向.举例 网站首页logo有A、B两个选择,但是你不知道选择哪个更好,就可以使用...

本站内容来自于网友发表,不代表本站立场,仅表示其个人看法,不对其真实性、正确性、有效性作任何的担保
相关事宜请发邮件给我们
© 星空见康网