javascript 获取css 属性
我们有时获取 styl.width为空的时候,可以获取css中的width..
但ie and ff 是不同的。。
ie:
obj.currentStyle['width']
ff:
var css = document.defaultView.getComputedStyle(obj, null);
css.getPropertyValue('width')
相关文档:
一个非常实用的javascript读写Cookie函数
function GetCookieVal(offset)
//获得Cookie解码后的值
{
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}
function SetCookie(name, v ......
JavaScript是由Netscape开发的广泛用于数百万网页和服务器应用程序的对象脚本语言。Netscape的JavaScript是ECMA-262第三版(ECMAScript)标准脚本语言的一个超集,只与发行标准有些许不同(mild differences)。
与广泛的误解相反,JavaScript不是“解释型的Java”。准确的说(In a nutshell),JavaScript是支持 ......
//状态栏飞入文字
function statusMessageObject(p,d) { <!--????????????-->
this.msg = MESSAGE
this.out = " "
this.pos = POSITION
this.delay = DELAY
this.i = 0
this.reset = clearMessage
}
function clearMessage( ......
var OnPasteCheckIntNum = function()
{
if(window.clipboardData)
{
if(isNaN(window.clipboardData.getData('text')))
{
......