Using the 'div' Tag : JavaScript DHTML examples (example source code) » HTML » DIV

JavaScript DHTML














Java Products
Java Articles
JavaScript DHTML Home  »   HTML   » [  DIV  ]   

 
Using the 'div' Tag

Please note that some example is only working under IE or Firefox.


/*
JavaScript Unleashed, Third Edition
by Richard Wagner and R. Allen Wyke 

ISBN: 067231763X
Publisher Sams CopyRight 2000

*/
<html>
<head>
  <title>JavaScript Unleashed</title>
</head>
<body>
  Before the first block.
  <div name="layer1">
    <hr>
    DIV 1
    <hr>
  </div>
  After the first block.
  <br>
  Before the second block.
  <div name="layer2">
    <h3>
      DIV 2
    </h3>
    <p>
      I am inside the second DIV block.
    </p>
  </div>
  After the second block.
</body>
</html>


Related examples in the same category
1.  Scrolling div Content








Home| Contact Us
Copyright ?2003 - 04 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.