您正在查看 "脚本语言(javascript)" 分类下的文章 2007年05月07日 星期一 19:53 <!-- 中国农历开始 -->
<SCRIPT language=JavaScript>
<!--
var lunarInfo=new Array(
0x04bd8,0x04ae0,0x0a570,0x054d5,0x0d260,0x0d950,0x16554,0x056a0,0x09ad0,0x055d2,
0x04ae0,0x0a5b6,0x0a4d0,0x0d250,0x1d255,0x0b540,0x0d6a0,0x0ada2,0x095b0,0x14977,
0x04970,0x0a4b0,0x0b4b5,0x06a50,0x06d40,0x1ab54,0x02b60,0x09570,0x052f2,0x04970,
0x06566,0x0d4a0,0x0ea50,0x06e95,0x05ad0,0x02b60,0x186e3,0x092e0,0x1c8d7,0x0c950,
0x0d4a0,0x1d8a6 |
2007年04月27日 星期五 8:34 js对flash的操作
Play() 播放动画
StopPlay() 停止动画
IsPlaying() 动画是否正在播放
GotoFrame(frame_number) 跳转到某帧
TotalFrames() 获取动画总帧数
CurrentFrame() 回传当前动画所在帧数1
Rewind() 使动画返回第一帧
SetZoomRect(left,top,right,buttom) 放大指定区域
Zoom(percent) 改变动画大小
Pan(x_position,y_position,unit) 使动画在x,y方向上平移
PercentLoaded() 返回动画被载入的百分比
LoadMovie(level_number,path) 加载动画
TGotoFrame( |
2007年04月25日 星期三 20:59 // JavaScript Document
function WriteFlash(flash,_width,_height) {
document.writeln("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0\" width=\"" + _width + "\" height=\"" + _height + "\">");
document.writeln(" <param name=\"movie\" value=\"" + flash + "\" />");
document.writeln(" <param name=\"quality\" value |
2007年04月25日 星期三 19:07 <html>
<head>
<title>无限级树形菜单</title>
<style>
#A1 td { vertical-align: top; }
#A1 td.bj { font-family: Wingdings; color: #FF9933; text-align: center; }
#A1 td.bj , #A1 td.kg { width: 24; }
#A1 a:link , #A1 a: visited { color: #cc0080; text-decoration: none; }
#A1 a:hover { color: #0ff080; text-decoration: none; }
</style>
<script language="JavaScript">
function m_start(name,t |
2007年04月25日 星期三 18:50 <html>
<head>
<title>随鼠标飞舞的文字!</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<Meta name="Author" Content="王恺,adverse@126.com">
<style>
.spanstyle { position:absolute; visibility:visible; top:-50px; font-size:18pt; font-family:华文行楷; font-weight:bold; color:black; cursor:default; }
</style>
<script>
var x,y; |
2007年04月24日 星期二 20:01 <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>仿QQ导航菜单</title>
<style type="text/css">
.titleStyle{
background-color:#008800;color:#ffffff;border-top:1px solid #FFFFFF;font-size:9pt;cursor:hand;
}
.contentStyle{
background-color:#eeffee;color:blue;font-size:9pt;
}
a{
color:blue;
}
body{
font-size:9pt;
}
</style> |
2007年04月23日 星期一 13:45 <html>
<head>
<title>Add Files</title>
<style>
a.addfile {
background-image:url(http://p.mail.163.com/js31style/lib/0703131650/163blue/f1.gif);
background-repeat:no-repeat;
background-position:-823px -17px;
display:block;
float:left;
height:20px;
margin-top:-1px;
position:relative;
text-decoration:none;
top:0pt;
width:80px; |
2007年04月20日 星期五 10:42 <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>自定义Title</title>
</head>
<body >
<p><B>自定义Title</B>(IE & FireFox...):把鼠标放在下面的文字上查看效果</p>
<span title="Javascript" title="">默认效果</span><br><br>
<span title="<marquee style='width:60px;'>www.azhong.com</marquee>" altbg="red" altcolor="y |
2007年04月20日 星期五 10:34 <SCRIPT LANGUAGE="JavaScript" defer>
<!--
function scrollTextarea(obj)
{
var textareaMin = 1
var textareaMax = 255
var o_Top = obj.scrollTop
if (obj.scrollTop == 2)
{
obj.value = (parseInt(obj.value) > textareaMax-1)?textareaMin:(parseInt(obj.value)+1)
|
2007年04月20日 星期五 9:54 | | |