Inspiration for digital creatives

Digital Arts cover

Digital Arts December 2008 - out now
Creative inspiration
BioShock PS3 games site
Labs: Laptops packing power
CD: FREE! Photoshop CS4 video tutorials, high-res textures and 20 stock images

Forums

Digital Arts Lounge
Just kick back, relax and chat

Help and advice
Post your emergency creative questions

Showcase
Critical appraisal and community kudos

Magazine & CD
Questions, comments, praise, and grumbles

Photoshop and dtp
How-tos, tips, advice and workarounds

3D creation
Perfect polygons in 3DS, Maya, Carrara...

Web design
Untangle your HTML and Flash troubles

Video editing
Share knowledge and discuss video creativity

EDIGIT SIGN-UP

The twice-weekly newsletter with all the latest creative news, reviews, and features



More info...


Magazine preview

Click here for a FREE preview of a recent copy of Digital Arts plus a great subscription offer.

Build a spry widget art gallery

Monday 12 Nov 2007

Mix up HTML, CSS, JavaScript and Ajax without the pain. Geoff Blake shows you how Dreamweaver CS3 can create astounding widgets for designers without coding hell.



When I first discovered spry widgets in Dreamweaver CS3, the creative juices really started to flow. If you’re new to spry widgets, they are pre-build page elements that combine HTML, CSS, JavaScript, and Ajax – whoa, whoa, hold on a sec!

Before you moan and flip to a less complicated sounding article, let me say this: the great thing about widgets is that for us designers, spry widgets allow us to add a huge amount of interactivity to our pages with little effort, and little or no coding experience.

Our clients’ minds are blown at what we can pull off, and we remain mentally stable. The great thing about widgets is that they’re completely customizable.

In this tutorial, we’ll be doing something unique, which will yield some awesome results: We’re going to completely customize and revamp Dreamweaver’s Accordion widget and turn it into an interactive, user-driven image gallery, complete with formatting, and links to other panels in the accordion.

The great thing about the image gallery widget is that it’s expandable and completely customizable, meaning you can add as many image panels as you need, and completely control the widget formatting via CSS.

A few things before we begin. It’s a good idea to define a new site in Dreamweaver for this tutorial. Further, drop all the tutorial files that you’ve downloaded into your newly defined site folder.

Next, create a new blank page and save it in your site folder too. For this tutorial to work properly, your tutorial files and your new page will have to be saved in the same folder. Finally, make sure your new page is open in Dreamweaver.


01. To get started, choose Insert>Spry>Spry Accordion to place Dreamweaver’s default accordion spry widget on your page. Save and preview your page in your browser so you can see how this is going to work (just hit F12 on the PC or Opt+F12 on the Mac). If this is your first time saving the page, Dreamweaver will display a Copy Dependent Files dialog. Just click OK to continue. Know too that in your site folder, Dreamweaver creates a SpryAssets folder, which contains the necessary CSS and JavaScript files to run your widget.

Jump to page : [ 1 ] [ 2 ] [ 3 ] [ 4 ] [ 5 ]


Submit to: DiggDigg deliciousDel.icio.us redditReddit

What is this?


Tips

01. When you make chages to your CSS rules, Dreamweaver opens SpryAccordion. css in the background. This is the external style sheet that controls the widget. If you’re previewing your work in a Web browser, be sure to save your style sheet file, as well as the HTML page that contains the widget before refreshing your browser!

02. In the tutorial sample files, you’ll find SpryAccordion.html and SpryAccordion.css. These, along with the JavaScript file are the files I used in making this tutorial, so you can check them out and compare them to what you have for some extra ideas. Just make sure to put the external CSS file into the SpryAssets folder so that the HTML file works. Happy widgeting.

03. A very cool trick for matching colours between graphics and your Web page is to stick with Web Safe colours. In our example here, we matched the TabBackground graphic’s colour to the same background colour that we set for the CSS rule (#999999). This seamlessly blends the two, making it impossible to detect graphic’s edges.


Who: For the past ten years, Geoff Blake has provided a wide range of graphic design, consulting, artwork, and Web- design services in the Toronto area, providing expert training and support for many graphic, Web, and print applications. He writes articles and books (most recently, Ten Ton Dreamweaver with Peachpit Press), leads seminars, and is a presenter with Total Training.
Contact: tentonbooks.com Software: Adobe Dreamweaver CS3, Adobe Photoshop CS3
Time to complete: Two hours
Necessary files: Download the files for this tutorial from the tutorials section at ....