Xici drop flower

var xici_user_api = "http://www.xici.net/apps/wedding/?method=wedding.user.getusername&from=comm_nav&jsoncallback=?";
var goldenflower_drop_api = "http://jinhua.xici.net/api/drop?userid={0}&username={1}&userlevel={2}&usercity={3}&activityid={4}&jsoncallback=?";
var goldenflower_accept_url = "http://jinhua.xici.net/gf/{0}/gift?aprid={1}";
var accepturl;

$.format = function (source, params) {
    if (arguments.length == 1)
        return function () {
            var args = $.makeArray(arguments);
            args.unshift(source);
            return $.format.apply(this, args);
        };
    if (arguments.length > 2 && params.constructor != Array) {
        params = $.makeArray(arguments).slice(1);
    }
    if (params.constructor != Array) {
        params = [params];
    }
    $.each(params, function (i, n) {
        source = source.replace(new RegExp("\\{" + i + "\\}", "g"), n);
    });
    return source;
};

function log(msg) {
    console.log(msg);
}

function getQueryString(name) {
    var jssrc = $(‘#goldenflower‘).attr(‘src‘);
    var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
    var r = jssrc.substring(jssrc.indexOf("?")).substr(1).match(reg);
    if (r != null) return unescape(r[2]); return null;
}

$.ajax({
    url: xici_user_api,
    type: ‘GET‘,
    scriptCharset: ‘GB2312‘,
    cache: false,
    async: true,
    dataType: ‘json‘,
    error: function () {
    },
    success: function (xiciDate) {
        if (xiciDate.Result.UserId > 0) {
            var activityid = getQueryString("activityid");
            var dropUrl = $.format(goldenflower_drop_api, xiciDate.Result.UserId, xiciDate.Result.UserName, xiciDate.Result.UserLevel, xiciDate.Result.UserCity, activityid);
            dropUrl = encodeURI(dropUrl);
            $.ajax({
                url: dropUrl,
                type: ‘GET‘,
                scriptCharset: ‘UTF-8‘,
                cache: false,
                async: true,
                dataType: ‘json‘,
                error: function () {
                },
                success: function (dropData) {
                    if (dropData.status) {
                        var body = $("body");
                        accepturl = $.format(goldenflower_accept_url, activityid, dropData.aprid);
                        var bottomHtml = $.format(dropHtml, dropData.flashurl, dropData.flashurl);
                        body.append(bottomHtml);
                    }
                }
            });
        }
    }
});

function Flash_ClickOpen() {
    document.getElementById(‘bottomToolbar‘).innerHTML = "";
    document.getElementById(‘bottomToolbar‘).style.display = ‘none‘;
    window.open(accepturl);
}

function Flash_ClickClose() {
    document.getElementById(‘bottomToolbar‘).innerHTML = "";
    document.getElementById(‘bottomToolbar‘).style.display = ‘none‘;
}

var dropHtml = ‘<div id="bottomToolbar"><object width="970" height="350"‘
+ ‘codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0"‘
+ ‘classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">‘
+ ‘<param value="{0}" name="movie">‘
+ ‘<param value="high" name="quality">‘
+ ‘<param value="transparent" name="wmode">‘
+ ‘<param value="exactfit" name="SCALE">‘
+ ‘<embed width="970" height="350" wmode="transparent" type="application/x-shockwave-flash"‘
+ ‘pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"‘
+ ‘quality="high" src="{1}">‘
+ ‘</object></div>‘;

http://jinhua.xici.net/api/drop?userid=15346193&username=wolfzz&userlevel=1&usercity=nanjing&activityid=1&jsoncallback=?
?({"status":true,"message":"success","aprid":338075,"flashurl":"http://www.xici.net/flash/suguo.swf","title":"苏果超市50元购物卡","shopname":"苏果超市","point":10})
http://jinhua.xici.net/gf/{0}/gift?aprid={1}
时间: 2024-11-07 09:30:00

Xici drop flower的相关文章

oracle中delete drop truncate的用法和区别

数据库的运维中,经常会遇到delete drop truncate的操作,那么如何去把握它们的用法和区别呢? 比如当数据库空间爆满,已经增长到存储空间单个存储文件的最大值32G.你需要通过一些办法释放掉表空间或者扩容表空间来解决问题. 一般当系统中大量使用分区表,而针对分区表清除数据,是不会释放表空间的,必须把分区drop掉,才会释放空间. 下面我们具体了解一下这三个命令: 一.delete 1.delete是DML,执行delete操作时,每次从表中删除一行,并且同时将该行的的删除操作记录在r

hive创建表失败,drop表失败

一.hive创建表失败,报错: CREATE TABLE pokes (foo INT, bar STRING);FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. MetaException(message:javax.jdo.JDODataStoreException: An exception was thrown while adding/validating class(

闪回drop恢复表后sql执行计划异常

-----正常执行计划 set autotrace traceonly set linesize 1000 select /*+index(t idx_object_id)*/ * from t where object_id=19; Execution Plan ---------------------------------------------------------- Plan hash value: 2041828949 ------------------------------

【MongoDB学习笔记7】深入MongoDB的删除(remove/drop)操作

先看集合post中文档信息: > db.post.find();     { "_id" : ObjectId("54a51cfd7f46906f81b7adcd"), "bar" : "baz" }     { "_id" : 0 }     { "_id" : 1 }     { "_id" : 2 }     { "_id" : 5, 

Atitit。D&amp;D drag&amp;drop拖拽功能c#.net java swing的对比与实现总结

Atitit.D&D drag&drop拖拽功能c#.net java swing的对比与实现总结 1. 实现一个D&D操作一般包括三个步骤: 1 2. .net黑头的拖曳机制.必须有DragEnter事件(单独写DragDrop事件是不会具有拖拽功能的) 2 3. ---java黑头的拖曳..必须有DragEnter事件(单独写 Drop事件是不会具有拖拽功能的) 2 4. 代码 3 5. 参考 5 1. 实现一个D&D操作一般包括三个步骤: 首先实现一个拖拽源,这个拖拽

keepalived启动后iptables自动添加Drop规则

keepalived 在启动后如果参数配置不当,会在iptables中自动添加一条DROP VIP的规则.这里的一些参数可能会造成这个问题. 1.在配置中添加了strict 或 noaccept参数. 2.在全局配置下使用了vrrp_strict 参数.此参数为严格控制VRRP协议,不支持单播模式,注释掉此选项,将不会默认添加DROP规则.

ORA-01940: cannot drop a user that is currently connected

操作环境 SuSE11+Oracle11gR2 问题现象 删除oracle数据库用户失败,提示ORA-01940: cannot drop a user that is currently connected错误 问题分析 NA 问题解决 1.SQL>SELECT SID,SERIAL# FROM V$SESSION WHERE USERNAME='USERNAE'; 2.SQL>ALTER SYSTEM DISCONNECT SESSION 'SID,SERIAL#' IMMEDIATE;

oracle中delete、truncate、drop的区别

oracle中delete.truncate.drop的区别 标签: deleteoracletable存储 2012-05-23 15:12 7674人阅读 评论(0) 收藏 举报  分类: oracle(2)  版权声明:本文为博主原创文章,未经博主允许不得转载. 一.delete 1.delete是DML,执行delete操作时,每次从表中删除一行,并且同时将该行的的删除操作记录在redo和undo表空间中以便进行回滚(rollback)和重做操作,但要注意表空间要足够大,需要手动提交(c

ural 2020 Traffic Jam in Flower Town

2020. Traffic Jam in Flower Town Time limit: 1.0 secondMemory limit: 64 MB Having returned from Sun City, Dunno told all his friends that every shorty may have a personal automobile. Immediately after that so many citizens took a fancy of becoming ro