-
/*读取cookie*/ var res=document.cookie.subtring(5); //subtring(5)表示从name=www.open.com.cn第5个字符取值 //若果没有cookie执行以下动作 if(res!="www.open.com.cn"){ /*添加cookie*/ var oDate=new Date();//新建时间 oDate.setDate(oDate.getDate()+30);//强制设置cookie保存的时间为30天 document.cookie="name=www.open.com.cn;expires="+oDate; //expires表示cookie失效的日期 //name为网址 //再加新手引导的JS }查看全部
-
filter:alpha(opacity=50)查看全部
-
绝对定位使标签居中方法: position:absolute; left:50%; margin-left:标签的宽度/2(宽度的一半)查看全部
-
//读取cookie var res = document.cookie.substring(5); //如果没有cookie,执行以下动作 if(res!="www.open.com.cn"){ 执行新手操作 //添加cookie var oDate = new Date(); oDate.setDate(oDate.getDate()=30) document.cookie="name=www.open.com.cn;expires="+oDate; } expires 值保留的时间查看全部
-
aA[i].index=i;//为每一个按钮增加一个index属性,为后面引用做好准备查看全部
-
mask的透明度:opacity:0.5;/*for FF和gg瀏覽器*/ filter:alpha(opacity:50);/*IE特有*/查看全部
-
实现过程:html结构,css样式绝对定位并全部隐藏,事件逻辑,cookie信息~~查看全部
-
交互模拟查看全部
-
判断cookie中是否有数据 !getCookie('arrial')或者!getCookie("arrial");查看全部
-
只有火狐浏览器才支持本地写cookie的测试,因为是与服务器交换数据的过程 expires失效时间,获取当前时间,设置失效时间 使用cookie向客户端存储设置信息 往电脑写cookie的行为是服务器行为。只有访问服务器,服务器才会往电脑写cookie。 但是firefox是支持本地往电脑写cookie的。所以我们用firefox来做这种本地的测试。 cookie功能document.cookie="name=www.open.com.cn; expires="+oDate; expires表示失效日期 var oDate=new Date(); oDate.setDate(oDate..getDAte()+30);表示在当前日期+30天查看全部
-
使用absolute定位使页面居中对齐方法: position:absolute; left:50%; margin-left:-490px(页面宽度的一半) text-indent:文本缩进;overflow:hidden;文本隐藏;查看全部
-
兼容: 浏览器:opacity:50%,IE:filter:alpha{opacity=50} body height:100%; html height:100%; 因为mask是height:100%;使得mask能够撑开。查看全部
-
jquery实现引导层方法查看全部
-
读写cookie实例查看全部
-
已经学完查看全部
举报
0/150
提交
取消