下面这篇是国外的一篇文章。
https://www.jb51.net/article/20553.htm
复制代码 代码如下:
var sel = new Object();
var sel_num = 0;
function getCookieVal(offset) {
var endstr = document.cookie.indexOf(";", offset);
if (endstr == -1) endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}
function GetCookie(name) {
var arg = name + "=";
var alen = arg.length;
var clen = document.cookie.length;
//alert(document.cookie.length);
var i = 0;
while (i < clen) {
var j = i + alen;
if (document.cookie.substring(i, j) == arg)
return getCookieVal(j);
i = document.cookie.indexOf(" ", i) + 1;
if (i == 0) break;
}
return null;
}
function SetCookie(name, value, expires, path, domain, secure) {
document.cookie = name + "=" + escape(value) + ((expires) ? "; expires=" + expires.toGMTString() : "") + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : "");
return value;
}
function DeleteCookie(name) {
if (GetCookie(name) != null) {
SetCookie(name, "", null, "/", null);
}
}
function cookie_content() {
i = 0;
var content = "";
for (key in sel) {
if (i == 0) {
content += key + "[" + sel[key] + "]";
}
else {
content += "," + key + "[" + sel[key] + "]";
} i++;
}
return content;
}
function inni_data() {
var cookie_sel = new Object();
cookie_str = GetCookie("Member_COOKIE");
if (cookie_str != "" && cookie_str != null) {
cookie_sel = cookie_str.split(',');
for (var k = 0; k < cookie_sel.length; k++) {
i = cookie_sel[k].indexOf("[");
j = cookie_sel[k].indexOf("]");
sel[cookie_sel[k].substring(0, i)] = cookie_sel[k].substring(i + 1, j);
sel_num++;
}
draw();
}
}
function addMember(id, nm) {
if (!sel[id]) {
sel_num++; sel[id] = nm;
}
else
{sel[id] = nm;}
SetCookie("Member_COOKIE", cookie_content(), null, "/", null);
}
function draw() {
out = '';
for (key in sel) {
$("#"+key).val(sel[key] );
}
}
https://www.jb51.net/article/20553.htm
复制代码 代码如下:
var sel = new Object();
var sel_num = 0;
function getCookieVal(offset) {
var endstr = document.cookie.indexOf(";", offset);
if (endstr == -1) endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}
function GetCookie(name) {
var arg = name + "=";
var alen = arg.length;
var clen = document.cookie.length;
//alert(document.cookie.length);
var i = 0;
while (i < clen) {
var j = i + alen;
if (document.cookie.substring(i, j) == arg)
return getCookieVal(j);
i = document.cookie.indexOf(" ", i) + 1;
if (i == 0) break;
}
return null;
}
function SetCookie(name, value, expires, path, domain, secure) {
document.cookie = name + "=" + escape(value) + ((expires) ? "; expires=" + expires.toGMTString() : "") + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : "");
return value;
}
function DeleteCookie(name) {
if (GetCookie(name) != null) {
SetCookie(name, "", null, "/", null);
}
}
function cookie_content() {
i = 0;
var content = "";
for (key in sel) {
if (i == 0) {
content += key + "[" + sel[key] + "]";
}
else {
content += "," + key + "[" + sel[key] + "]";
} i++;
}
return content;
}
function inni_data() {
var cookie_sel = new Object();
cookie_str = GetCookie("Member_COOKIE");
if (cookie_str != "" && cookie_str != null) {
cookie_sel = cookie_str.split(',');
for (var k = 0; k < cookie_sel.length; k++) {
i = cookie_sel[k].indexOf("[");
j = cookie_sel[k].indexOf("]");
sel[cookie_sel[k].substring(0, i)] = cookie_sel[k].substring(i + 1, j);
sel_num++;
}
draw();
}
}
function addMember(id, nm) {
if (!sel[id]) {
sel_num++; sel[id] = nm;
}
else
{sel[id] = nm;}
SetCookie("Member_COOKIE", cookie_content(), null, "/", null);
}
function draw() {
out = '';
for (key in sel) {
$("#"+key).val(sel[key] );
}
}
华山资源网 Design By www.eoogi.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!
华山资源网 Design By www.eoogi.com
暂无评论...
稳了!魔兽国服回归的3条重磅消息!官宣时间再确认!
昨天有一位朋友在大神群里分享,自己亚服账号被封号之后居然弹出了国服的封号信息对话框。
这里面让他访问的是一个国服的战网网址,com.cn和后面的zh都非常明白地表明这就是国服战网。
而他在复制这个网址并且进行登录之后,确实是网易的网址,也就是我们熟悉的停服之后国服发布的暴雪游戏产品运营到期开放退款的说明。这是一件比较奇怪的事情,因为以前都没有出现这样的情况,现在突然提示跳转到国服战网的网址,是不是说明了简体中文客户端已经开始进行更新了呢?
更新日志
2024年11月19日
2024年11月19日
- 黑鸭子2008-男人女人[首版][WAV+CUE]
- 张佳佳 《FOLK SONG Ⅱ Impromptus OP.23(即兴曲7首)》[320K/MP3][98.71MB]
- 祖海 《我家在中国 (维也纳金色大厅独唱音乐会)》[320K/MP3][118.55MB]
- 祖海 《我家在中国 (维也纳金色大厅独唱音乐会)》[FLAC/分轨][268.08MB]
- 张信哲.1996-思念【EMI百代】【WAV+CUE】
- 江美琪.2024-圆的?圆的>华纳】【FLAC分轨】
- 许巍.2018-无尽光芒【和雅弘嘉】【WAV+CUE】
- 庆怜 CAELAN《THE HALF-BLOOD PRINCE 半血王子》[320K/MP3][65.72MB]
- 庆怜 CAELAN《THE HALF-BLOOD PRINCE 半血王子》[FLAC/分轨][378.53MB]
- Fine乐团《废墟游乐》[320K/MP3][105.13MB]
- 万山红.2009-花开原野万山红Vol.1-2【柏菲】2CD【WAV+CUE】
- 曾庆瑜1992-18首中英文经典全集[台湾派森][WAV整轨]
- 【上扬爱乐】群星-TheSoundsofLS35AVol.4情迷4【低速原抓WAV分轨】
- Fine乐团《废墟游乐》[Hi-Res][24bit 48kHz][FLAC/分轨][767.04MB]
- Cicada《回返 (十五周年自选集)》[320K/MP3][93.87MB]