A rich client side TabStrip
Download source files - 23 Kb
Introduction
TabMenu is a component which almost all web developers have to work with. On creating a website with Visual Studio and a component tool, it's simple for me to create a fine and convenient TabMenu for design. And what about creating a TabMenu with similar functions using Javascript, just as we use components on ASP.NET? That is, however, a different story.
This article is aimed at providing users with the best method to have a TabMenu that has the most numerous functions and the least code, especially allowing users to define the functions that TabMenu will provide.
Using the code
All users need to do is to insert this code line where they want the TabMenu to appear:
ClientSideOnLoadCompleted="onLoadComplete" ClientSideOnClick="onClick">
window.onload = function() { arrTab = preInitCoolTab("coolTab1"); }
...Web Development » Client side scripting
No comments:
Post a Comment