域名退款 真的可以有 name.com新购域名退款记

先说说我的悲惨经历吧,一个客户说要做电子商城的网站,看上一个.so的域名,说先让我替他购买,明天就给我付款,我于是就赶快着手购买,国内的.so域名太贵,少说150多,国外的godadday又没有.so的域名,于是去name.com看看,果然有,在此之前从未在name.com里消费过,于是通过paypal购买了一个.so的域名,悲剧也开始了。第二天联系此客户,说的很好,就是不付钱。于是我尝试要name.com给我 域名退款 吧,没想到会真的退款,于是我发了个邮件,内容如下:

because I register a wrong domain recently, can I return it?
please refund to me.
the domain is xxxx.so
my account name is xxxx
email is xxxx
thanks.

第二天,name.com给我的回复

Hello,

Thank you for contacting Name.com. Please take this email as confirmation that we have deleted the domain and refunded your PayPal account. Depending on PayPal, the funds should be available to you within a few days.

Please let us now if you need any additional assistance. We are happy to help!

Regards,
Sky
Name.com

好像要我确认对此次的 域名退款 ,给个简单的确认

thanks.

 

Hello,

Thanks for contacting Name.com. I am glad that XXXX was able to assist you with this issue. I am sorry for any confusion. Thanks for choosing Name.com and please feel free to contact us with any questions moving forward.

Kind Regards,

再登陆paypal账号,域名已经没有了。等着退款到paypal吧,域名退款 成功了,a happy day。

域名退款

discuz插件-如何在插件中调用插件变量

今天介绍discuz插件 开发,开发一个小小的插件练练手。

discuz插件 要做的功能是一件删除被审核帖子,于是在插件管理中定义了两个变量,一个是delmainart,表示是否一键删除主贴,delpostart表示是否一键删除回复贴。如图

 

 

 

设置了 discuz插件 变量,就可以通过插件管理来设置这些变量,如图

 

 

 

 

 

那么这写参数如何在插件代码中调用呢?这个问题对于一个 discuz插件 编写者新手来说,很关键,有人说从数据库可以调用到,但我第一直觉,这样是不是麻烦了点。肯定有更好的方法,于是参考其他插件代码,终于找到了。好了,现在建立一个插件文件吧。如图

 

 

插件代码

<?php
 /**
 *      邯郸搜搜网设计http://www.hdsoso.com 联系QQ:258268936
 */
	if(!defined('IN_DISCUZ')) {
		exit('Access Denied');
	}
	class plugin_hdsosoplugin{
	  function global_footer(){
        global $_G;
		$hdsosoplugin = $_G['cache']['plugin']['hdsosoplugin'];
		$delmainart = $hdsosoplugin['delmainart'];
		return "<script language='javascript'> alert('".$delmainart."'); </script>";
	  }
	}
?>

再刷新一下首页

 

 

 

哈哈,解决了 discuz插件 调用参数的问题,就又朝着插件编写进了一大步,而且离插件编写成功一件不远了,我预感到。同志们,一起努力吧!!!

 

无意中发现一个无间隙滚动的代码,很好用啊。

html代码:

<html>
<head>
<script src="Marquee.js" type="text/javascript"></script>
</head>
<body>

<div id="divFriendLinks" style="width:50px;height:50px;background-color:#ff0000;overflow:hidden;">
士大夫士大夫速度发疯似的速度速度速度sdfs dfsd fsdf士大夫速度发生大幅速度士大夫速度发生大幅士大夫似的发生的双方都速度
sdf
sd
fsd
f
sdf
sd
fsd
f
sd
fsd
f
sdf
sd
fsd
f
sd
fsd
f
sdf
sd
fsd
fsd
</div>
<script type="text/javascript">
    var _m = new Marquee("_m", "divFriendLinks", "left", 100, 1); //向上滚屏
</script>
</body>

</html>

Marquee.js代码:

/*
instance:创建的实例名称
marquee:滚动区域容器的ID,要求无填充,无边框,overflow为hidden
direction:滚动方向,值分别为:up,down,left,right
delay:滚动的速度,值最小为1,值越小越快
amount:滚动步进量,值最小为1,值越大越快
*/
function Marquee(instance, marquee, direction, delay, amount) {
    this.instance = instance; //实例名称
    this.marquee = document.getElementById(marquee);
    this.delay = delay;
    if (this.delay == null) {
        this.delay = 1;
    }
    this.amount = amount;
    if (this.amount == null) {
        this.amount = 1;
    }
    this.direction = direction;
    this.width = this.marquee.clientWidth;
    this.height = this.marquee.clientHeight;
    this.container = document.createElement("table");
    this.container.border = 0;
    this.container.cellspacing = "0"
    this.container.cellpadding = "0"
    var _HTML = this.marquee.innerHTML;
    this.marquee.innerHTML = "";
    this.marquee.appendChild(this.container);
    var _tr = this.container.insertRow(this.container.rows.length);
    var _td = _tr.insertCell(_tr.cells.length);
    _td.innerHTML = _HTML;
    _td.style.border = "none";
    this.scrollHeight = this.container.clientHeight;
    this.scrollWidth = this.container.clientWidth;
    switch (this.direction.toLowerCase()) {
        case "up":
        case "down":
            if (this.scrollHeight >= this.height) {
                var _tr = this.container.insertRow(this.container.rows.length);
                var _td = _tr.insertCell(_tr.cells.length);
                _td.innerHTML = _HTML;
                this.scrollHeight = this.container.clientHeight;
            }
            if (this.direction.toLowerCase() == "down") {
                this.marquee.scrollTop = this.scrollHeight / 2;
            }
            break;
        default:
            if (this.scrollWidth >= this.width) {
                var _td = _tr.insertCell(_tr.cells.length);
                _td.innerHTML = _HTML;
                this.scrollWidth = this.container.clientWidth;
            }

    }

    this.marquee.m = this;

    this.intervalId = null;
    this.marquee.onmouseover = function() {
        this.m.Stop();
    }
    this.marquee.onmouseout = function() {
        this.m.Start();
    }
    this.Start();
}
Marquee.prototype.Start = function() {
    this.intervalId = setInterval(this.instance + ".Scroll()", this.delay)
    //this.Scroll();
}
Marquee.prototype.Stop = function(sender) {
    if (this.intervalId != null) {
        clearInterval(this.intervalId);
    }
}
Marquee.prototype.Scroll = function() {
    switch (this.direction.toLowerCase()) {
        case "up":
            if ((this.marquee.scrollTop + this.height) >= this.scrollHeight) {
                this.marquee.scrollTop -= this.scrollHeight / 2
            }
            if (this.scrollHeight > this.height) {
                this.marquee.scrollTop += this.amount;
            }
            break;
        case "down":
            if (this.marquee.scrollTop <= 0) {
                this.marquee.scrollTop += this.scrollHeight / 2
            }
            if (this.scrollHeight > this.height) {
                this.marquee.scrollTop -= this.amount;
            }
            break;
        case "right":
            if (this.marquee.scrollLeft <= 0) {
                this.marquee.scrollLeft += this.scrollWidth / 2
            }
            if (this.scrollWidth > this.width) {
                this.marquee.scrollLeft -= this.amount;
            }
            break;
        default:
            if ((this.marquee.scrollLeft + this.width) >= this.scrollWidth) {
                this.marquee.scrollLeft -= this.scrollWidth / 2
            }
            if (this.scrollWidth > this.width) {
                this.marquee.scrollLeft += this.amount;
            }
    }
}

很方便,很强大,不敢独享,分享给大家。