General Actions:
Log-in
Wiki:
CreativeIT
▼
:
Document Index
»
Space:
XWiki
▼
:
Document Index
»
Page:
GraphMacro
Search
Page Actions:
Export
▼
:
Export as PDF
Export as RTF
Export as HTML
More actions
▼
:
Print preview
View Source
GraphMacro
Wiki source code of
GraphMacro
Last modified by
Holger Dick
on 2009/05/22 13:51
Content
·
Comments
(0)
·
Attachments
(0)
·
History
·
Information
Show line numbers
#macro(graphgearmap $mapname $activeNode) <link href="/bin/download/XWiki/UserMap/slider.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="/bin/download/XWiki/UserMap/swfobject.js"> </script> <script type="text/javascript" src="/bin/download/XWiki/UserMap/mootools.js"> </script> <script type="text/javascript" src="/bin/download/XWiki/UserMap/slider.js"> </script> <script type="text/javascript" src="/bin/download/XWiki/UserMap/graphgear.js"> </script> <div id="gearspace_$mapname" style="width:100%; height:750px"> Flash plugin or Javascript are turned off. Activate both and reload to view the mindmap </div> <script language="JavaScript"> var flashMovie; function init() { if (document.getElementById) { flashMovie = document.getElementById("graphgear"); } } function jsLiveXML() { var xml = document.liveXml.liveXmlArea.value; flashMovie.liveXML(xml); } function switchGravity(num) { flashMovie.changeProperty("GRAVITY", num); } function setSegmentLength(num) { flashMovie.changeProperty("idealSegmentLength", num); } function setBounce(num) { flashMovie.changeProperty("SPRINGK", num); } function setRepel(num) { flashMovie.changeProperty("REPELK", num); } function addRandomNode() { flashMovie.addRandomNode(); } window.onload = init; </script> <script type="text/javascript"> var so = new SWFObject("/bin/download/XWiki/UserMap/GraphGear.swf", "graphgear", "100%", "100%", "8"); so.addVariable("graphXMLFile", "/bin/download/XWiki/UserMap/$mapname"); // rename to your xml file so.addVariable("idealSegmentLength", 100); so.addVariable("REPELK", 50); so.addVariable("SPRINGK", 30); so.addVariable("action", "center"); so.addVariable("selectedNode","$activeNode"); so.addParam("allowScriptAccess", "always"); so.addParam("scale", "showall"); so.addParam("salign", "tl"); so.write("gearspace_$mapname"); </script> #end
Quick Links
Home
Index
What's New
Blog
Calendar
Photo Albums
Sandbox
Tags
Bulletin Board
My Recent Modifications
PamelaJennings
|
rwakkary
|
HaledenSands
|
ByronLahey