rarbg预览图变大图JS

都几百年了还用小图,看的眼睛都斗鸡了

< Feedback on rarbg预览图变大图JS

Question/comment

§
Posted: 08.07.2018
Edited: 08.07.2018

改了一下预览图的位置, 老显示在上面太别扭了

function newPos() { var pop = document.getElementById("overlib");//获取div document.onmousemove = function(c) { if(c.screenY <= screen.height / 2){ pop.style.top = c.pageY - 16 + "px"; }else{ pop.style.bottom = c.pageY + 16 + "px"; } pop.style.left = c.pageX + 16 + "px"; }; }

效果是跟随鼠标, 根据位置决定上对齐还是下对齐, 这里要是像github能发pull request就好了

@JimmyZ 说道: function newPos() { var pop = document.getElementById("overlib");//获取div document.onmousemove = function(c) { if(c.screenY <= screen.height / 2){ pop.style.top = c.pageY - 16 + "px"; }else{ pop.style.bottom = c.pageY + 16 + "px"; } pop.style.left = c.pageX + 16 + "px"; }; }

效果是跟随鼠标, 根据位置决定上对齐还是下对齐, 这里要是像github能发pull request就好了

能否显示九宫格? 或者在旁边直接加一个按钮显示九宫格图片...

Post reply

Sign in to post a reply.