Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
demoFuncsNodes.js
Package: Treeview.zip [view]
Upload User: jdr1jdr
Upload Date: 2013-05-07
Package Size: 68k
Code Size: 3k
Category:
JavaScript
Development Platform:
JavaScript
- // You can find instructions for this file here:
- // http://www.treeview.net
- // Decide if the names are links or just the icons
- USETEXTLINKS = 1 //replace 0 with 1 for hyperlinks
- // Decide if the tree is to start all open or just showing the root folders
- STARTALLOPEN = 0 //replace 0 with 1 to show the whole tree
- HIGHLIGHT = 1
- foldersTree = gFld("<i>Flags and maps</i>", "demoFuncsRightFrame.html")
- aux1 = insFld(foldersTree, gFld("Flags", "javascript:parent.op()"))
- insDoc(aux1, gLnk("R", "Germany", "http://www.treeview.net/treemenu/demopics/beenthere_germany.gif"))
- insDoc(aux1, gLnk("R", "Greece", "http://www.treeview.net/treemenu/demopics/beenthere_greece.gif"))
- insDoc(aux1, gLnk("R", "Italy", "http://www.treeview.net/treemenu/demopics/beenthere_italy.gif"))
- insDoc(aux1, gLnk("R", "Portugal", "http://www.treeview.net/treemenu/demopics/beenthere_portugal.gif"))
- insDoc(aux1, gLnk("R", "United Kingdom", "http://www.treeview.net/treemenu/demopics/beenthere_unitedkingdom.gif"))
- insDoc(aux1, gLnk("R", "United States", "http://www.treeview.net/treemenu/demopics/beenthere_unitedstates.gif"))
- aux1 = insFld(foldersTree, gFld("Maps", "javascript:parent.op()"))
- insDoc(aux1, gLnk("R", "North America", "http://www.treeview.net/treemenu/demopics/beenthere_america.gif"))
- insDoc(aux1, gLnk("R", "Europe", "http://www.treeview.net/treemenu/demopics/beenthere_europe.gif"))
- // If your tree instead of the regular http links has "javascript:function(arg)"
- // links, and the type of the argument is string, special care is needed regarding
- // the quotes and double quotes. Please use exactly the same kind of
- // quotes or double quotes used in this example (they change from folder to document).
- // Use the exact same number of backslashes for escaping the (double)quote
- // characters, and pay attention not only to the (double)quotes surrouding the
- // strings, but also to any (double)quote characters inside of that string
- // If you are going to use a frameless layout, you will need to move the functions
- // exampleFunction and windowWithoutToolbar to the main page and change
- // parent.functionname to window.functionname in this file
- //Note the "S" target in the first argument of gLnk
- aux1 = insFld(foldersTree, gFld("<i>javascript:</i> links", "javascript:parent.op()"))
- //Use " to delimit your string arguments and \" inside
- insDoc(aux1, gLnk("S", "Window w/o bars", "javascript:parent.windowWithoutToolbar(\'http://www.treeview.net/treemenu/demopics/beenthere_tuscany.gif\', 410, 415)"))
- //Use \' to delimit your string arguments and \\\' inside
- //Double quote characters (") are not allowed in the string argument
- insDoc(aux1, gLnk("S", "A <i>js:</i> doc", "javascript:parent.exampleFunction(\'Special care with: " and \\\'\')"))
- //Single quote characters (') are not allowed in the string argument but you can replace them with '
- aux2 = insFld(aux1, gFld("A <i>js:</i> folder", "javascript:parent.exampleFunction("Take special care with: \" and '")"))