WEB DESIGN GARAGE [Electronic resources] نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

WEB DESIGN GARAGE [Electronic resources] - نسخه متنی

Marc Campbell

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
لیست موضوعات
توضیحات
افزودن یادداشت جدید






Chapter 10. Creating Popup Menus


Popup menus are all the rage these days. Surely, you've seen them on the Web. You hover over a navigation choice, and a menu of related items appears. It's a classy effect, as Figure 10.1 shows.

Figure 10.1. Nothing says class like a popup menu.

[View full size image]

Popup menus used to be a nightmare to implement. Fortunately, Internet Explorer since version 5 and Netscape since version 6 support a new kind of JavaScript method called getElementById, which simplifies the scripting of all types of interactive features, including popup menus. Browsers capable of understanding getElementId have been available for a couple of years now, and they are now the predominant browsers on the Web by far; so, for most kinds of sites, you can write scripts with this method in good conscience. Older browsers choke, though, so be warned.


GEEKSPEAK


A popup menu is a list of navigation choices that appears when you hover over an item in the main navigation bar.


GEEKSPEAK


Dynamic HTML, or DHTML, is the synergy of HTML, JavaScript, and CSS.

Dynamic HTML, or DHTML, is the synergy of HTML, JavaScript, and Cascading Style Sheets (CSS), all working together to create an interactive Web experience. The typical popup menu is a perfect example of DHTML in action. You build the layout of the nav bar in HTML. CSS elements called layers give you the menus, and a few straightforward JavaScript functions bring the menus to life.


/ 175