Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

what javascript is being used here?

http://www.abravo.net/

on this website under food and spirits it has a little menu which allows you to show different sets of information without reloading the page...

what javascript/jquery would this use?

ive tried replicating the css and html but somethings still missing for it to be able to work properly..

thanks

3 Answers

Relevance
  • 10 years ago
    Favorite Answer

    It's not a plugin, it's simply jquery code...

    You can watch the code here..

    http://www.abravo.net/js/site.js

    On these lines:

    // menu items

    22 $('.categories a.button').bind('click', Site.change_category);

    23 $('.events a.button').bind('click', Site.change_event);

    he is attaching 2 events to the buttons

    When you click a button, the funcion "change_category" make visible an hidden layer containing the category content.

    The "change_event" function make the current button white colored.

    Bye.

    Mauro Casula.

    Source(s): Own Knowledge
  • 4 years ago

    nicely...JavaScript is for making dynamic internet content. yet what does that mean? imagine about an internet web site that *isn't* dynamic, the common web page with none JS outfitted in. You visit an internet web site. Your browser asks the server for the content fabric of the web page. The server sends back the HTML for the web page. The browser reflects it. And there it sits, a not undemanding and quick, static web page that would not do something till you click on something. (ignore about such issues as lively GIF's or embedded video. they are not static, yet they seem to be a particular case the following). So there the web page sits, till you fill in some style factors, or click a button or something. Then, once you try this, the browser is going back to the server and says: hi, the dude clicked the 'do something cool' button. I merely threw away the web page the dude became searching at, please deliver me the full contents of the web page all yet back, yet keep in mind that this time the dude clicked the 'do something cool' button. you observe that type each and each of the time one the internet, you said it once you requested this question. You click something, and the web page receives redone from scratch. And that ought to take time (even on a short internet connection). JavaScript helps you to do issues on the web page with no need to take that "round holiday to refresh the full web page" step. you should do something user-friendly, like exhibiting a chain of imagery. Or replace the values in a million combobox depending in the selected fee in yet another.Or grant autocomplete alternatives like Google does with search for. merely imagine about how awful Google search for should be if each and anytime you typed a letter in the search container, it had to bypass off and refresh the full web page to tutor you some recommendations. it may be so sluggish, you should by no potential use it. desire that solutions it.

  • ?
    Lv 7
    10 years ago

    I guess the jquery.scrollto.js file does the trick. How I don't know.

Still have questions? Get your answers by asking now.