Desktop Demo code : Desktop « GUI Components « 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. Form Control
10. GUI Components
11. HTML
12. Javascript Collections
13. Javascript Objects
14. Javascript Properties
15. jQuery
16. Language Basics
17. Node Operation
18. Object Oriented
19. Page Components
20. Security
21. Style Layout
22. Table
23. Utilities
24. Window Browser
Java
Java Tutorial
Java Source Code / Java Documentation
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorial
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 » GUI Components » Desktop 
Desktop Demo code

 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">

<!-- 
$Id: new_core_test.html,v 1.43 2003/02/04 06:46:09 russcoon Exp $
Copyright (c2000-2003 Alex Russell
Licensed under the Academic Free License version 1.1
-->

<html>
<head>
  <title>A complex sample page</title>

  <script language="JavaScript" type="text/javascript">
    // possible config opts, use specially named array "NWconfig"
    var NWconfig = new Array();
    NWconfig["includeTooltips"]=true;
    // NWconfig["isProduction"]=true;
  </script>
  <script language="JavaScript" type="text/javascript" src="winScripts/netWindows.js"></script>
  <script language="JavaScript" type="text/javascript">
    with(__scripts__){
      //widget includes
      require(__config__.widgetPath+"button_widget.js");
      require(__config__.widgetPath+"tool_bar_widget.js");
      require(__config__.widgetPath+"split_pane_widget.js");
      require(__config__.widgetPath+"alert_box_widget.js");
      require(__config__.widgetPath+"window_widget.js");
      require(__config__.widgetPath+"menu_bar_widget.js");
    }

    // __env__.onLoad will be emitted when the page loads, so connect our init function to it
    __sig__.connect(__env__, __env__.onLoad, null, envInit);

    // test named searching
    // __config__.addSearchId("pyCal","pyMail");

    //keystroke handler for outputting theme information, shift-t
    __env__.setKeystroke('t', true, false, false, null, function(){__theme__.outputTheme();});
    
    function envInit(){
      __scripts__.endInitLoads();
      create_console('<<debugging console initialized>>', 00'right', 'top', 400300100);
      var winObj = NW_WIDGET_window_create_load_append(300300100100'netWindows news', "on the web, no one knows you're a dog, but they sure as hell know you can't spell"'news.html');
      winObj.setKeystroke('t', true, false, false, null, function(){stdout('foo');});
    }
   </script>
  <style type="text/css">
    body, div, span, p {
      font-family: helvetica, arial, sans-serif;
      letter-spacing: 1px;  
    }

    .hide {
      visibility: hidden;
    }

    .themeImg {
      position: absolute; 
      left: 0px; 
      padding: 0px;
    }
  </style>

</head>

<body onSelectStart="return false;">

<!-- theme buttons and the like -->
  <img onClick="__theme__.setThemeByName('blue');" src="images/blues_block.gif" width="20" height="20" style="top: 0px;" hspace=vspace=border="0" align="left" alt="blue theme" class="themeImg">
  <img onclick="__theme__.setThemeByName('green');" src="images/greens_block.gif" width="20" height="20" style="top: 20px;" hspace=vspace=border="0" align="left" alt="green theme" class="themeImg">
  <img onclick="__theme__.setThemeByName('red');" src="images/reds_block.gif" width="20" height="20" style="top: 40px;" hspace=vspace=border="0" align="left" alt="red theme" class="themeImg">
  <img onclick="__theme__.setThemeByName('orange');" src="images/oranges_block.gif" width="20" height="20" style="top: 60px;" hspace=vspace=border="0" align="left" alt="orange theme" class="themeImg">
  <img onclick="__theme__.setThemeByName('yellow');" src="images/yellows_block.gif" width="20" height="20" style="top: 80px;" hspace=vspace=border="0" align="left" alt="yellow theme" class="themeImg">
  <img onclick="__theme__.setThemeByName('system');" src="images/tans_block.gif" width="20" height="20" style="top: 100px;" hspace=vspace=border="0" align="left" alt="default theme" class="themeImg">
  <div nwType="button" class="hide" width="100" height="20">
    <div nwProperty="text">News</div>
    <div nwProperty="doOnClick">NW_WIDGET_window_create_load_append(300300100100'netWindows news', 'news', 'news.html');</div>
    <div nwProperty="styleList">left: 23px; top: 1px; position:absolute;</div>
  </div>
  <div nwType="button" class="hide" width="100" height="20" tooltip="EXPERIMENTAL: click this button to toggle alpha-selection on or off.">
    <div nwProperty="text">Alpha Focus</div>
    <div nwProperty="doOnClick">if(__env__.alphaFocus){__env__.alphaFocus=falsethis.setText('Alpha: Off');}else{__env__.alphaFocus=truethis.setText('Alpha: On');}</div>
    <div nwProperty="styleList">left: 23px; top: 23px; position:absolute;</div>
  </div>

  <!-- the NetWindows logo, bottom right -->
  <div width=205 height=35 style="position: absolute; bottom: 0px; right: 100px; width: 205px; height: 35px; padding: 0px 0px 0px 0px; overflow:hidden;">
    <a href="http://netWindows.org">
    <img src="images/netWindows_bottom_left.gif" border=hspace="0" vspace="0">
    </a>
  </div>

  <div width=225 height=20 style="position: absolute; bottom: 0px; right: 283px; width: 260px; height: 25px; padding: 0px 0px 0px 0px; overflow: hidden; filter: Alpha(Opacity=50); z-Index: 1000;"><p style="font: normal normal normal xx-small sans-serif; padding: 5px; left:225px; top:0px; height: 15px;">netWindows.org is &copy; 2000-2001 <a href="mailto:[email protected]">Alex Russell.</a></p></div>

</body>
</html>


           
       
Related examples in the same category
1. Window system (Desktop) in JavaScript (IE only)
w___w_w.__j___ava2___s.co___m___ | |Contact Us
Copyright 2003 - 08 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.