没错啊,可能跟IE的版本有关
http://www.kupage.com/webdesign/6/20040113/1602080000027uu7ws2a.htm
http://www.kupage.com/webdesign/6/20040113/1602080000027uu7ws2a.htm
解决方案 »
- 求JS入门视频 急急急
- javascript实现的另类本地化解决方案!
- 还是Jquery问题
- 页面有一个div标签、两个按钮,要求用按钮控制这个div的颜色,一个button将div背景设置为红色,另一个button将div背景设置为绿色。写了代码,就是没有效果帮看看
- div中如何实现超链接,我想把每个名字变成超链接。大虾救命啊!
- js对联广告在flash底层问题?
- 点击图片时,打开新窗口,并把图片按原来大小显示出来?
- 隐藏左框架问题
- 表单对象不支持submit属性,但是reset属性支持,为什么?
- 下拉式菜单联动问题,进来看看,高分
- 在IE中如何调试框架页面指定某一帧的脚本?
- 不知道为什么一个js的例子报错,怪事
// alert( readCookie("myCookie") );
function readCookie(name)
{
var cookieValue = "";
var search = name + "=";
if(document.cookie.length > 0)
{
offset = document.cookie.indexOf(search);
if (offset != -1)
{
offset += search.length;
end = document.cookie.indexOf(";", offset);
if (end == -1) end = document.cookie.length;
cookieValue = unescape(document.cookie.substring(offset, end))
}
}
return cookieValue;
}
// Example:
// writeCookie("myCookie", "my name", 24);
// Stores the string "my name" in the cookie "myCookie" which expires after 24 hours.
function writeCookie(name, value, hours)
{
var expire = "";
if(hours != null)
{
expire = new Date((new Date()).getTime() + hours * 3600000);
expire = "; expires=" + expire.toGMTString();
}
document.cookie = name + "=" + escape(value) + expire;
}