Resizable popup window : Window Dialog « Ajax Layer « JavaScript DHTML

JavaScript DHTML
1. Ajax Layer
2. Data Type
3. Date Time
4. Development
5. Document
6. Event
7. Event onMethod
8. Form Control
9. GUI Components
10. HTML
11. Javascript Collections
12. Javascript Objects
13. Language Basics
14. Node Operation
15. Object Oriented
16. Page Components
17. Security
18. Style Layout
19. Table
20. Utilities
21. Window Browser
Microsoft Office Word 2007 Tutorial
Java
Java Tutorial
Java Source Code / Java Documentation
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
C# / C Sharp
C# / CSharp Tutorial
ASP.Net
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
PHP
Python
SQL Server / T-SQL
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
JavaScript DHTML » Ajax Layer » Window Dialog 
Resizable popup window


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>YAHOO.widget.Panel - Resizable Panel Example</title>

<script type="text/javascript" src="./build/yahoo/yahoo.js" ></script>
<script type="text/javascript" src="./build/event/event.js" ></script>
<script type="text/javascript" src="./build/dom/dom.js" ></script>
<script type="text/javascript" src="./build/dragdrop/dragdrop.js" ></script>
<script type="text/javascript" src="./build/animation/animation.js" ></script>

<link rel="stylesheet" type="text/css" href="./build/fonts/fonts.css" />

<link rel="stylesheet" type="text/css" href="./build/container/assets/container.css" />
<link rel="stylesheet" type="text/css" href="./examples/container/css/example.css" />
<link rel="stylesheet" type="text/css" href="./examples/container/css/ResizePanel.css" />

<script type="text/javascript" src="./build/container/container.js"></script>
<script type="text/javascript" src="./examples/container/js/ResizePanel.js"></script>

<script language="javascript">
  YAHOO.namespace("example.resize");

  function init() {
    YAHOO.example.resize.panel = new YAHOO.widget.ResizePanel("win"effect:{effect:YAHOO.widget.ContainerEffect.FADE,duration:0.25}, width:"30em", fixedcenter: true, constraintoviewport: true, underlay:"shadow", close:true, visible:false, draggable:true, modal:false } );
    YAHOO.example.resize.panel.render();
  }

  YAHOO.util.Event.addListener(window, "load", init);
</script>
</head>
<body>

  <div class="box" id="bodyMain">
    <div class="hd">
      <h1>Resize Panel Example</h1>
    </div>
    <div class="bd">
      <p>This subclass of Panel (ResizePanelutilizes the footer of the Panel as a resize handle for dynamic drag and resize of a Panel.</p>

      <button onclick="YAHOO.example.resize.panel.show()">Show the ResizePanel</button>
    </div>
  </div>

<div id="win" style="visibility:hidden">
    <div class="hd"><div class="tl"></div><span>Sprockets!</span><div class="tr"></div></div>
    <div class="bd">
      <img src="http://www.java2s.com/style/logo.png" alt="sprockets!" style="float:left;margin:0 5px 5px"/>
      <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Duis in risus. Vestibulum a nibh tincidunt elit iaculis laoreet. In pede metus, tristique non, consectetuer a, vestibulum vel, enim. Curabitur neque magna, pulvinar sit amet, lobortis viverra, porta non, dui. Donec tempor, arcu quis interdum pellentesque, dui dolor gravida pede, in iaculis justo tortor venenatis ligula. Cras non pede vel risus egestas faucibus. Nam pulvinar lobortis nisi. In vehicula venenatis sapien.</p>

      <p style="margin-bottom:0px">Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Etiam et risus ut est adipiscing congue. Praesent ut justo. Proin hendrerit urna eget eros. Curabitur condimentum tempor diam. Pellentesque tortor odio, sollicitudin eget, pellentesque ut, ullamcorper a, justo. Nam tellus pede, fermentum ac, sollicitudin sed, mollis vel, turpis. Fusce pulvinar nibh et erat. Praesent purus nibh, fermentum ac, imperdiet vel, aliquet eu, mi. Praesent non nisi ac mauris tempor ultricies. Nulla mollis tellus porta leo. Nunc accumsan dapibus tellus. Nunc nec nunc.</p>
    </div>
  </div>
</div>


</body>
</html>

           
       
yui.zip( 3,714 k)
Related examples in the same category
1. Mv Window Beta1
2. Windows XP style popup panel
3. Yes no Dialog
4. Model dialog (set background browser client area to gray)
5. Popup panel (dialog)
6. Photo Box Example
7. Popup window
8. DHTML Windowing Toolkit Demo
9. Javascript based window system
10. Drag and drop window system
11. XP style window
w_ww___.___ja___va__2___s.c_om___ | Contact Us
Copyright 2003 - 08 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.