Adobe
Products
Acrobat
Creative Cloud
Creative Suite
Digital Marketing Suite
Digital Publishing Suite
Elements
Photoshop
Touch Apps
Student and Teacher Editions
More products
Solutions
Creative tools for business
Digital marketing
Digital media
Education
Financial services
Government
Web Experience Management
More solutions
Learning Help Downloads Company
Buy
Home use for personal and home office
Education for students, educators, and staff
Business for small and medium businesses
Licensing programs for businesses, schools, and government
Special offers
Search
 
Info Sign in
Welcome,
My cart
My orders My Adobe
My Adobe
My orders
My information
My preferences
My products and services
Sign out
Why sign in? Sign in to manage your account and access trial downloads, product extensions, community areas, and more.
Adobe
Products Sections Buy   Search  
Solutions Company
Help Learning
Sign in Sign out My orders My Adobe
Preorder Estimated Availability Date. Your credit card will not be charged until the product is shipped. Estimated availability date is subject to change. Preorder Estimated Availability Date. Your credit card will not be charged until the product is ready to download. Estimated availability date is subject to change.
Qty:
Purchase requires verification of academic eligibility
Subtotal
Review and Checkout
Adobe Developer Connection / Dreamweaver Developer Center /

Responsive design with jQuery marquee

by Chris Converse

Chris Converse
  • Codify Design Studio

Content

  • jQuery + Dreamweaver
  • Custom jQuery scripts
  • Dynamic loading based on screen size
  • Watch the video: Using the custom template
  • Preview and download the template

Created

12 December 2011

Page tools

Share on Facebook
Share on Twitter
Share on LinkedIn
Bookmark
Print
Ajax CSS Dreamweaver HTML5 jQuery mobile templates website

Requirements

Prerequisite knowledge

Previous experience working with Dreamweaver and setting up a local host server is recommended. Prior knowledge of HTML5 and JavaScript code is also required.

User level

All

Required products

  • Dreamweaver (Download trial)

Sample files

  • template_13.zip

This template design combines both responsive design techniques coupled with a self-running jQuery promotional marquee. The unique challenge this template solves is that it uses jQuery’s Ajax feature to load additional interactive data into the template based on the user’s screen size. Combined with CSS3 media queries, this template offers a compelling user experience across devices, while maintaining a shared set of HTML and CSS markup.

Note: For more information on CSS-only responsive design template and a starter template, see Customizable starter design for multiscreen development.

jQuery + Dreamweaver

One of the great new features of Dreamweaver CS5.5 is the built-in support of jQuery. Whether you are just getting started with jQuery, or are a seasoned JavaScript developer, Dreamweaver's code completion and built-in references for jQuery are sure to increase your productivity (see Figure 1). In addition to jQuery support, Dreamweaver CS5.5 also features robust support for CSS3 media queries, making Multiscreen—or Responsive Design—a snap to set up.

Figure 1 Dreamweaver has code completion for jQuery statements
Figure 1. Dreamweaver has code completion for jQuery statements.

Custom jQuery scripts

This template features a custom script we developed at Codify Design Studio that allows you to create an interactive homepage marquee, automatically populated and animated based on standard HTML loaded into your web page. The marquee consists of a series of panels, or slides, that contain an image, caption, and links between the panels. The panels and navigation are dynamically constructed based on the HTML content in the marquee_panels.html file (see Figure 2). There is also an autoplay feature built-in, so the marquee will advance on it’s own; however, when a user moves their mouse inside, the autoplay is disabled to allow interaction with the marquee.

Figure 2 Panels and navigation are dynamically constructed based on HTML content
Figure 2. Panels and navigation are dynamically constructed based on HTML content.

Note: Special thanks to Dimas Begunoff for giving us permission to include his jQuery Image Preloader plug-in.

Dynamic loading based on screen size

When the viewport width is wider than 550 pixels, we load the HTML page containing all of the marquee panels, preload the images, then start the interactive marquee. When this design is accessed by a device with a viewport less than 550 pixels wide, we hide the marquee container div, and load an HTML file containing only a single promotion (see Figure 3). This technique significantly lessens the load on smaller screens, while still maintaining all of the advantages of CSS3 media queries.

Note to Chrome users: At the time of this article, Chrome disabled Ajax loading of local files from your operating system. This will result in a blank area where the marquee/promo area should be loaded. Chrome supports this feature when your file is served from a web server, or from a locally running web service. Read more at the Chromium open source browser project.

Figure 3. An HTML file is loaded based on the viewport jQuery returns.
Figure 3. An HTML file is loaded based on the viewport jQuery returns.

In addition to HTML, CSS, and jQuery, this template comes with a pre-sliced Photoshop file, allowing you to customize the design elements of the template to match your organization's branding requirements.

Watch the video: Using the custom template

The following video explains how you can use the Dreamweaver jQuery marquee template to load interactive data based on screen size. Combined with CSS3 media queries, the jQuery Ajax feature creates a compelling user experience across devices, while maintaining a shared set of HTML and CSS markup.

