⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 maketreescript.xsl

📁 Copyright&copy 2004 Sergiu Dumitriu, Marta G&icirc rdea, C&#259 t&#259 lin Hri&#355 cu Permission is
💻 XSL
字号:
<?xml version="1.0" encoding="UTF-8"?>
<!--
Template: MakeTreeScript.xsl

Outputs the script that handles the tree
-->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/2000/svg" xmlns:UML="org.omg.xmi.namespace.UML">
	<xsl:output media-type="image/svg+xml" method="xml" indent="yes"/>

	<!-- MakeTreeScript -->
	<xsl:template name="MakeTreeScript">
		<!-- Main TreeScript group -->
		<script type="text/ecmascript"><xsl:text disable-output-escaping="yes">&lt;![CDATA[<![CDATA[
	function show(id){
		document.getElementById(id).setAttribute('display', 'inline');
		document.getElementById(id+'P').setAttribute('display', 'none');
		document.getElementById(id+'M').setAttribute('display', 'inline');
	}
	function hide(id){
		document.getElementById(id).setAttribute('display', 'none');
		document.getElementById(id+'P').setAttribute('display', 'inline');
		document.getElementById(id+'M').setAttribute('display', 'none');
	}

	function treeNodeClick(id){
		if(document.getElementById(id).getAttribute('display') == 'none'){
			show(id);
		}
		else {
			hide(id);
		}
	}
	
	var CurrentDiagramID = null;
	function showDiagram(ID){
		if(CurrentDiagramID != null){
			document.getElementById(CurrentDiagramID).setAttribute('display', 'none');
			document.getElementById(CurrentDiagramID + 'T').setAttribute('fill', '#FFFFE3');
			document.getElementById(CurrentDiagramID + 'T').setAttribute('onmouseover', "document.getElementById('" + CurrentDiagramID + "T').setAttribute('fill', '#FFF')");
			document.getElementById(CurrentDiagramID + 'T').setAttribute('onmouseout', "document.getElementById('" + CurrentDiagramID + "T').setAttribute('fill', '#FFFFE3')");
		}
		document.getElementById(ID).setAttribute('display', 'inline');
		CurrentDiagramID = ID;
		document.getElementById(CurrentDiagramID + 'T').setAttribute('fill', '#FFE089');
		document.getElementById(CurrentDiagramID + 'T').setAttribute('onmouseover', "");
		document.getElementById(CurrentDiagramID + 'T').setAttribute('onmouseout', "");
	}
		]]>]]&gt;</xsl:text>
		</script>
	</xsl:template>
</xsl:stylesheet>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -