Web Design: AD550
COURSE CALENDAR | WEEK 14 CLASS OUTLINE | Homework
Topics covered in class:
- Review alternate stylesheets in progress
- Adding an alternate
style sheet
- Open index.html
- Make sure your first style sheet link looks like this:
<link type="text/css" rel="stylesheet" href="main.css" title="standard" media="screen" /> - Add your second style sheet, but change the rel,
href and title attributes:
<link type="text/css" rel="alternate stylesheet" href="alt.css" title="alternate" media="screen" /> - Preview your page in the Firefox browser. Choose View > Page Style. You should see two styles: standard and alternate. *NOTE: you will not be able to view the alternate stylesheet in IE, Safari, etc. unless you use a style switcher.
- Copy and paste both stylesheet links to all the pages in your site.
- Style Switchers for the very brave
- If you'd like to be able to load the alternate style sheet without
having to choose View > Page Style each time, you'll need to add
a style switcher. (example)
- Simple Style Switcher
- AJAX styleswitcher (this uses PHP, so it won't work on the ADGA server)
- SitePoint style switcher (this uses PHP, so it won't work on the ADGA server)
- Styleswitcher Tutorial
- Two-line styleswitcher
- Style Sheet Switcher Scripts with JavaScript
- Projecttree style switcher
- Dynamic Drive style switcher (random)
- More Javascript tutorial
- If you'd like to be able to load the alternate style sheet without
having to choose View > Page Style each time, you'll need to add
a style switcher. (example)
- Work in Class
Homework
- Final Projects are DUE!!!
- Final Exam will be given next class.
- If you miss the last class, you will receive a failing grade.