Multi-level Navigation

Slides:



Advertisements
Similar presentations
WEB DESIGN TABLES, PAGE LAYOUT AND FORMS. Page Layout Page Layout is an important part of web design Why do you think your page layout is important?
Advertisements

Copyright © Steven W. Johnson
Sriram DRUPAL GCI What is a drop down menu? A drop down menu is a menu of options that appears when an item is selected with a mouse. The item.
Day 2 – JavaScript & PHP.  Have the hover effect display an extra image  Add an extra image for each of the tags  In your writeText() function, you.
Creating and Editing a Web Page
Neal Stublen A Basic Template  HTML doctype Much simpler than HTML4/XHTML  Title and meta content Again simpler than “Content-Type”
Navigation Controls MacDonald Ch. 11 MIS 424 MIS 424 Professor Sandvig Professor Sandvig.
Using Html Basics, Text and Links. Objectives  Develop a web page using HTML codes according to specifications and verify that it works prior to submitting.
Creating and Editing a Web Page using HTML IMED1316.
Creating and Editing a Web Page Project 2. Project Objectives Project 2: Creating and Editing a Web Page 2 Identify elements of a Web page Start Notepad.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
HTML Comprehensive Concepts and Techniques Third Edition 2 nd Project Creating and Editing a Web Page.
IS-907 Java EE World Wide Web - Overview. World Wide Web - History Tim Berners-Lee, CERN, 1990 Enable researchers to share information: Remote Access.
Learning Aim C.  Creating web pages involves many considerations.  In this section we will look at the different software tools you can use and how.
COMP 143 Web Development with Adobe Dreamweaver CC.
Source of website: “Text/css rel=“styles heet” This is an external style sheet link. This means that the.
Apache Wookie (Incubating)
THE EVOLUTION OF HTML HTML 4 XHTML HTML XHTML 2000 HTML5 Work In Progress Explain: There are three different types of list Ordered - The.
HTML Extra Markup CS 1150 Spring 2017.
Section 10.1 Define scripting
Week-12 (Lecture-1) Cascading Style Sheets (CSS): describe how documents are presented on screens. Types of Style Sheets: External Style Sheet - Define.
Working with Links and Navigation
HTML 5.
Objective % Select and utilize tools to design and develop websites.
SOEN 287 Web programming Tutorial 03- HTML5 & CSS
CIS 228 The Internet 9/20/11 XHTML 1.0.
Validation.
Web Development & Design Foundations with HTML5 8th Edition
Introduction to HTML5.
Do you want to make info graphics for the US Election?
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
Succeed with App Compat for Windows as a Service
Advanced Web Development IT225
Introduction and Principles
Introduction to PHP FdSc Module 109 Server side scripting and
XHTML Basics.
Web Development & Design Foundations with HTML5 8th Edition
Computer Concepts I and II Sue Norris
Chapter 4 Introduction to XHTML: Part 1
Web Programming– UFCFB Lecture 6
Objective % Select and utilize tools to design and develop websites.
Validation.
Views Views is where we store HTML and lots of contents, we are going to display our user. So, we have models that interact with database. We have controllers,
Introduction to HTML5.
XHTML Basics.
DHTML Javascript Internet Technology.
XHTML Basics.
Laying out a website using CSS and HTML
HTML A brief introduction HTML.
DHTML Javascript Internet Technology.
Create and edit web pages 2
with a value of javascript:onclick=resizeWindow()
Introduction to HTML- Basics
Ground to Roof HTML/HTML5
2/23/2019 © 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks.
XHTML Basics.
Javascript and JQuery SRM DSC.
Introduction to HTML5.
Document Object Model.
Computer communications
Basic HTML Workshop.
CIS 133 mashup Javascript, jQuery and XML
Web Design & Development
XHTML Basics.
Interface Design 2 Week 11.
Dreamweaver.
XHTML Basics.
Introduction to HTML5.
Creating your website and learning HTML
Creating Web Documents
Presentation transcript:

Multi-level Navigation March 16, 2011

Dynamic Menus-pure CSS Examples are fly-out menus, pull-down menus or pop-up menus Some dynamic menus can be created with pure css Disadvantage-submenus disappear instantly if users mouse strays away from link Example: son of suckerfish

Multilevel Lists Usually you build an unordered list, with each sub-menu appearing as a list within its parent list item. <ul> <li><a href=“#”>home</a></li> <li><a href=“#”>About Us</a> <ul> <li><a href=“#”>History</a></li> <li><a href=“#”>History</a></li> </ul> </li> </ul>

Dynamic Menus-Using Javascript Learning Javascript is beyond the scope of this course Use css to style the navigation and javascript to control the actions of submenu You can also add animation effects like fading If you do use Javascript make sure to put it in the <head> section of your HTML Simple example

Javascript is in the <head> Section <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <link href="styles.css" rel="stylesheet" type="text/css" /> <script type="text/javascript"> startList = function() { if (document.all&&document.getElementById) { navRoot = document.getElementById("nav"); for (i=0; i<navRoot.childNodes.length; i++) { node = navRoot.childNodes[i]; if (node.nodeName=="LI") { node.onmouseover=function() { this.className+=" over"; } node.onmouseout=function() { this.className=this.className.replace(" over", ""); window.onload=startList; </script> </head> Javascript is in the <head> Section

Linking to Javascript File Sometimes you will have so much Javascript code that you will need to create a file specifically to house your javascript and then link to this file in the <head> section of your HTML document. You should have a folder specifically for your javascript files Javascript files have a .js on the end of them example: jquerylavalamp.js

Linking to Javascript Example <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <link href="styles.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src=“javascript/jquery.js"></script> <script type="text/javascript" src=“javascript/jquery.lavalamp.js"></script> </head>

Copyright When you use other people’s code you always want to check the copyright information even on tutorials.

Site Map In more complex sites, group hyperlinks into a site map that allows it to function as both a navigation tool and outline of site content. A site map will also help optimize your site for search engines

Dynamic Navigation Examples Dragon Interactive Interactive Dreams Bern Ski Alpine Sony-Mega Menu Example Alexandru Cohaniuc Jmar’s Blog Creasenso

Dynamic Navigation Tutorials List-o-matic CSS Play Dock Menu Lava Lamp Dock Menu 2 Yet Another Dynamic Menu Ultimate Drop Down Menu Horizontal Accordion