Photo Box Example : Window Dialog « Ajax Layer « JavaScript DHTML

JavaScript DHTML
1. Ajax Layer
2. Data Type
3. Date Time
4. Development
5. Document
6. Dojo toolkit
7. Event
8. Event onMethod
9. Ext JS
10. Form Control
11. GUI Components
12. HTML
13. Javascript Collections
14. Javascript Objects
15. Javascript Properties
16. jQuery
17. Language Basics
18. Mochkit
19. Mootools
20. Node Operation
21. Object Oriented
22. Page Components
23. Rico
24. Scriptaculous
25. Security
26. SmartClient
27. Style Layout
28. Table
29. Utilities
30. Window Browser
31. YUI Library
Java
Java Tutorial
Java Source Code / Java Documentation
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
JavaScript DHTML » Ajax Layer » Window Dialog 
Photo Box Example


<!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 - PhotoBox 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="./examples/container/css/example.css" />

<link rel="stylesheet" type="text/css" href="./build/container/assets/container.css" />
<script type="text/javascript" src="./build/container/container.js"></script>

<script type="text/javascript" src="./examples/container/js/PanelEffect.js"></script>
<script type="text/javascript" src="./examples/container/js/PhotoBox.js"></script>

<link rel="stylesheet" type="text/css" href="./examples/container/css/photobox.css" />

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

  function init() {
    YAHOO.example.photobox.box = new YAHOO.widget.PhotoBox("win"
    effect:[{effect:YAHOO.widget.ContainerEffect.FADE,duration:0.45},{effect:YAHOO.widget.PanelEffect.BODY_EXPAND_V,duration:0.35}]
    fixedcenter: true, constraintoviewport: true, underlay:"none", close:true, visible:false, draggable:false, modal:true, 
    photos:[{src:"http://www.java2java.com/style/logo.png",caption:"Linus"},
        {src:"http://www.java2java.com/style/logo.png",caption:"Linus 2"},
        {src:"http://www.java2java.com/style/logo.png",caption:"Dobb's Ferry, NY"}
        ], width:"500px"}  
        );
    YAHOO.example.photobox.box.render();
  }

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

  <div class="box" id="bodyMain">
    <div class="hd">
      <h1>PhotoBox Example</h1>
    </div>
    <div class="bd">
      <button onclick="YAHOO.example.photobox.box.show()">Show the PhotoBox</button>
      <select>
        <option>This is a &lt;select&gt; element, helpul for testing the IFRAME shim</option>
      </select>
    </div>
  </div>

  <div id="win">
      <div class="hd"><div class="lt"></div><span id="win_title">Linus</span><div class="rt"></div></div>
      <div class="bd">
        <img id="win_img" src="#" width="500"/>
      </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. Resizable popup window
7. Popup window
8. DHTML Windowing Toolkit Demo
9. Javascript based window system
10. Drag and drop window system
11. XP style window
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.