js常用属性及函数
event.clientY
event.offsetX
event.offsetY
document.write(document.lastModified)
document.ondblclick=x
document.onmousedown=x
document.body.scrollTop;
document.body.scrollLeft;
document.title
document.bgcolor
document.Fgcolor
document.linkcolor
document.alinkcolor
document.VlinkColor
document.forms.length
document.anchors.length
document.links.length
document.onmousedown=x
document.ondblclick=x
defaultStatus
function
isNumeric
innerHTML
innerText
location.reload();
Math.random()
Math.floor(number)
Math.min(1,2)
Math.max(1,2)
navigator.appName
navigator.appVersion
navigator.appCodeName
navigator.userAgent
onsubmit
opener
prompt
parent
return
random
reset()
split("")
submit()
String对象的
lastIndexOf("string")
indexOf("string")
LowerCase()
UpperCase()
substring(0,5)
setTimeout("function",time)
setInterval("function",time)
toLocaleString()
typeof(变量名)
window.event.button==1/2/3
window.screen.availWidth
window.screen.availHeight
window.screen.width
window.screen.height
window.document.body.offsetHeight;
window.document.body.offsetWidth;
window.resizeTo(0,0)
window.moveTo(0,0)
window.focus()
window.scroll(x,y)
window.open()
属性:toolbar(工具栏),location(地址栏),directions,status(状态栏),
menubar(菜单栏),scrollbar(滚动条),resizable(改变大小),
window.location
a=new
y=a.getYear();
y1=a.getFullYear();
m=a.getMonth();
d=a.getDate();
d1=a.getDay();
h=a.getHours();
m1=a.getMinutes();
s=a.getSeconds();
对象.style.fontSize="文字大小";
单位:mm/cm/in英寸/pc帕/pt点/px象素/em文字高
1in=1.25cm
1pc=12pt
1pt=1.2px(800*600分辩率下)
文本字体属性:
fontSize大小
family字体
color颜色
fontStyle风格,取值为normal一般,italic斜体,oblique斜体且加粗
fontWeight加粗,取值为100到900不等,900最粗,light,normal,bold
letterSpacing间距,更改文字间距离,取值为,1pt,10px,1cm
textDecoration:文字修饰;取值,none不修饰,underline下划线,overline上划线
background:文字背景颜色,
backgroundImage:背景图片,取值为图片的插入路径
点击网页正文函数调用触发器:
1.onClick
2.onLoad
3.onUnload
4.onmouseover
5.onmouseout
6.onmouseup
7.onmousedown
8.onFocus
9.onSelect
10.onChange
11.onBlur
onsubmit=return(ss())表单调用时返回的值
直线
虚线
点划线
双线
槽状
脊状
1.边缘高光glow(color=颜色,strength=亮光大小)
2.水平翻转fliph()
3.垂直翻转flipv()
4.对象模糊blur(add=true/false
add指定是否按印象画派进行模糊direction模糊方向strength模糊强度
5.对象透明alpha(opaction=0-100,finishopacity=0-100,style=0/1/2/3)
opaction对象整体不透明值finishopacity当对象利用了渐透明时该项指定结束透明位置的不透明值style指定透明方式0为整体透明,1为线型透明,2为圆型透明,3为矩形透明
6.去除颜色chroma(color=颜色值)使对象中颜色与指定颜色相同区域透明
7.建立阴影dropshadow(color=阴影颜色,offx=水平向左偏离像素,offy=水平向下偏离像素)
8.去色gray()使对象呈灰度显示
9.负片效果invert()使对象呈底片效果
10.高光light()使对象呈黑色显示
11.遮盖mask(color=颜色)使整个对象以指定颜色进行蒙板一次
opacity
finishopacity表想要设置的渐变透明效果.0~100.
style
startx.starty表渐变透明效果的开始时X和Y坐标.
finishx,finishy渐变透明效果结束时x,y
add有来确定是否在模糊效果中使有原有目标.值为0,1.0表"否",1表"是".
direction设置模糊的方向.0度表垂直向上,45度为一个单位.默认值是向左270度.left,right,down,up.
strength
color要透明的颜色.
offx,offy分别是x,y
positive指投影方式.0表透明像素生成阴影.1表只给出不透明像素生成阴影..
AddAmbient:加入包围的光源.
AddCone:加入锥形光源.
AddPoint加入点光源
Changcolor:改变光的颜色.
Changstrength:改变光源的强度.
Clear:清除所有的光源.
MoveLight:移动光源.
freq是波纹的频率,在指定在对象上一区需要产生多少个完事的波纹.
lightstrength可对于波纹增强光影的效果.显著0~100正整数,正弦波开始位置是0~360度.0表从0度开始,25表从90度开始.
strength表振幅大小.
hand
crosshair
text
wait
default
help
e-resize
ne-resize
n-resize
nw-resize
w-resize
s-resize
sw-resize
se-resize
auto