导入网页插件:未命名(当前用户:0,总安装次数:0)
<style>
#bar_f{background-color:#FFF;border:solid 1px #08C;padding:0px;margin:0px;position:fixed;z-index:101;text-align:center;width:100px;}
#bar_f a:hover {color:#FFF;background-color:#08C;}
#bar_title{background-color:#08C;cursor:move;height:5px;}
#backto{width:100%;padding:0px;margin:0px;display:block;cursor:n-resize;}
</style>
<div id="bar_f" >
<div id="bar_title"></div>
<a href="javascript:scroll(0,0)" title="回顶↑" id="backto">▲</a> <div class="floor_fold_bar" id="floor_fold_bar_0"></div> <a href="javascript:scroll(0,document.body.scrollHeight)" title="底部↓" id="backto">▼</a>
</div>
<div style="height:55px !important;"></div>
<script type="text/javascript" language="javascript">
(function ($) {
$.getUrlParam = function (name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
var r = window.location.search.substr(1).match(reg);
if (r != null) return decodeURIComponent(r[2]); return null;
}
})(jQuery);
window.onload=function(){
window.sessionStorage.bar_content = null;
}
var posX;
var posY;
var fdiv = document.getElementById("bar_f");
if (window.localStorage.bar_left) {
fdiv.style.left = window.localStorage.bar_left;
fdiv.style.top = window.localStorage.bar_top;
} else {
fdiv.style.left = '0px';//初始位置
fdiv.style.top = '0px';
}
document.getElementById("bar_title").onmousedown=function(e)
{
if(!e) e = window.event; //IE
posX = e.clientX - parseInt(fdiv.style.left);
posY = e.clientY - parseInt(fdiv.style.top);
document.onmousemove = bar_mousemove;
document.onmouseup = bar_mouseup;
}
function bar_mousemove(ev)
{
if(ev==null) ev = window.event;//IE
fdiv.style.left = (ev.clientX - posX) + "px";
fdiv.style.top = (ev.clientY - posY) + "px";
}
function bar_mouseup(ev)
{
if(ev==null) ev = window.event;//IE
window.localStorage.bar_left = fdiv.style.left;
window.localStorage.bar_top = fdiv.style.top;
document.onmousemove = null;
document.onmouseup = null;
}
$(document).ready(function(){
$("#backto").hide();
$(function () {
$(window).scroll(function(){
if ($(window).scrollTop()>200){
$("#backto").fadeIn(500);
}
else
{
$("#backto").fadeOut(500);
}
});
$("#backto").click(function(){
$('body,html').animate({scrollTop:0},200);
return false;
});
});
});
function Show_Hidden(trid){
if(trid.style.display=="block"){
trid.style.display='none';
}else{
trid.style.display='block';
}
}
function insertText(obj, str) {
if (document.selection) {
var sel = document.selection.createRange();
sel.text = str;
} else if (typeof obj.selectionStart === 'number' && typeof obj.selectionEnd === 'number') {
var startPos = obj.selectionStart,
endPos = obj.selectionEnd,
cursorPos = startPos,
tmpStr = obj.value;
obj.value = tmpStr.substring(0, startPos) + str + tmpStr.substring(endPos, tmpStr.length);
cursorPos += str.length;
obj.selectionStart = obj.selectionEnd = cursorPos;
} else {
obj.value += str;
}
}
$(function(){
var head = "<!-- markdown -->\n";
var tail = "\n[span=color:#fff;font-size:10px;background:#ff6700;display:inline-block;padding:2px 5px;border-radius:3px;margin-left:5px;float:right]来自 Redmi Note5[/span]";
$('#reply_topic_button,#quick_chat_button,#post_topic_button').click(function(){
var content = $('#content').val();
if (head == content.substr(0, head.length)) head = '';
if (tail == content.substr(-tail.length)) tail = '';
$('#content').val(head + content + tail);
})
});
$(document).ready(function () {
$("#content").after('<p id="face"><img title="不高兴" src="/tpl/classic/img/face/e4b88de9ab98e585b4.gif" /><img title="乖" src="/tpl/classic/img/face/e4b996.gif" /><img title="冷" src="/tpl/classic/img/face/e586b7.gif" /><img title="勉强" src="/tpl/classic/img/face/e58b89e5bcba.gif" /><img title="吐舌" src="/tpl/classic/img/face/e59090e8888c.gif" /><img title="吐" src="/tpl/classic/img/face/e59090.gif" /><img title="呵呵" src="/tpl/classic/img/face/e591b5e591b5.gif" /><img title="呼" src="/tpl/classic/img/face/e591bc.gif" /><img title="咦" src="/tpl/classic/img/face/e592a6.gif" /><img title="哈哈" src="/tpl/classic/img/face/e59388e59388.gif" /><img title="啊" src="/tpl/classic/img/face/e5958a.gif" /><img title="喷" src="/tpl/classic/img/face/e596b7.gif" /><img title="太开心" src="/tpl/classic/img/face/e5a4aae5bc80e5bf83.gif" /><img title="委屈" src="/tpl/classic/img/face/e5a794e5b188.gif" /><img title="开心" src="/tpl/classic/img/face/e5bc80e5bf83.gif" /><img title="怒" src="/tpl/classic/img/face/e68092.gif" /><img title="惊哭" src="/tpl/classic/img/face/e6838ae593ad.gif" /><img title="惊讶" src="/tpl/classic/img/face/e6838ae8aeb6.gif" /><img title="汗" src="/tpl/classic/img/face/e6b197.gif" /><img title="泪" src="/tpl/classic/img/face/e6b3aa.gif" /><img title="滑稽" src="/tpl/classic/img/face/e6bb91e7a8bd.gif" /><img title="狂汗" src="/tpl/classic/img/face/e78b82e6b197.gif" /><img title="疑问" src="/tpl/classic/img/face/e79691e997ae.gif" /><img title="真棒" src="/tpl/classic/img/face/e79c9fe6a392.gif" /><img title="睡觉" src="/tpl/classic/img/face/e79da1e8a789.gif" /><img title="笑眼" src="/tpl/classic/img/face/e7ac91e79cbc.gif" /><img title="花心" src="/tpl/classic/img/face/e88ab1e5bf83.gif" /><img title="鄙视" src="/tpl/classic/img/face/e98499e8a786.gif" /><img title="酷" src="/tpl/classic/img/face/e985b7.gif" /><img title="钱" src="/tpl/classic/img/face/e992b1.gif" /><img title="阴险" src="/tpl/classic/img/face/e998b4e999a9.gif" /><img title="黑线" src="/tpl/classic/img/face/e9bb91e7babf.gif" /></p>');
$('#face img').click(function () {
var face = "{" + $(this).attr("title") + "}";
insertText(document.getElementById("content"), face);
});
});
</script>
•修改【底部】按钮(通过js实现)
•添加小尾巴
•表情加入

来自 Redmi Note5