HTML
  Home arrow HTML arrow Page 2 - How to Create a Dynamic HTML Navigation Pa...
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Dedicated Servers  
Moblin 
JMSL Numerical Library 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
HTML

How to Create a Dynamic HTML Navigation Page
By: Dan Wellman
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 3 stars3 stars3 stars3 stars3 stars / 23
    2004-09-07

    Table of Contents:
  • How to Create a Dynamic HTML Navigation Page
  • Web Animation Doesn't Always Mean Flash
  • Subroutines
  • The Remaining Subroutines
  • Wrap'n it Up
  • Images to Use

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    How to Create a Dynamic HTML Navigation Page - Web Animation Doesn't Always Mean Flash


    (Page 2 of 6 )

    When thinking about animation for the Net, most people's minds spring instantly to Flash animation, and with good reason too since it's effective and extremely stylish. But why spend money on something as expensive as Flash MX, and then spend months learning how to use it when you can get a similar degree of professionalism using just notepad?

    DHTML is fundamentally CSS, HTML and a scripting language. You will of course need some images to make this work, I've included the ones that I used and if you want to use them too, you'll need to download them.

    So, open up a basic text editor and get a page laid out with the four control buttons bottom center, the three satellite images at the bottom-left, top-middle and right-bottom respectively, and the moving image kind of central. A point to make here is that the left and right satellite images and the moving image should sit roughly horizontally parallel, with the control buttons beneath. You may also opt for a suitable backdrop, although, if your images have shadows or outer glows, you may not.

    This is the kind of layout you're aiming for, and it can be achieved with the use of DIV containers and in-line CSS. Don't forget to name each of your DIVs appropriately. If you've opted to use the supplied graphics and have a similar screen resolution to me (1064x768), the following code should be exactly right:

    <html>
    <head>
    <title>Alternative Navigation System</title>
    </head>
    <body>
    <div id=info Style="position:absolute;left:50px;top:250px;">
    <img src="info.gif" border="0">
    </div>
    <div id=shop Style="position:absolute;left:350px;top:50px;">
    <img src="shop.gif" border="0">
    </div>
    <div id=help Style="position:absolute;left:650px;top:250px;">
    <img src="help.gif" border="0">
    </div>
    <div id=saucer Style="position:absolute;left:275px;top:250px;">
    <img src="saucer.gif" border="0">
    </div>
    <div id=buttonUp Style="position:absolute;left:350px;top:403px;">
    <img src="up.gif" border="0">
    </div>
    <div id=buttonLeft Style="position:absolute;left:236px;top:480px;">
    <img src="left.gif" border="0">
    </div>
    <div id=buttonRight Style="position:absolute;left:423px;top:480px;">
    <img src="right.gif" border="0">
    </div>
    <div id=buttonDown Style="position:absolute;left:350px;top:525px;">
    <img src="down.gif" border="0">
    </div>
    </body>
    </html>

    If you're using your own images or have a different resolution, you'll probably need to tweak the positioning a little so play around until it looks right. The script for this page is fairly large, and it could easily justify its own script file but for simplicity, it's all in the document head.

    More HTML Articles
    More By Dan Wellman


       · It would be great if you provided a working example so we could see how it works...
       · Maybe someone might find this a good article but it lacks detail and really doesn't...
       · Agreed. Thats the first thing I look for in a tutorial, so I can understand what...
       · Generally most browsers nowadays support VB script, however.. this is all written in...
       · I created a web page and copied all the graphics. When I open this in IE 6.0 with XP...
       · Please correct me if I'm mistaken, but only ONE browser supports VBscript - yes I...
       · I'm surprised that this script didn't work for anyone running IE6 on XP Pro, that is...
       · Youve got very useful site. It really helped me. Thanks.
       · Youve got a great site. I found it very useful.
     

    HTML ARTICLES

    - Tabular Database Forms with HTML
    - Using the Find Functions for HTML Database F...
    - Sorting for Database Forms with HTML
    - Edit and Other Database Form Functions with ...
    - More Database Form Functions with HTML
    - Database Form Functions with HTML
    - Using the HTML Table Element as a Recordset
    - Building Single Row Database Forms with HTML
    - Introduction to Database Forms with HTML
    - Another Look at Animation of Geographical Ma...
    - Animation of Geographical Map Regions
    - Changing and Moving Pictures with CSS
    - Clickable Geographical Map Regions
    - Gradient Creation with the HR Element
    - Text on HTML Images: Do it Yourself







    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway