• Save

Loading…

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

Like this presentation? Why not share!

Like this? Share it with your network

Share
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
903
On Slideshare
889
From Embeds
14
Number of Embeds
1

Actions

Shares
Downloads
0
Comments
0
Likes
0

Embeds 14

https://bbhosted.cuny.edu 14

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Class 18
  • 2. Managing your site
    Your website is growing bigger…
    You have several HTML pages…
    You have many images…
    You have many CSS files…
    On top of that, now you’ll need javascript files…
    How Can You Manage Your Site Effectively?
    by using ‘Manage Sites’!
  • 3. SPRY
    About Spry widgets
    A Spry widget is a page element that provides a richer user experience by enabling user interaction.
    http://labs.adobe.com/technologies/spry/samples/#widgets
  • 4. How does it work?
    A Spry widget comprises the following parts:
    Widget structure An HTMLcode block that defines the structural composition of the widget.
    Widget behavior JavaScriptthat controls how the widget responds to user-initiated events.
    Widget styling CSS that specifies the appearance of the widget.
  • 5. Widget structure with HTML code
    <!--SPRY Navigation-->
    <div id="sprynav" class="grid_12">
    <ul id="MenuBar1" class="MenuBarHorizontal">
    <li><a href="#">Home</a> </li>
    <li><a href="#“ class="MenuBarItemSubmenu">Featured</a>
    <ul>
    <li><a href="#">artist</a></li>
    <li><a href="#">illust</a></li>
    <li><a href="#">event</a></li>
    </ul>
    </li>
    <li><a href="#">Articles</a></li>
    <li><a href="#">Gallery</a></li>
    <li><a href="#">Contact</a></li>
    </ul>
    </div>
    <div class="clear">&nbsp;</div>
    <!--End SPRY Navigation-->
  • 6. Widget styling with CSS
  • 7. Widget Behavior with JavaScript
  • 8. How do I put it on my site?
    Here are the proper steps:
    Define your site with Manage Site
    From Advanced tab, set where your Spry Assets folder will go
    Decide which widget will be useful for your site
    Insert Spry Widget
    Customize the styles
  • 9. Automatically Added…
    In the header:
    <script src="spry/SpryMenuBar.js" type="text/javascript"></script>
    <link href="spry/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
  • 10. Automatically Added…
    In the body:
    <ul id="MenuBar1" class="MenuBarHorizontal">
    <li><a href="#">Home</a> </li>
    <li><a href="#" class="MenuBarItemSubmenu">Featured</a>
    <ul>
    <li><a href="#">artist</a></li>
    <li><a href="#">illust</a></li>
    <li><a href="#">event</a></li>
    </ul>
    </li>
    <li><a href="articles.html">Articles</a> </li>
    <li><a href="#">Gallery</a></li>
    <li><a href="#">Contact</a></li>
    </ul>
    </div>
  • 11. Automatically Added…
    <script type="text/javascript">
    <!--
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"spry/SpryMenuBarDownHover.gif", imgRight:"spry/SpryMenuBarRightHover.gif"});
    //-->
    </script>