ترجمه فارسی توضیحات (ترجمه ماشینی)
Dreamweaver CS5: The Missing Manual
طراحان وب، تولیدکنندگان وب و مدیران وب برای طراحی، ساخت و مدیریت وبسایتهای حرفهای بیش از همه به یک برنامه متکی هستند: Adobe Dreamweaver. ابزارهایی را که برای ایجاد همه چیز از صفحات ساده HTML گرفته تا صفحات PHP مبتنی بر پایگاه داده نیاز دارید را فراهم می کند. اما چیزی که Dreamweaver را بسیار همه کاره می کند همان چیزی است که یادگیری آن را دشوار می کند. این راهنمای پرفروش توضیحات واضح و بدون اصطلاحات را به شما ارائه می دهد تا به شما در تسلط بر این برنامه پیچیده کمک کند – و وب سایت های خیره کننده و معاصر را زنده کنید.
نوشته شده توسط معلم و نویسنده کهنه کار Dreamweaver دیوید مک فارلند، Dreamweaver CS5: The Missing Manual شما را گام به گام از ساختن اولین صفحه تا راهاندازی یک سایت کاملاً تعاملی مبتنی بر قالب و ایجاد سایت راهنمایی میکند. . شما مهارت های خود را با کمک آموزش های عملی و هدایت شده در سراسر کتاب تقویت خواهید کرد.
- یاد بگیرید چگونه ظاهر صفحات وب خود را با CSS کنترل کنید، از تکنیک های اولیه تا پیشرفته
- طراحی وب سایت های پویا و مبتنی بر پایگاه داده، از وبلاگ ها تا کاتالوگ های محصولات، و از سبد خرید گرفته تا فرمهای ثبتنام در خبرنامه
- با برنامههای جاوا اسکریپت آماده از Adobe’s Spry Framework تعاملی را به وبسایت خود اضافه کنید
- با زحمت بسیاری از فایلهای کمکی که وبسایت شما را نیرو میدهند و مدیریت میکنند، کنترل کنید. هزاران صفحه
- بررسی اجزای صفحه وب و قابلیت های Dreamweaver با “نمونه های زنده” کتاب
افزودن Spry Tabbed پانلهای صفحات وب برخی از بازدیدکنندگان وبسایت تمایلی به پیمایش ندارند. اگر زمانی که یک صفحه برای اولین بار بارگیری می شود آنچه را که می خواهند نبینند، ادامه می دهند. به همین دلیل، برخی از طراحان وب، اطلاعات طولانی را به چندین صفحه تقسیم می کنند تا هر صفحه تکه های کوچک و قابل هضم را ارائه دهد. البته، این به معنای ساختن چندین صفحه به جای تنها یک صفحه است و بازدیدکنندگان را مجبور می کند که روی یک سری از صفحات کلیک کنند (و منتظر بمانند). Spry Tabbed Panels یک جایگزین ارائه می دهد (شکل 13-1 را ببینید). به جای ایجاد یک صفحه طولانی یا چندین صفحه کوچکتر، می توانید اطلاعات را در پانل های تب دار جداگانه سازماندهی کنید. به این ترتیب، محتوای شما همیشه در جلو و مرکز قرار میگیرد و بازدیدکنندگان شما میتوانند به راحتی با کلیک کردن بر روی تب بالای هر پانل به بخشهای مختلف دسترسی پیدا کنند. افزودن پانل Tabbed میتوانید پانلهای تبدار Spry را در هر نقطه از صفحه وب قرار دهید. اما از آنجایی که زبانهها یک ردیف در بالای گروه پانلها تشکیل میدهند، به فضای افقی کافی برای قرار دادن همه زبانهها نیاز دارید. مگر اینکه فقط چند برگه با برچسب های متنی یک کلمه ای داشته باشید، باید پانل های تب دار را در یک فضای نسبتاً وسیع، مانند ستون اصلی یک صفحه وب، یا در کل عرض صفحه قرار دهید. فقط این مراحل را دنبال کنید:
شکل 13-1. با ویجت Spry Tabbed Panels، محتوای صفحه خود را در پانل هایی که به راحتی در دسترس هستند سازماندهی کنید. با کلیک بر روی یک برگه، اطلاعات پانل جدید بدون نیاز به بارگیری یک صفحه وب جدید توسط مرورگر باز می شود. |
1. در سند در پنجره، روی جایی که می خواهید پانل ها را وارد کنید کلیک کنید. به عنوان مثال، در داخل یک تگ div. 2. Insert > Spry > Spry Tabbed Panels را انتخاب کنید، یا در دسته Spry پانل Insert، روی یکی از دکمه های Spry Tabbed Panel کلیک کنید (شکل 13-2 را ببینید). میتوانید همه چیزهای Spry را در دسته Spry پانل Insert پیدا کنید (شکل 13-2، سمت چپ). همچنین چندین ویجت Spry (از جمله پانل های زبانه دار) را خواهید دید که در زیر دسته بندی Layout (شکل 13-2، سمت راست)، و سایر دکمه های Spry در زیر برگه های دیگر گروه بندی شده اند (برای مثال، ویجت های Spry اعتبارسنجی فرم در زیر برگه Forms ظاهر می شوند).
شکل 13-2. در پانل Insert، میتوانید نماد Spry را با انفجار ستاره در گوشه سمت راست پایین دکمه شناسایی کنید. اگر از منوی دسته بندی پانل درج، نمادهای رنگی را انتخاب کنید، تشخیص آنها از سایر دکمهها حتی سادهتر است. |
پس از وارد کردن یک پانل زبانه دار، دو تب و دو پانل را در صفحه مشاهده می کنید (شکل 13-3). علاوه بر این، یک تب آبی در بالای پانل ها ظاهر می شود که ویجت Spry را نشان می دهد. تب آبی فقط در نمای Dreamweaver’s Design ظاهر می شود، نه در مرورگر وب مهمان. این یک راه آسان برای انتخاب ویجت Spry و دسترسی به ویژگی های آن در بازرس Property به شما ارائه می دهد.
- توجه: هنگامی که صفحه ای را پس از درج یک پنل Spry Tabbed ذخیره می کنید، Dreamweaver به شما اطلاع می دهد که دو فایل را به سایت اضافه کرده است: یک فایل CSS (SpryTabbedPanels.css) برای قالب بندی گروه پانل. و یک فایل جاوا اسکریپت (SpryTabbedPanels.js) برای نمایش و ناپدید شدن پانل ها وقتی بازدیدکنندگان روی برگه ها کلیک می کنند. Dreamweaver هر دو فایل را در پوشه SpryAssets در پوشه ریشه سایت شما ذخیره می کند. هنگامی که سایت خود را به سرور وب خود منتقل می کنید، مطمئن شوید که این پوشه را آپلود کرده اید.</ul 3. در بازرس Property، گروه پانل را نام ببرید (شکل 13-3). این مرحله اختیاری است. Dreamweaver یک نام عمومی ارائه می دهد
- Learn how to control the appearance of your web pages with CSS, from basic to advanced techniques
- Design dynamic, database-driven websites, from blogs to product catalogs, and from shopping carts to newsletter signup forms
- Add interactivity to your website with ready-to-use JavaScript programs from Adobe’s Spry Framework
- Effortlessly control the many helper files that power your website and manage thousands of pages
- Examine web page components and Dreamweaver’s capabilities with the book’s ”live examples”
Web designers, web producers, and webmasters rely on one program above all others to design, build, and manage professional websites: Adobe Dreamweaver. It provides the tools you need to create everything from simple HTML pages to database-driven PHP pages. But what makes Dreamweaver so versatile is also what makes it difficult to learn. This bestselling guide offers you with clear, jargon-free explanations to help you master this sophisticated program — and bring stunning, contemporary websites to life.
Written by veteran Dreamweaver teacher and author David McFarland, Dreamweaver CS5: The Missing Manual takes you through site creation step-by-step, from building your very first page to launching a template-driven, fully interactive site. You’ll hone your skills with the help of hands-on, guided tutorials throughout the book.
Add Spry Tabbed Panels to Web Pages Some website visitors are loath to scroll; if they don’t see what they want when a page first loads, they move on. Because of this, some web designers divide long passages of information into multiple pages so that each page presents small, easy-to-digest chunks. Of course, that means building several pages instead of just one, and forces visitors to click through (and wait for) a series of pages. Spry Tabbed Panels provides an alternative (see Figure 13-1). Instead of creating one long page, or several smaller pages, you can organize information into separate tabbed panels. That way, your content is always front and center, and your visitors can easily access different sections by clicking a tab above each panel. Adding a Tabbed Panel You can place Spry tabbed panels anywhere on a web page. But since the tabs form a single row at the top of the group of panels, you need enough horizontal space to accommodate all the tabs. Unless you have only a couple of tabs with one-word text labels, you should place the tabbed panels in a fairly wide space, such as the main column of a web page, or across the entire width of the page. Just follow these steps:
Figure 13-1. Organize your page’s content into easily accessible panels with the Spry Tabbed Panels widget. Clicking a tab opens a new panel’s worth of information without the browser having to load a new web page. |
1. In the document window, click where you wish to insert the panels. For example, inside a div tag. 2. Choose Insert > Spry > Spry Tabbed Panels, or, on the Insert panel’s Spry category, click one of the Spry Tabbed Panel’s buttons (see Figure 13-2). You can find all the Spry goodies on the Insert panel’s Spry category (Figure 13-2, left); you’ll also find several Spry widgets (including tabbed panels) listed under the Layout category (Figure 13-2, right), and other Spry buttons grouped under other tabs (form validation Spry widgets appear under the Forms tab, for example).
Figure 13-2. In the Insert panel, you can identify a Spry icon by the starburst in the button’s lower-right corner. It’s even easier to distinguish them from other buttons if, from the Insert Panel’s category menu, you choose Color Icons–this changes the drab gray starburst to a bright orange. |
After you insert a tabbed panel, you see two tabs and two panels on the page (Figure 13-3); in addition, a blue tab appears above the panels indicating the Spry widget. The blue tab appears only in Dreamweaver’s Design view, not in a guest’s web browser. It gives you an easy way to select the Spry widget and access its properties in the Property inspector.
- Note: When you save a page after inserting a Spry Tabbed Panel, Dreamweaver notifies you that it has added two files to the site: a CSS file (SpryTabbedPanels.css) for formatting the panel group, and a JavaScript file (SpryTabbedPanels.js) to make the panels appear and disappear when visitors click the tabs. Dreamweaver saves both files in the SpryAssets folder in your site’s root folder. Make sure you upload this folder when you move your site onto your web server.</ul 3. In the Property inspector, name the panel group (Figure 13-3). This step is optional. Dreamweaver provides a generic name (TabbedPanels1, for example) for the group of panels. You don’t really have to change this name; it never appears in a browser window. But if you ever take the plunge into manually modifying your Spry widgets in Code view, you may want to change the Spry panel group’s name to something more descriptive. If you create a group of tabbed panels to house information about a product, for example, you might name the panel group productPanels . A descriptive name helps you identify code related to the panel group if you work in Code view to enhance or change the functionality of the panels.
Figure 13-3. Normally, when a browser downloads a page containing Spry panels, it highlights the first tab and panel. However, if you’d rather open another panel when the page loads, select the relevant tab’s name in the Property inspector’s “Default panel” menu. |
4. Add additional panels. If two panels aren’t enough for your needs, use the Property inspector to add more. Above the list of tab names, click the + button (see Figure 13-3) to add a new panel. To remove a panel, in the same list, click the name of a tab, and then click the minus (-) button. You can also reorder the panels by selecting a tab from the list, and then clicking the up or down arrow button. The up arrow moves a panel to the left, while the down arrow moves a panel to the right.
- Note: A Spry widget’s properties appear in the Property inspector only when you select the widget. To do so, click the blue tab above the elements inside the widget.
نقد و بررسیها
هنوز بررسیای ثبت نشده است.