Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
353 views
in Technique[技术] by (71.8m points)

javascript - 关于帖子滑块(javascript)的看法是什么?(What is the opinion about post slider ( javascript ) [closed])

im Trying to improve my JavaScript skills, but i need some help from people who understand it good.

(im试图提高我的JavaScript技能,但是我需要一些了解它的人的帮助。)

Yesterday i made a simple post slider with JavaScript and i would like to know about quality of the slider.

(昨天我用JavaScript创建了一个简单的帖子滑块,我想知道滑块的质量。)

Would be nice to get some advices from developers.

(希望从开发人员那里获得一些建议。)

thanks for you time :)

(谢谢你的时间:))

 "use strict" var getElement = document.querySelector(".recipes-columns"); var move = 0; var cauntCol = getElement.querySelectorAll(".recipe-column").length; var fullWidth = (cauntCol * 240) - 960; function goLeft() { var getElement = document.querySelector(".recipes-columns"); if (fullWidth == move - 240 || move == 0) { move = 480; getElement.setAttribute("style", "transform:translateX(-" + move + "px);"); } else { move = move - 240; getElement.setAttribute("style", "transform:translateX(-" + move + "px);"); } } 

link to the script is here: http://jsfiddle.net/lexin31/zk7acx0q/10

(脚本的链接在这里: http : //jsfiddle.net/lexin31/zk7acx0q/10)

  ask by timas31 translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...