1.界面背景=E:\反恐精英\cstrike\resource\background\里的TGA文件2.喷漆涂鸦=E:\反恐精英\cstrike\tempdecal.wad3.欢迎信息的内容=E:\反恐精英\cstrike\motd.txt4.选择人物的人物形象=E:\反恐精英\cstrike\gfx\vgui\里的TGA文件 本人一手一下打出来的 只求加分 谢谢!
这种网页模块怎么弄?要什么代码?
Html是英文HyperTextMarkupLanguage的缩写,中文意思是“超文本标志语言”,用它编写的文件(文档)的扩展名是.html或.htm,它们是可供浏览器解释浏览的文件格式。您可以使用记事本、写字板或FrontPageEditor等编辑工具来编写Html文件。Html语言使用标志对的方法编写文件,既简单又方便,它通常使用<标志名></标志名>来表示标志的开始和结束(例如<html></html>标志对),因此在Html文档中这样的标志对都必须是成对使用的。
Html的基本标志: 1.<html></html> <html>标志用于Html文档的最前边,用来标识Html文档的开始。而</html>标志恰恰相反,它放在Html文档的最后边,用来标识Html文档的结束,两个标志必须一块使用。 2.<head></head> <head>和</head>构成Html文档的开头部分,在此标志对之间可以使用<title></title>、<script></script>等等标志对,这些标志对都是描述Html文档相关信息的标志对,<head></head>标志对之间的内容是不会在浏览器的框内显示出来的。两个标志必须一块使用。 3.<body></body> <body></body>是Html文档的主体部分,在此标志对之间可包含<p>、</p>、<h1>、</h1>、<br>、<hr>等等众多的标志,它们所定义的文本、图像等将会在浏览器的框内显示出来。两个标志必须一块使用。<body>标志中还可以有以下属性:属性 用途 示例 <bodybgcolor="#rrggbb">设置背景颜色。<bodybgcolor="red">红色背景 <bodytext="#rrggbb">设置文本颜色。<bodytext="#0000ff">蓝色文本 <bodylink="#rrggbb">设置链接颜色。<bodylink="blue">链接为蓝色 <bodyvlink="#rrggbb">设置已使用的链接的颜色。<bodyvlink="#ff0000"> <bodyalink="#rrggbb">设置正在被击中的链接的颜色。<bodyalink="yellow"> 说明:以上各个属性可以结合使用,如<bodybgcolor="red"text="#0000ff">。引号内的rrggbb是用六个十六进制数表示的RGB(即红、绿、蓝三色的组合)颜色,如#ff0000对应的是红色。此外,还可以使用Html语言所给定的常量名来表示颜色:Black、White、Green、Maroon、Olive、Navy、Purple、Gray、Yellow、Lime、Agua、Fuchsia、Silver、Red、Blue和Teal,如<bodytext="Blue">表示<body></body>标志对中的文本使用蓝色显示在浏览器的框内。 4.<title></title> 使用过浏览器的人可能都会注意到浏览器窗口最上边蓝色部分显示的文本信息,那些信息一般是网页的“主题”,要将您的网页的主题显示到浏览器的顶部其实很简单,只要在<title></title>标志对之间加入您要显示的文本即可。注意:<title></title>标志对只能放在<head></head>标志对之间。
求一款js做的时间日历控件?
这个不难,在百度里搜索幻灯片。
幻灯片显示效果代码
--------------------------------------------------------------------------------
发表日期:2005年9月14日 已经有1734位读者读过此文
<style type="text/css">
<!--
select { font-family: "tahoma"; font-size: 10px; color: #666666}
input { font-family: "tahoma"; font-size: 10px; color: #000000; border: #666666; border-style: solid; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px}
-->
</style>
<SCRIPT LANGUAGE="JavaScript">
var rotate_delay = 1000; // delay in milliseconds (5000 = 5 secs)
current = 0;
function next() {
if (document.slideform.slide[current+1]) {
document.images.show.src = document.slideform.slide[current+1].value;
document.slideform.slide.selectedIndex = ++current;
}
else first();
}
function previous() {
if (current-1 >= 0) {
document.images.show.src = document.slideform.slide[current-1].value;
document.slideform.slide.selectedIndex = --current;
}
else last();
}
function first() {
current = 0;
document.images.show.src = document.slideform.slide[0].value;
document.slideform.slide.selectedIndex = 0;
}
function last() {
current = document.slideform.slide.length-1;
document.images.show.src = document.slideform.slide[current].value;
document.slideform.slide.selectedIndex = current;
}
function ap(text) {
document.slideform.slidebutton.value = (text == "Stop") ? "Start" : "Stop";
rotate();
}
function change() {
current = document.slideform.slide.selectedIndex;
document.images.show.src = document.slideform.slide[current].value;
}
function rotate() {
if (document.slideform.slidebutton.value == "Stop") {
current = (current == document.slideform.slide.length-1) ? 0 : current+1;
document.images.show.src = document.slideform.slide[current].value;
document.slideform.slide.selectedIndex = current;
window.setTimeout("rotate()", rotate_delay);
}
}
</script>
<body bgcolor="#FFFFFF" text="#000000">
<form name=slideform>
<table cellspacing=1 cellpadding=4 bgcolor="#000000">
<tr>
<td align=center bgcolor="white" width=200 height=200> <img src="地址1" name="show">
</td>
</tr>
<tr>
<td align=center bgcolor="#C0C0C0">
<select name="slide" onChange="change();">
<option value="地址1" selected>1
<option value="2.jpg">2
<option value="3.jpg">3
<option value="4.jpg">4
<option value="5.jpg">5
<option value="6.jpg">6
<option value="7.jpg">7
<option value="8.jpg">8
<option value="9.jpg">9
<option value="10.jpg">10
</select>
</td>
</tr>
<tr>
<td align=center bgcolor="#C0C0C0">
<input type=button onClick="first();" value="|<<" >
<input type=button onClick="previous();" value="<<" >
<input type=button name="slidebutton" onClick="ap(this.value);" value="开始" >
<input type=button onClick="next();" value=">>" >
<input type=button onClick="last();" value=">>|" >
</td>
</tr>
</table>
</form>
</body>
上面的这个仅是一个例子,效果不一定是兄弟想要的,但原理都是一样的,只需更改的地址部分即可。
这是我找到的一个js做的日历,不知道是不是你要的,里面有包含时间,其实在日历里面加时间也是比较简单的,只要调用DATE的方法就可以了,希望对你有用。下面是代码段,效果图附上。
<html>
<head>
<SCRIPT?LANGUAGE="JavaScript"?TYPE="text/javascript">
//定义月历函数
function?calendar()?{
var?today?=?new?Date();?//创建日期对象
year?=?today.getYear();?//读取年份
thisDay?=?today.getDate();?//读取当前日
//创建每月天数数组
var?monthDays?=?new?Array(31,?28,?31,?30,?31,?30,?31,?31,?30,?31,?30,?31);
//如果是闰年,2月份的天数为29天
if?(((year?%?4?==?0)?&&?(year?%?100?!=?0))?||?(year?%?400?==?0))?monthDays[1]?=?29;
daysOfCurrentMonth?=?monthDays[today.getMonth()];?//从每月天数数组中读取当月的天数
firstDay?=?today;//复制日期对象
firstDay.setDate(1);?//设置日期对象firstDay的日为1号
startDay?=?firstDay.getDay();?//确定当月第一天是星期几
//定义周日和月份中文名数组
var?dayNames?=?new?Array("星期日","星期一","星期二","星期三","星期四","星期五","星期六");
var?monthNames?=?new?Array("1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月");
//创建日期对象
var?newDate?=?new?Date();
//创建表格
document.write("<TABLE?BORDER='0'?CELLSPACING='0'?CELLPADDING='2'?ALIGN='CENTER'?BGCOLOR='#0080FF'>")
document.write("<TR><TD><table?border='0'?cellspacing='1'?cellpadding='2'?bgcolor='#88FF99'>");
document.write("<TR><th?colspan='7'?bgcolor='#C8E3FF'>");
//显示当前日期和周日
document.writeln("<FONT?STYLE='font-size:9pt;Color:#FF0000'>"?+?newDate.getYear()?+?"年"?+?monthNames[newDate.getMonth()]?+?"?"?+?newDate.getDate()?+?"日?"?+?dayNames[newDate.getDay()]?+?"</FONT>");
//显示月历表头
document.writeln("</TH></TR><TR><TH?BGCOLOR='#0080FF'><FONT?STYLE='font-size:9pt;Color:White'>日</FONT></TH>");
document.writeln("<th?bgcolor='#0080FF'><FONT?STYLE='font-size:9pt;Color:White'>一</FONT></TH>");
document.writeln("<TH?BGCOLOR='#0080FF'><FONT?STYLE='font-size:9pt;Color:White'>二</FONT></TH>");
document.writeln("<TH?BGCOLOR='#0080FF'><FONT?STYLE='font-size:9pt;Color:White'>三</FONT></TH>");
document.writeln("<TH?BGCOLOR='#0080FF'><FONT?STYLE='font-size:9pt;Color:White'>四</FONT></TH>");
document.writeln("<TH?BGCOLOR='#0080FF'><FONT?STYLE='font-size:9pt;Color:White'>五</FONT></TH>");
document.writeln("<TH?BGCOLOR='#0080FF'><FONT?STYLE='font-size:9pt;Color:White'>六</FONT></TH>");
document.writeln("</TR><TR>");
//显示每月前面的"空日"
column?=?0;
for?(i=0;?i<startDay;?i++)?{
document.writeln("?<TD><FONT?STYLE='font-size:9pt'>?</FONT></TD>");
column++;
}
//如果是当前日就突出显示(红色),否则正常显示(黑色)
for?(i=1;?i<=daysOfCurrentMonth;?i++)?{
if?(i?==?thisDay)?{
document.writeln("</TD><TD?ALIGN='CENTER'><FONT?STYLE='font-size:9pt;Color:#ff0000'><B>")
}
else?{
document.writeln("</TD><TD?BGCOLOR='#88FF99'?ALIGN='CENTER'><FONT?STYLE='font-size:9pt;font-family:Arial;font-weight:bold;Color:#000000'>");
}
document.writeln(i);
if?(i?==?thisDay)?document.writeln("</FONT></TD>")
column++;
if?(column?==?7)?{
document.writeln("<TR>");
column?=?0;
}
}
document.writeln("<TR><TD?COLSPAN='7'?ALIGN='CENTER'?VALIGN='TOP'?BGCOLOR='#0080FF'>")
document.writeln("<FORM?NAME='time'?onSubmit='0'><FONT?STYLE='font-size:9pt;Color:#ffffff'>")
//显示当前时间
document.writeln("当前时间:<INPUT?TYPE='Text'?NAME='textbox'?ALIGN='TOP'></FONT></TD></TR></TABLE>")
document.writeln("</TD></TR></TABLE></FORM>");
}
</SCRIPT>
<SCRIPT?LANGUAGE="JavaScript">
//初始化控制变量
var?timerID?=?null;
var?timerRunning?=?false;
//定义时间显示函数
function?stoptime?(){
if(timerRunning)
clearTimeout(timerID);
timerRunning?=?false;}
//定义显示时间函数
function?showtime?()?{
var?newDate?=?new?Date();
var?hours?=?newDate.getHours();
var?minutes?=?newDate.getMinutes();
var?seconds?=?newDate.getSeconds()
var?timeValue?=?"?"?+?((hours?>12)hours?-12?:hours)
timeValue?+=?((minutes?<?10)":0"?:?":")?+?minutes
timeValue?+=?((seconds?<?10)":0"?:?":")?+?seconds
timeValue?+=?(hours?>=?12)"?下午?"?:?"?上午?"
document.time.textbox.value?=?timeValue;
timerID?=?setTimeout("showtime()",1000);//设置超时,使时间动态显示
timerRunning?=?true;}
//显示当前时间
function?starttime?()?{
stoptime();
showtime();}
</SCRIPT>
</head>
<BODY?onLoad="starttime()"?TEXT="#000000"?TOPMARGIN="0">
<script?language="JavaScript"?type="text/javascript">
calendar();?//显示月历
</script>
</BODY>
</html>
本文来自作者[普树源]投稿,不代表五洲号立场,如若转载,请注明出处:https://m1.tzwzszyy.cn/jingyan/202508-21011.html
评论列表(3条)
我是五洲号的签约作者“普树源”
本文概览:1.界面背景=E:\反恐精英\cstrike\resource\background\里的TGA文件2.喷漆涂鸦=E:\反恐精英\cstrike\tempdecal.wad3....
文章不错《CS1.6修改》内容很有帮助