如何放置不可移动的信用链接 [英] how to put non removable credit link

查看:45
本文介绍了如何放置不可移动的信用链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的博客模板上放置一个不可移动的信用链接,但我不知道该怎么做.我已经看到许多使用它的模板,但是它们正在揭示自己的秘密. 他们所有人都混淆了他们的代码. 这是我要练习的以下内容.

<a href="http://www.example.com" id="credit">Site name</a>

当他们更改example.com时-他们将被重定向到example.com 当他们删除或更改信用"类别时,它们将被重定向.

他们将javascript代码放在前面.

解决方案

是的,可以,但是必须在模板中使用JQuery.

<script type='text/javascript'> 
//<![CDATA[
$(document).ready(function()
{
var aa=$("#mycredit").val();
if (aa == null) {
    window.location.href = "http://www.example.com/";
};
$("#mycredit").attr("href","
http://www.example.com/");
});
//]]>
</script>

在添加了上面的代码之后,将下面的代码添加到您想在其中添加信用链接的页脚中...

<div id='#mycredit'>
Designed By <a href='http://www.example.com/' id='#mycredit'>Example Company</a>
</div>

在两个代码中从上至下将URL替换为您的URL.现在,为了安全起见,请使用 Javascript Obfuscator 和其他Blogger模板一起对上述JQuery进行加密. >

I want to put a non removable credit link on my blogger templates but I don't know how. I have seen many templates using it but they are revealing their secrets. All of them obfuscate their codes. This is the below that I want to hapen.

<a href="http://www.example.com" id="credit">Site name</a>

When they change the example.com - they will be redirected to example.com when they remove or change the class "credit" they will be redirected..

They are putting their javascript code before .

解决方案

Yes, You can but you have to use a JQuery in your template for this.

<script type='text/javascript'> 
//<![CDATA[
$(document).ready(function()
{
var aa=$("#mycredit").val();
if (aa == null) {
    window.location.href = "http://www.example.com/";
};
$("#mycredit").attr("href","
http://www.example.com/");
});
//]]>
</script>

And after adding above code, add the below code in your footer where you want to write your credit link...

<div id='#mycredit'>
Designed By <a href='http://www.example.com/' id='#mycredit'>Example Company</a>
</div>

Replace the URL from above to your on in both codes. Now for safty, Encrypt the above JQuery with your Blogger Template other JQuery using Javascript Obfuscator

这篇关于如何放置不可移动的信用链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