网页制作常用源代码Word下载.docx
- 文档编号:16501767
- 上传时间:2022-11-24
- 格式:DOCX
- 页数:15
- 大小:19.53KB
网页制作常用源代码Word下载.docx
《网页制作常用源代码Word下载.docx》由会员分享,可在线阅读,更多相关《网页制作常用源代码Word下载.docx(15页珍藏版)》请在冰豆网上搜索。
年"
today.getMonth()+1,"
月"
today.getDate(),"
日"
d[today.getDay()+1],
/font>
"
);
/script>
放在页首的代码
STYLEtype=text/css>
P{FONT-SIZE:
9pt}TD{FONT-SIZE:
9pt}
INPUT{FONT-SIZE:
9pt}SELECT{FONT-SIZE:
A{TEXT-TRANSFORM:
none;
COLOR:
#000000;
TEXT-DECORATION:
none}
A:
hover{COLOR:
#ff0080;
active{COLOR:
.subject{FONT-SIZE:
12px;
.title1{FONT-SIZE:
#660000;
.title1:
hover{FONT-SIZE:
#669999}
.lianjie{FONT-SIZE:
#808080;
.lianjie:
12px}
.zzz{FONT-SIZE:
LINE-HEIGHT:
14px}
/STYLE>
/head>
body>
SCRIPTlanguage=JavaScript>
!
--
functionMM_reloadPage(init){//reloadsthewindowifNav4resized
if(init==true)with(navigator){if((appName=="
Netscape"
)&
&
(parseInt(appVersion)==4))
{
document.MM_pgW=innerWidth;
document.MM_pgH=innerHeight;
onresize=MM_reloadPage;
}}
elseif(innerWidth!
=document.MM_pgW||innerHeight!
=document.MM_pgH)location.reload
();
}
MM_reloadPage(true);
//-->
functionMM_swapImgRestore(){//v3.0
vari,x,a=document.MM_sr;
for(i=0;
a&
a.length&
(x=a[i])&
x.oSrc;
i++)x.src=x.oSrc;
functionMM_preloadImages(){//v3.0
vard=document;
if(d.images){if(!
d.MM_p)d.MM_p=newArray();
vari,j=d.MM_p.length,a=MM_preloadImages.arguments;
i<
a.length;
i++)
if(a[i].indexOf("
#"
)!
=0){d.MM_p[j]=newImage;
d.MM_p[j++].src=a[i];
}}
functionMM_findObj(n,d){//v4.0
varp,i,x;
if(!
d)d=document;
if((p=n.indexOf("
?
))>
0&
parent.frames.length){
d=parent.frames[n.substring(p+1)].document;
n=n.substring(0,p);
if(!
(x=d[n])&
d.all)x=d.all[n];
for(i=0;
x&
d.forms.length;
i++)x=d.forms[i][n];
for(i=0;
d.layers&
d.layers.length;
i++)x=MM_findObj(n,d.layers[i].document);
x&
document.getElementById)x=document.getElementById(n);
returnx;
functionMM_swapImage(){//v3.0
vari,j=0,x,a=MM_swapImage.arguments;
document.MM_sr=newArray;
(a.length-
2);
i+=3)
if((x=MM_findObj(a[i]))!
=null){document.MM_sr[j++]=x;
x.oSrc)x.oSrc=x.src;
x.src=a[i+2];
//-->
/SCRIPT>
倒计时源代码
scriptlanguage="
JavaScript"
type="
text/javascript"
BirthDay=newDate("
February14,2010"
//改为计时日期
today=newDate();
timeold=(today.getTime()-BirthDay.getTime());
sectimeold=timeold/1000
secondsold=Math.floor(sectimeold);
msPerDay=24*60*60*1000
e_daysold=timeold/msPerDay
daysold=Math.floor(e_daysold);
document.write("
2010年春节"
+daysold+"
天"
插入本机视频文件
<
objectclassid="
clsid:
6BF52A52-394A-11D3-B153-00C04F79FAA6"
width="
175"
height="
190"
id="
WindowsMediaPlayer1"
paramname="
URL"
value="
bdl-rjzz.wmv"
rate"
1"
balance"
0"
currentPosition"
defaultFrame"
value>
playCount"
10"
autoStart"
-1"
currentMarker"
invokeURLs"
baseURL"
volume"
50"
mute"
uiMode"
full"
stretchToFit"
windowlessVideo"
enabled"
enableContextMenu"
fullScreen"
SAMIStyle"
SAMILang"
SAMIFilename"
captioningID"
enableErrorDialogs"
/object>
插入网络视频文件
objectwidth="
480"
415"
allowFullScreen"
true"
/>
embedsrc="
application/x-shockwave-flash"
width="
/embed>
嵌套页面代码
iframeframeborder="
src="
sanfu.htm"
scrolling="
yes"
100%"
/iframe>
横向滚动条代码
marquee>
滚动条代码文字<
/marquee>
向上滚动条代码
marqueewidth="
200"
70"
direction="
up"
scrollamount="
style="
9pt;
line
-height:
150%"
fontsize="
2"
欢迎你!
br>
进入我的网站——日历探秘!
亲爱的网友,<
只要移动鼠标轻轻点击,<
相信你会得到一些启示与收益!
最后更新时间
--hidescriptfromoldbrowsers
最后更新时间:
+document.lastModified+"
)
//endhiding-->
用按钮链接网站的程序
inputtype="
button"
《日历网》各类查询工具"
onClick="
window.open('
'
Sample'
'
toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width=1020,height=1500,left=0,top=0'
)"
name="
Input2232222"
固定字号大小
styletype="
text/css"
body{font-size:
9pt}
td{font-size:
-->
/style>
去掉下划线代码
style>
--a{text-decoration:
none}-->
10秒后自动链接到别的网页
metahttp-equiv="
refresh"
content="
10;
url=
表格代码
tr>
行
td>
列
表格一行
tablewidth="
cellspacing="
nbsp;
/td>
/tr>
/table>
表格二行
表格一行二列
表格二行二列
表格四行二列
表格三行三列
首行居中后插入二行三列表格
divalign="
center"
80%"
border="
/div>
前两列合并
218"
tdwidth="
50%"
rowspan="
24%"
26%"
右两行合并
58%"
cellpadding="
tdcolspan="
居中显示<
表格宽width="
表格高height="
134"
表格线条粗border="
单元格边距cellpadding="
单元格间距cellspacing="
鼠标拖动数字时钟
DOCTYPEHTMLPUBLIC"
-//W3C//DTDHTML4.0Transitional//EN"
dCol='
000000'
;
//datecolour.
fCol='
//facecolour.
sCol='
//secondscolour.
mCol='
//minutescolour.
hCol='
//hourscolour.
ClockHeight=40;
ClockWidth=40;
ClockFromMouseY=0;
ClockFromMouseX=100;
//Alternothingbelow!
Alignmentswillbelost!
d=newArray("
SUNDAY"
"
MONDAY"
TUESDAY"
WEDNESDAY"
THURSDAY"
FRIDAY"
SATURDAY"
m=newArray("
JANUARY"
FEBRUARY"
MARCH"
APRIL"
MAY"
JUNE"
JULY"
AUGUST"
SEPTEMBER"
OCTOBER"
NOVEMBER"
DECEMBER"
date=newDate();
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='
123456789101112'
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="
fontface="
+font+"
size="
+size+"
color="
+fCol+"
B>
props2="
+dCol+"
Split=360/n;
Dsplit=360/D.length;
HandHeight=ClockHeight/4.5
HandWidth=ClockWidth/4.5
HandY=-7;
HandX=-2.5;
step=0.06;
currStep=0;
y=newArray();
x=newArray();
Y=newArray();
X=newArray();
for(i=0;
i<
n;
i++){y[i]=0;
x[i]=0;
Y[i]=0;
X[i]=0}
Dy=newArray();
Dx=newArray();
DY=newArray();
DX=newArray();
D.length;
i++){Dy[i]=0;
Dx[i]=0;
DY[i]=0;
DX[i]=0}
if(ns){
document.write('
layername="
nsDate'
+i+'
top=0left=0height='
+a+'
width='
center>
+props2+D[i]+'
/center>
/layer>
nsFace'
+props+Face[i]+'
S.length;
layername=nsSeconds'
top=0left=0width=15height=15>
fontface=Arialsize=3color='
+sCol+'
b>
+S[i]+'
/b>
M.length;
layername=nsMinutes'
+mCol+'
+M[i]+'
H.length;
layername=nsHours'
+hCol+'
+H[i]+'
if(ie){
divid="
Od"
position:
absolute;
top:
0px;
left:
0px"
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 网页 制作 常用 源代码
![提示](https://static.bdocx.com/images/bang_tan.gif)