How i can make this function in javascript

visit shbcf.ru