Javascript такой ява такой скрипт

Вот не хотел же изучать все эти хитромудрые конструкции.

А пришлось.

Нужно было на главной Nolix сделать «гармошку» с табами. Погуглил — куча готовых решений… и все с использованием jquery.

Совесть не позволила мне из-за простенького скрипта подключать еще тучу лишних килобайт jquery.js и пришлось познакомиться с языком Javacript.

«- Что еще за гармошка?«  Как что? Вот эта:

Для реализации задуманного оказалось необходимо всего ничего, за часик можно врубиться в основу.

Очередной мануал который я рекомендую — Просто и без воды про Javascript.

14 коммент.

  • 13 октября 2010 | 5:58

    это не гармошка, а табы просто. а гармошка чаще называется аккордеон, и по accordion можно было бы найти скрипт например такой http://www.p51labs.com/accordion/ или такие http://tutorialblog.org/10-javascript-accordion-scripts/

  • Сергей Шепелев
    13 октября 2010 | 12:44

    У них в англ. нет слов гармошка, поэтому они называют это аккордеон.

    Я, ради интереса, скачал — http://www.nyokiglitter.com/tutorials/tabs.html — вот такая же гармошка с табами.
    Размер js файлов суммарно — 12 кб !!!

    Совсем можно офигеть)) А у меня считанные байты получились.

  • 7 мая 2019 | 12:55

    My spouse and i felt quite contented Albert managed to do his investigations out of the precious recommendations he made out of your web site. It’s not at all simplistic just to find yourself giving away solutions which usually the others could have been selling. So we fully grasp we need the website owner to thank for that. All the explanations you have made, the easy site navigation, the relationships you help foster — it is mostly amazing, and it’s facilitating our son in addition to our family reason why this idea is entertaining, which is wonderfully fundamental. Thank you for the whole lot!

  • 11 мая 2019 | 12:02

    I would like to convey my appreciation for your kindness for men and women who really want help with this particular area. Your special dedication to passing the message around became definitely productive and have always permitted many people like me to reach their endeavors. The invaluable recommendations entails this much to me and substantially more to my peers. Regards; from everyone of us.

  • 16 мая 2019 | 0:19

    My husband and i ended up being absolutely cheerful Edward managed to deal with his homework using the ideas he obtained in your web site. It’s not at all simplistic to just possibly be handing out helpful hints some people have been making money from. We fully grasp we have the blog owner to appreciate for this. Most of the illustrations you have made, the straightforward site navigation, the friendships you aid to foster — it’s got many spectacular, and it’s really facilitating our son in addition to our family feel that the subject is enjoyable, and that’s unbelievably vital. Many thanks for all!

  • 16 мая 2019 | 8:56

    I am only writing to make you be aware of of the outstanding encounter my wife’s child had visiting your web page. She learned some things, which included what it’s like to have an excellent helping spirit to have folks easily know precisely several complicated issues. You undoubtedly did more than my desires. Many thanks for rendering these necessary, dependable, edifying and unique tips on the topic to Evelyn.

  • 20 мая 2019 | 8:54

    My spouse and i felt now lucky that Peter managed to deal with his studies through the entire ideas he got using your web page. It’s not at all simplistic just to find yourself making a gift of guidelines which often people could have been selling. And we also already know we need the blog owner to be grateful to for that. The entire illustrations you’ve made, the simple site menu, the relationships your site aid to instill — it’s got all great, and it is helping our son in addition to us recognize that this topic is amusing, which is really indispensable. Many thanks for all!

  • 28 мая 2019 | 10:58

    I needed to compose you a little remark in order to say thank you as before with your stunning ideas you have shared in this article. This is certainly extremely open-handed with you to present unhampered precisely what many individuals would’ve offered as an e book to make some bucks on their own, notably since you might have done it if you ever decided. These ideas in addition acted to provide a great way to realize that some people have similar keenness similar to my own to figure out good deal more in respect of this problem. I’m sure there are numerous more pleasant times ahead for those who scan your website.

  • 1 июня 2019 | 14:02

    Thank you so much for giving everyone an extremely spectacular opportunity to read from this blog. It can be so fantastic and as well , stuffed with a lot of fun for me and my office fellow workers to visit your website really three times weekly to find out the fresh issues you will have. And lastly, I’m at all times fascinated considering the dazzling methods you serve. Some two facts in this post are surely the most beneficial I have ever had.

  • 5 июня 2019 | 13:40

    I in addition to my guys have already been following the excellent tricks from your website while all of a sudden got a terrible feeling I never expressed respect to the web blog owner for those secrets. All of the ladies had been totally very interested to study them and already have definitely been taking pleasure in those things. Appreciate your being quite helpful and also for making a decision on variety of notable information most people are really needing to understand about. My personal sincere regret for not saying thanks to you sooner.

  • 9 июня 2019 | 2:42

    Thank you for your whole effort on this site. My mother enjoys conducting investigations and it is obvious why. Almost all notice all regarding the compelling method you present good strategies via the web site and as well as inspire participation from other ones on that content and our own girl is in fact discovering a whole lot. Have fun with the remaining portion of the year. You’re conducting a first class job.

  • 12 июня 2019 | 11:51

    I in addition to my buddies were actually reading through the good advice from the blog and so before long got an awful suspicion I had not expressed respect to the blog owner for those strategies. These boys came consequently joyful to learn all of them and have surely been having fun with them. We appreciate you getting considerably thoughtful and also for picking such notable ideas millions of individuals are really eager to understand about. Our own honest regret for not expressing gratitude to you sooner.

  • 14 июня 2019 | 17:09

    I needed to compose you that bit of note to finally give many thanks over again about the fantastic tips you have shown on this page. It’s quite unbelievably generous with people like you to supply publicly just what numerous people would have marketed for an electronic book to get some profit on their own, notably considering that you might well have tried it in case you decided. These tricks in addition acted to be a good way to fully grasp someone else have a similar fervor the same as my own to know very much more with reference to this issue. I’m certain there are several more fun opportunities ahead for folks who read carefully your website.

  • 16 июня 2019 | 3:45

    I precisely had to thank you very much again. I’m not certain what I might have achieved without those hints contributed by you over that concern. It had been an absolute horrifying circumstance in my view, nevertheless taking note of a new specialized fashion you managed the issue took me to leap over contentment. I’m just thankful for this help and as well , wish you comprehend what a powerful job that you’re undertaking teaching the mediocre ones with the aid of a web site. I am certain you have never come across all of us.


Пожалуйста, зарегистрируйтесь для комментирования.

Блог Сергея Шепелева. Сэр, извольте оставить копирайт © 2010-2019