Learn how to use the provided Dreamweaver jQuery marquee template to create a compelling user experience across devices, while maintaining a shared set of HTML and CSS markup. (Running time: 5:38)

Preview and download the template

Preview how responsive marquee appears on different devices. Download the HTML, CSS, and source Photoshop files related to this template.

Figure 4 Preview how responsive marquee appears on different devices
Figure 4. Preview how responsive marquee appears on different devices

More Like This

  • Turning a design into HTML and CSS using the Fireworks to Dreamweaver workflow – Part 2: Modifying the HTML and CSS
  • What's new in Dreamweaver CS5.5
  • Introduction to media queries – Part 1: What are media queries?
  • Scripting the web – Part 2: Introduction to jQuery
  • Styling and inserting a Spry Menu Bar 2.0 widget with the Adobe Widget Browser
  • Turning a design into HTML and CSS using the Fireworks to Dreamweaver workflow – Part 1: Exporting the design
  • HTML5 and CSS3 in Dreamweaver CS5.5 – Part 3: Using CSS media queries to target different screen resolutions
  • HTML5 and CSS3 in Dreamweaver CS5.5 – Part 2: Styling the web page
  • Getting started with jQuery Mobile
  • Understanding Spry basics

Tutorials and samples

Tutorials

  • Understanding HTML5 semantics: Changed and absent elements
  • Mobile app with PhoneGap: Submitting to the Apple App Store
  • PhoneGap and Dreamweaver: Releasing on iOS
  • Mobile app with PhoneGap: Submitting to Android Market

Samples

  • Responsive design with jQuery marquee
  • Customizable starter design for jQuery Mobile
  • Customizable starter design for HTML5 video
  • Customizable starter design for multiscreen development

Dreamweaver user forum

More
04/23/2012 Resolution/Compatibility/liquid layout
04/20/2012 using local/testing server with cs5 inserting images look fine in the split screen but do not show
04/18/2012 Ap Div help
04/23/2012 Updating

Dreamweaver Cookbook

More
11/07/2011 Simple social networking share buttons
09/20/2011 Registration form that will generate email for registrant to validate
08/21/2011 Spry Accordion - Vertical Text - Auto Start on Page Load - Mouse Over Pause
08/17/2011 Using cfdump anywhere you like

Products

  • Acrobat
  • Creative Cloud
  • Creative Suite
  • Digital Marketing Suite
  • Digital Publishing Suite
  • Elements
  • Mobile Apps
  • Photoshop
  • Touch Apps
  • Student and Teacher Editions

Solutions

  • Digital marketing
  • Digital media
  • Web Experience Management

Industries

  • Education
  • Financial services
  • Government

Help

  • Product help centers
  • Orders and returns
  • Downloading and installing
  • My Adobe

Learning

  • Adobe Developer Connection
  • Adobe TV
  • Training and certification
  • Forums
  • Design Center

Ways to buy

  • For personal and home office
  • For students, educators, and staff
  • For small and medium businesses
  • For businesses, schools, and government
  • Special offers

Downloads

  • Adobe Reader
  • Adobe Flash Player
  • Adobe AIR
  • Adobe Shockwave Player

Company

  • News room
  • Partner programs
  • Corporate social responsibility
  • Career opportunities
  • Investor Relations
  • Events
  • Legal
  • Security
  • Contact Adobe
Choose your region United States (Change)
Choose your region Close

North America

Europe, Middle East and Africa

Asia Pacific

  • Canada - English
  • Canada - Français
  • Latinoamérica
  • México
  • United States

South America

  • Brasil
  • Africa - English
  • Österreich - Deutsch
  • Belgium - English
  • Belgique - Français
  • België - Nederlands
  • България
  • Hrvatska
  • Česká republika
  • Danmark
  • Eastern Europe - English
  • Eesti
  • Suomi
  • France
  • Deutschland
  • Magyarország
  • Ireland
  • Israel - English
  • ישראל - עברית
  • Italia
  • Latvija
  • Lietuva
  • Luxembourg - Deutsch
  • Luxembourg - English
  • Luxembourg - Français
  • الشرق الأوسط وشمال أفريقيا - اللغة العربية
  • Middle East and North Africa - English
  • Moyen-Orient et Afrique du Nord - Français
  • Nederland
  • Norge
  • Polska
  • Portugal
  • România
  • Россия
  • Srbija
  • Slovensko
  • Slovenija
  • España
  • Sverige
  • Schweiz - Deutsch
  • Suisse - Français
  • Svizzera - Italiano
  • Türkiye
  • Україна
  • United Kingdom
  • Australia
  • 中国
  • 中國香港特別行政區
  • Hong Kong S.A.R. of China
  • India - English
  • 日本
  • 한국
  • New Zealand
  • 台灣

Southeast Asia

  • Includes Indonesia, Malaysia, Philippines, Singapore, Thailand, and Vietnam - English

Copyright © 2012 Adobe Systems Incorporated. All rights reserved.

Terms of Use | Privacy Policy and Cookies (Updated)

Ad Choices

Reviewed by TRUSTe: site privacy statement