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
Hide line numbers
1: 2: #macro(graphgearmap $mapname $activeNode) 3: <link href="/bin/download/XWiki/UserMap/slider.css" rel="stylesheet" type="text/css" /> 4: <script type="text/javascript" 5: src="/bin/download/XWiki/UserMap/swfobject.js"> 6: </script> 7: <script type="text/javascript" 8: src="/bin/download/XWiki/UserMap/mootools.js"> 9: </script> 10: <script type="text/javascript" 11: src="/bin/download/XWiki/UserMap/slider.js"> 12: </script> 13: <script type="text/javascript" 14: src="/bin/download/XWiki/UserMap/graphgear.js"> 15: </script> 16: <div id="gearspace_$mapname" style="width:100%; height:750px"> 17: Flash plugin or Javascript are turned off. 18: Activate both and reload to view the mindmap 19: </div> 20: <script language="JavaScript"> 21: var flashMovie; 22: function init() { 23: if (document.getElementById) { 24: flashMovie = document.getElementById("graphgear"); 25: } 26: } 27: function jsLiveXML() { 28: var xml = document.liveXml.liveXmlArea.value; 29: flashMovie.liveXML(xml); 30: } 31: function switchGravity(num) { 32: flashMovie.changeProperty("GRAVITY", num); 33: } 34: function setSegmentLength(num) { 35: flashMovie.changeProperty("idealSegmentLength", num); 36: } 37: function setBounce(num) { 38: flashMovie.changeProperty("SPRINGK", num); 39: } 40: function setRepel(num) { 41: flashMovie.changeProperty("REPELK", num); 42: } 43: function addRandomNode() { 44: flashMovie.addRandomNode(); 45: } 46: window.onload = init; 47: </script> 48: <script type="text/javascript"> 49: var so = new SWFObject("/bin/download/XWiki/UserMap/GraphGear.swf", "graphgear", "100%", "100%", "8"); 50: so.addVariable("graphXMLFile", "/bin/download/XWiki/UserMap/$mapname"); // rename to your xml file 51: so.addVariable("idealSegmentLength", 100); 52: so.addVariable("REPELK", 50); 53: so.addVariable("SPRINGK", 30); 54: so.addVariable("action", "center"); 55: so.addVariable("selectedNode","$activeNode"); 56: so.addParam("allowScriptAccess", "always"); 57: so.addParam("scale", "showall"); 58: so.addParam("salign", "tl"); 59: so.write("gearspace_$mapname"); 60: </script> 61: #end
Quick Links
Home
Index
What's New
Blog
Calendar
Photo Albums
Sandbox
Tags
Bulletin Board
My Recent Modifications
PamelaJennings
|
rwakkary
|
HaledenSands
|
ByronLahey