Changeset 740 for GTP-Internal/trunk/Webpage/NOF/gtp_webpage/Styles/GameTools1-v19a/template/siteStyle.xsl
- Timestamp:
- 04/10/06 00:14:22 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP-Internal/trunk/Webpage/NOF/gtp_webpage/Styles/GameTools1-v19a/template/siteStyle.xsl
r714 r740 1 <?xml version="1.0" encoding="UTF-8"?>1 <?xml version="1.0" encoding="UTF-8"?> 2 2 3 3 <xsl:stylesheet xmlns:xsl= "http://www.w3.org/1999/XSL/Transform" … … 8 8 <xsl:import href="decoratorStyle.xsl"/> 9 9 10 <xsl:output method="html" encoding="iso-8859-1"/>10 <xsl:output method="html"/> 11 11 <xsl:output cdata-section-elements="SCRIPT"/> 12 12 <xsl:strip-space elements="*"/> … … 17 17 <meta http-equiv="Pragma" content="no-cache"/> 18 18 <meta http-equiv="Cache-Control" content="no-cache"/> 19 <script language="JavaScript"> 20 var fsiApp = new ActiveXObject("FSI.FSIApplication"); 19 <script language="JavaScript"> 21 20 document.write( 22 "<script language='javascript' src='" + fsiApp.AppDirectory + "NetObjects System/StyleView/js/scripts.js'><\/script>" + 23 " <link rel='stylesheet' type='text/css' href='" + fsiApp.AppDirectory + "NetObjects System/StyleView/css/general_en.css' />" ); 24 25 fsiApp = null; 21 "<script language='javascript' src='js/FlashCtrl.js'><\/script>" + 22 "<script language='javascript' src='js/scripts.js'><\/script>" + 23 " <link rel='stylesheet' type='text/css' href='css/general_en.css' />" ); 26 24 </script> 27 25 <script language='javascript'> 26 function NOF_OnLoadPage() { 27 runOnLoad(); 28 if (typeof navbarColl == "object") { 29 navbarColl.startAll(); 30 } 31 } 32 </script> 28 33 <link rel="stylesheet" href="display.css" type="text/css" /> 29 34 30 35 </head> 31 36 32 <body onclick="NOF_StyleView_CallInspector(null)" id="author" >37 <body onclick="NOF_StyleView_CallInspector(null)" id="author" onLoad="NOF_OnLoadPage()" onresize="navbarColl.resizeAll();"> 33 38 <TABLE width="100%" border="0" cellpadding="0" cellspacing="0"> 34 39 <TR> … … 36 41 <table border="0" cellspacing="0" cellpadding="3" width="100%"> 37 42 <tr> 38 <td width="100" valign="middle"><span class="title" id="styleView.label.author"> Gestaltet von:</span></td>43 <td width="100" valign="middle"><span class="title" id="styleView.label.author">Designed By:</span></td> 39 44 <td valign="middle"> 40 <div id="{//Author/@id}" onclick="NOF_StyleView_CallInspector(this, 'graphic')" class="objNormal">45 <div id="{//Author/@id}" onclick="NOF_StyleView_CallInspector(this, 'graphic')" ondblclick="NOF_StyleView_DblClick(this, 'graphic')" class="objNormal"> 41 46 <xsl:apply-templates select="Author"/> 42 </div> 43 47 </div> 48 <script> 49 function runOnLoad() { 50 handleAuthor(<xsl:value-of select="//Author/@id"/>); 51 } 52 </script> 44 53 </td> 45 54 </tr> … … 67 76 <TD><img src="labels/spacer.gif" width="1" height="1" border="0"/></TD> 68 77 <TD><IMG src="labels/spacer.gif" width="10" height="20"/></TD> 69 <TD><span class="label" id="styleView.label.regular"> Standard</span></TD>78 <TD><span class="label" id="styleView.label.regular">Regular</span></TD> 70 79 <TD><IMG src="labels/spacer.gif" width="10" height="20"/></TD> 71 <TD><span class="label" id="styleView.label.regularRollover"> Standard-Rollover</span></TD>80 <TD><span class="label" id="styleView.label.regularRollover">Regular Rollover</span></TD> 72 81 <TD><IMG src="labels/spacer.gif" width="10" height="20"/></TD> 73 <TD><span class="label" id="styleView.label.highlighted">H ervorgehoben</span></TD>82 <TD><span class="label" id="styleView.label.highlighted">Highlighted</span></TD> 74 83 <TD><IMG src="labels/spacer.gif" width="10" height="20"/></TD> 75 <TD><span class="label" id="styleView.label.higlightedRollover">Hervorgehobenes Rollover</span></TD> 84 <TD><span class="label" id="styleView.label.higlightedRollover">Highlighted Rollover</span></TD> 85 <TD width="100%"></TD> 76 86 </TR> 77 87 78 <xsl:apply-templates select="//Navbar/NavbarState" mode="buttonSet" /> 88 <xsl:apply-templates select="//Navbar/NavbarState" mode="buttonSet" /> 79 89 80 90 <TR> … … 90 100 </xsl:for-each> 91 101 </TD> 92 93 102 </TR> 103 </TABLE></TD> 94 104 </TR> 95 105 <TR> … … 99 109 <TABLE width="100%" border="0" cellpadding="0" cellspacing="0"> 100 110 <TR> 101 <TD background="labels/sv_title_div.gif"><span class="title" id="styleView.label.tableStyles">Tab ellen-Styles</span></TD>111 <TD background="labels/sv_title_div.gif"><span class="title" id="styleView.label.tableStyles">Table Styles</span></TD> 102 112 </TR> 103 113 <TR> … … 112 122 <TABLE width="100%" border="0" cellpadding="0" cellspacing="0"> 113 123 <TR> 114 <TD width="300" background="labels/sv_title_div.gif"><span class="title" id="styleView.label.pageBackground"> Seiten-Hintergrund</span></TD>124 <TD width="300" background="labels/sv_title_div.gif"><span class="title" id="styleView.label.pageBackground">Page Background</span></TD> 115 125 <TD><IMG src="labels/spacer.gif" width="20" height="20"/></TD> 116 <TD background="labels/sv_title_div.gif"><span class="title" id="styleView.label.addPageElements"> Zusätzliche Seiten-Elemente</span></TD>126 <TD background="labels/sv_title_div.gif"><span class="title" id="styleView.label.addPageElements">Additional Page Elements</span></TD> 117 127 </TR> 118 128 <TR> 119 129 <TD valign="top"><!-- Page background --> 120 <div id="background" onclick="NOF_StyleView_CallInspector(this, 'graphic')" class="objNormal">130 <div id="background" onclick="NOF_StyleView_CallInspector(this, 'graphic')" ondblclick="NOF_StyleView_DblClick(this, 'graphic')" class="objNormal"> 121 131 <table id="background" width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" class="background"> 122 132 <tr> … … 136 146 <TABLE width="100%" border="0" cellpadding="0" cellspacing="0"> 137 147 <TR> 138 <TD width="300" background="labels/sv_title_div.gif"><span class="title" id="styleView.label.dataList">Dat enlisten-Icons</span></TD>148 <TD width="300" background="labels/sv_title_div.gif"><span class="title" id="styleView.label.dataList">Data List Icons</span></TD> 139 149 <TD><IMG src="labels/spacer.gif" width="30" height="20"/></TD> 140 <TD background="labels/sv_title_div.gif"><span class="title" id="styleView.label.styledLine">Style -Linie</span></TD>150 <TD background="labels/sv_title_div.gif"><span class="title" id="styleView.label.styledLine">Styled Line</span></TD> 141 151 </TR> 142 152 <TR> … … 153 163 </TR> 154 164 </TABLE> 165 155 166 </body> 156 167 </html> … … 185 196 </xsl:template> 186 197 187 <xsl:template match="//Navbar/NavbarState/Button" mode="preview"> 188 <TABLE width="10" border="0" cellpadding="0" cellspacing="0"> 189 <TR> 190 <TD> 191 <div name="modePreview"> 192 <xsl:choose> <!-- Button set type Text--> 193 <xsl:when test="./ButtonState[@type = 'Text']"> 194 <table onclick="NOF_StyleView_CallInspector(document.getElementById('{../@id}'), 'graphic')" width="600" id="NavbarState.{../@id}" name="modePreview" border="{../Border/@size}" cellpadding="{../Space/@size}" cellspacing="{../Space/@size}" height="20"> 195 <tr><td align="center"><div class="{./ButtonState[@name = 'Regular' or @name = 'SecondaryRegular']/@id}" 196 onmouseover="rollImage(this);" 197 onmouseout="rollImage(this, true);" 198 roll="{./ButtonState[@name = 'Rollover' or @name = 'SecondaryRollover']/@id}" 199 rollOut="{./ButtonState[@name = 'Regular' or @name = 'SecondaryRegular']/@id}" style="padding: 5px"> 200 <xsl:apply-templates select="./ButtonState[@name = 'Regular' or @name = 'SecondaryRegular']" mode="textPreview"> 201 <xsl:with-param name="rollCss"> 202 <xsl:value-of select="./ButtonState[@name = 'Rollover' or @name = 'SecondaryRollover']/@id"/> 203 </xsl:with-param> 204 </xsl:apply-templates></div> 205 </td><td align="center"> 206 <div class="{./ButtonState[@name = 'Highlighted' or @name = 'SecondaryHighlighted']/@id}" 207 onMouseOver="rollImage(this);" 208 onMouseOut="rollImage(this, true);" 209 roll="{./ButtonState[@name = 'HighlightedRollover' or @name = 'SecondaryHighlightedRollover']/@id}" 210 rollOut="{./ButtonState[@name = 'Highlighted' or @name = 'SecondaryHighlighted']/@id}" style="padding: 5px"> 211 <xsl:apply-templates select="./ButtonState[@name = 'Highlighted' or @name = 'SecondaryHighlighted']" mode="textPreview"> 212 <xsl:with-param name="rollCss"> 213 <xsl:value-of select="./ButtonState[@name = 'HighlightedRollover' or @name = 'SecondaryHighlightedRollover']/@id"/> 214 </xsl:with-param> 215 </xsl:apply-templates></div> 216 </td><td align="center"><div class="{./ButtonState[@name = 'Regular' or @name = 'SecondaryRegular']/@id}" 217 onmouseover="rollImage(this);" 218 onmouseout="rollImage(this, true);" 219 roll="{./ButtonState[@name = 'Rollover' or @name = 'SecondaryRollover']/@id}" 220 rollOut="{./ButtonState[@name = 'Regular' or @name = 'SecondaryRegular']/@id}" style="padding: 5px"> 221 <xsl:apply-templates select="./ButtonState[@name = 'Regular' or @name = 'SecondaryRegular']" mode="textPreview"> 222 <xsl:with-param name="rollCss"> 223 <xsl:value-of select="./ButtonState[@name = 'Rollover' or @name = 'SecondaryRollover']/@id"/> 224 </xsl:with-param> 225 </xsl:apply-templates></div> 226 </td><td align="center"><div class="{./ButtonState[@name = 'Regular' or @name = 'SecondaryRegular']/@id}" 227 onmouseover="rollImage(this);" 228 onmouseout="rollImage(this, true);" 229 roll="{./ButtonState[@name = 'Rollover' or @name = 'SecondaryRollover']/@id}" 230 rollOut="{./ButtonState[@name = 'Regular' or @name = 'SecondaryRegular']/@id}" style="padding: 5px"> 231 <xsl:apply-templates select="./ButtonState[@name = 'Regular' or @name = 'SecondaryRegular']" mode="textPreview"> 232 <xsl:with-param name="rollCss"> 233 <xsl:value-of select="./ButtonState[@name = 'Rollover' or @name = 'SecondaryRollover']/@id"/> 234 </xsl:with-param></xsl:apply-templates></div> 235 </td> 236 </tr> 237 </table> 238 </xsl:when> 239 <xsl:otherwise><!-- Button set type Image--> 240 <table onclick="NOF_StyleView_CallInspector(document.getElementById('{../@id}'), 'graphic')" id="NavbarState.{../@id}" name="modePreview" border="{../Border/@size}" cellpadding="{../Space/@size}" cellspacing="{../Space/@size}" height="20"> 241 <tr><td> 242 <img name="modePreview" src="{./ButtonState[@name = 'Regular' or @name = 'SecondaryRegular']/Image/@path}" 243 onmouseover="rollImage(this);" 244 onmouseout="rollImage(this, true);" 245 roll="{./ButtonState[@name = 'Rollover' or @name = 'SecondaryRollover']/Image/@path}" 246 rollOut="{./ButtonState[@name = 'Regular' or @name = 'SecondaryRegular']/Image/@path}" /> 247 248 <img name="modePreview" src="{./ButtonState[@name = 'Highlighted' or @name = 'SecondaryHighlighted']/Image/@path}" 249 onMouseOver="rollImage(this);" 250 onMouseOut="rollImage(this, true);" 251 roll="{./ButtonState[@name = 'HighlightedRollover' or @name = 'SecondaryHighlightedRollover']/Image/@path}" 252 rollOut="{./ButtonState[@name = 'Highlighted' or @name = 'SecondaryHighlighted']/Image/@path}"/> 253 254 <img name="modePreview" src="{./ButtonState[@name = 'Regular' or @name = 'SecondaryRegular']/Image/@path}" 255 onmouseover="rollImage(this);" 256 onmouseout="rollImage(this, true);" 257 roll="{./ButtonState[@name = 'Rollover' or @name = 'SecondaryRollover']/Image/@path}" 258 rollOut="{./ButtonState[@name = 'Regular' or @name = 'SecondaryRegular']/Image/@path}" /> 259 260 <img name="modePreview" src="{./ButtonState[@name = 'Regular' or @name = 'SecondaryRegular']/Image/@path}" 261 onmouseover="rollImage(this);" 262 onmouseout="rollImage(this, true);" 263 roll="{./ButtonState[@name = 'Rollover' or @name = 'SecondaryRollover']/Image/@path}" 264 rollOut="{./ButtonState[@name = 'Regular' or @name = 'SecondaryRegular']/Image/@path}" /> 265 </td></tr> 266 267 </table> 268 </xsl:otherwise> 269 </xsl:choose> 270 </div> 271 272 </TD></TR></TABLE> 198 <xsl:template match="//Navbar/NavbarState[@type='Flash']" mode="preview"> 199 <TABLE width="10" border="0" cellpadding="0" cellspacing="0"> 200 <TR> 201 <TD> 202 <div id="P_{@id}" style="float:left;height:30" onclick="NOF_StyleView_CallFlashInspector(document.getElementById('{@id}'), document.getElementById('{./Button/ButtonState/@parent}'), 'graphic')" class="objNormal"> 203 <xsl:call-template name="FlashNav"> 204 <xsl:with-param name="idPrefix">P</xsl:with-param> 205 <xsl:with-param name="source"><xsl:value-of select="./Button/ButtonState/Flash/@path"/></xsl:with-param> 206 <xsl:with-param name="parent"><xsl:value-of select="./Button/ButtonState/@parent"/></xsl:with-param> 207 <xsl:with-param name="flashId">Button_Flash_P_<xsl:value-of select="./Button/ButtonState/@id"/></xsl:with-param> 208 <xsl:with-param name="connectorUrl"><xsl:value-of select="./Button/ButtonState/Flash/@connectorUrl"/></xsl:with-param> 209 </xsl:call-template> 210 </div> 211 </TD> 212 </TR> 213 </TABLE> 214 </xsl:template> 215 216 <xsl:template match="//Navbar/NavbarState/Button" mode="preview"> 217 <TABLE width="10" border="0" cellpadding="0" cellspacing="0"> 218 <TR> 219 <TD> 220 <div name="modePreview"> 221 <xsl:choose> <!-- Button set type Text--> 222 <xsl:when test="./ButtonState[@type = 'Text']"> 223 <table onclick="NOF_StyleView_CallInspector(document.getElementById('{../@id}'), 'graphic')" width="600" id="NavbarState.{../@id}" name="modePreview" border="{../Border/@size}" cellpadding="{../Space/@size}" cellspacing="{../Space/@size}" height="20"> 224 <tr><td align="center"><div class="{./ButtonState[@name = 'Regular' or @name = 'SecondaryRegular']/@id}" 225 onmouseover="rollImage(this);" 226 onmouseout="rollImage(this, true);" 227 roll="{./ButtonState[@name = 'Rollover' or @name = 'SecondaryRollover']/@id}" 228 rollOut="{./ButtonState[@name = 'Regular' or @name = 'SecondaryRegular']/@id}" style="padding: 5px"> 229 <xsl:apply-templates select="./ButtonState[@name = 'Regular' or @name = 'SecondaryRegular']" mode="textPreview"> 230 <xsl:with-param name="rollCss"> 231 <xsl:value-of select="./ButtonState[@name = 'Rollover' or @name = 'SecondaryRollover']/@id"/> 232 </xsl:with-param> 233 </xsl:apply-templates></div> 234 </td><td align="center"> 235 <div class="{./ButtonState[@name = 'Highlighted' or @name = 'SecondaryHighlighted']/@id}" 236 onMouseOver="rollImage(this);" 237 onMouseOut="rollImage(this, true);" 238 roll="{./ButtonState[@name = 'HighlightedRollover' or @name = 'SecondaryHighlightedRollover']/@id}" 239 rollOut="{./ButtonState[@name = 'Highlighted' or @name = 'SecondaryHighlighted']/@id}" style="padding: 5px"> 240 <xsl:apply-templates select="./ButtonState[@name = 'Highlighted' or @name = 'SecondaryHighlighted']" mode="textPreview"> 241 <xsl:with-param name="rollCss"> 242 <xsl:value-of select="./ButtonState[@name = 'HighlightedRollover' or @name = 'SecondaryHighlightedRollover']/@id"/> 243 </xsl:with-param> 244 </xsl:apply-templates></div> 245 </td><td align="center"><div class="{./ButtonState[@name = 'Regular' or @name = 'SecondaryRegular']/@id}" 246 onmouseover="rollImage(this);" 247 onmouseout="rollImage(this, true);" 248 roll="{./ButtonState[@name = 'Rollover' or @name = 'SecondaryRollover']/@id}" 249 rollOut="{./ButtonState[@name = 'Regular' or @name = 'SecondaryRegular']/@id}" style="padding: 5px"> 250 <xsl:apply-templates select="./ButtonState[@name = 'Regular' or @name = 'SecondaryRegular']" mode="textPreview"> 251 <xsl:with-param name="rollCss"> 252 <xsl:value-of select="./ButtonState[@name = 'Rollover' or @name = 'SecondaryRollover']/@id"/> 253 </xsl:with-param> 254 </xsl:apply-templates></div> 255 </td><td align="center"><div class="{./ButtonState[@name = 'Regular' or @name = 'SecondaryRegular']/@id}" 256 onmouseover="rollImage(this);" 257 onmouseout="rollImage(this, true);" 258 roll="{./ButtonState[@name = 'Rollover' or @name = 'SecondaryRollover']/@id}" 259 rollOut="{./ButtonState[@name = 'Regular' or @name = 'SecondaryRegular']/@id}" style="padding: 5px"> 260 <xsl:apply-templates select="./ButtonState[@name = 'Regular' or @name = 'SecondaryRegular']" mode="textPreview"> 261 <xsl:with-param name="rollCss"> 262 <xsl:value-of select="./ButtonState[@name = 'Rollover' or @name = 'SecondaryRollover']/@id"/> 263 </xsl:with-param></xsl:apply-templates></div> 264 </td> 265 </tr> 266 </table> 267 </xsl:when> 268 <xsl:otherwise><!-- Button set type Image--> 269 <table onclick="NOF_StyleView_CallInspector(document.getElementById('{../@id}'), 'graphic')" id="NavbarState.{../@id}" name="modePreview" border="{../Border/@size}" cellpadding="{../Space/@size}" cellspacing="{../Space/@size}" height="20"> 270 <tr><td> 271 <img name="modePreview" src="{./ButtonState[@name = 'Regular' or @name = 'SecondaryRegular']/Image/@path}" 272 onmouseover="rollImage(this);" 273 onmouseout="rollImage(this, true);" 274 roll="{./ButtonState[@name = 'Rollover' or @name = 'SecondaryRollover']/Image/@path}" 275 rollOut="{./ButtonState[@name = 'Regular' or @name = 'SecondaryRegular']/Image/@path}" /> 276 277 <img name="modePreview" src="{./ButtonState[@name = 'Highlighted' or @name = 'SecondaryHighlighted']/Image/@path}" 278 onMouseOver="rollImage(this);" 279 onMouseOut="rollImage(this, true);" 280 roll="{./ButtonState[@name = 'HighlightedRollover' or @name = 'SecondaryHighlightedRollover']/Image/@path}" 281 rollOut="{./ButtonState[@name = 'Highlighted' or @name = 'SecondaryHighlighted']/Image/@path}"/> 282 283 <img name="modePreview" src="{./ButtonState[@name = 'Regular' or @name = 'SecondaryRegular']/Image/@path}" 284 onmouseover="rollImage(this);" 285 onmouseout="rollImage(this, true);" 286 roll="{./ButtonState[@name = 'Rollover' or @name = 'SecondaryRollover']/Image/@path}" 287 rollOut="{./ButtonState[@name = 'Regular' or @name = 'SecondaryRegular']/Image/@path}" /> 288 289 <img name="modePreview" src="{./ButtonState[@name = 'Regular' or @name = 'SecondaryRegular']/Image/@path}" 290 onmouseover="rollImage(this);" 291 onmouseout="rollImage(this, true);" 292 roll="{./ButtonState[@name = 'Rollover' or @name = 'SecondaryRollover']/Image/@path}" 293 rollOut="{./ButtonState[@name = 'Regular' or @name = 'SecondaryRegular']/Image/@path}" /> 294 </td></tr> 295 296 </table> 297 </xsl:otherwise> 298 </xsl:choose> 299 </div> 300 </TD></TR></TABLE> 273 301 </xsl:template> 302 303 304 <!-- Template :: FlashNav --> 305 <xsl:template name="FlashNav"> 306 <xsl:param name="idPrefix">0</xsl:param> 307 <xsl:param name="source"><xsl:value-of select="./Flash/@path"/></xsl:param> 308 <xsl:param name="parent"><xsl:value-of select="@parent"/></xsl:param> 309 <xsl:param name="flashId">Button_Flash_<xsl:value-of select="$idPrefix"/>_<xsl:value-of select="@id"/></xsl:param> 310 <xsl:param name="connectorUrl"><xsl:value-of select="./Flash/@connectorUrl"/></xsl:param> 311 312 <div id="{$flashId}_footprint" style="float:left;"></div> 313 <div id="{$flashId}_container" style="visibility: visible; position:absolute;top: 0px; left: 0px;"> 314 <script> 315 if (typeof navbarColl == "object") { 316 var nof_<xsl:value-of select="$flashId"/> = navbarColl.createMovie("<xsl:value-of select="$flashId"/>", "<xsl:value-of select="$source"/>", 1, 1); 317 nof_<xsl:value-of select="$flashId"/>.setVariable("nof_xmlConnectorURL", "<xsl:value-of select="$connectorUrl"/>"); 318 nof_<xsl:value-of select="$flashId"/>.setParam("play", "false"); 319 nof_<xsl:value-of select="$flashId"/>.setVariable("nof_previewMode", "true"); 320 nof_<xsl:value-of select="$flashId"/>.setVariable("nof_currentPage", "mi_0001"); 321 322 nof_<xsl:value-of select="$flashId"/>.captureEvents(NOF.Event.MOUSEDOWN_EVENT); 323 nof_<xsl:value-of select="$flashId"/>.addMouseListener(new NOF_Flash_Listener("<xsl:value-of select="$flashId"/>", <xsl:value-of select="@id"/>, <xsl:value-of select="$parent"/>)); 324 nof_<xsl:value-of select="$flashId"/>.write(); 325 } 326 </script></div> 327 </xsl:template> 274 328 275 329 <!-- Template :: Button Set --> 276 330 <xsl:template match="//Navbar/NavbarState" mode="buttonSet"> 277 <tr> 278 <td align="left"><span class="labelLink"><div id="{@id}" style="height:30" onclick="NOF_StyleView_CallInspector(this, 'graphic')" class="objNormal"><xsl:value-of select="@name"/></div></span></td> 279 <td><img src="labels/spacer.gif" width="10" height="1" border="0"/></td> 280 <xsl:apply-templates select="*" mode="generate"/> 281 </tr> 282 <tr><td colspan="10"><image src="labels/spacer.gif" height="5" width="5" border="0"/></td></tr> 331 <xsl:choose> 332 <xsl:when test="@type = 'Flash'"> 333 <tr> 334 <td align="left"><span class="labelLink"><div id="{@id}" style="height:30" onclick="NOF_StyleView_CallFlashInspector(this, document.getElementById('{@id}'), 'graphic')" class="objNormal"><xsl:value-of select="@name"/></div></span></td> 335 <td><img src="labels/spacer.gif" width="10" height="1" border="0"/></td> 336 <td align="left" valign="middle" colspan="8" id="Button.{./Button/ButtonState/@id}"> 337 <xsl:apply-templates select="./Button/ButtonState"/> 338 </td> 339 </tr> 340 <tr><td colspan="10"><image src="labels/spacer.gif" height="5" width="5" border="0"/></td></tr> 341 </xsl:when> 342 <xsl:otherwise> 343 <tr> 344 <td align="left"><span class="labelLink"><div id="{@id}" style="height:30" onclick="NOF_StyleView_CallInspector(this, 'graphic')" ondblclick="NOF_StyleView_DblClick(this, 'graphic')" class="objNormal"><xsl:value-of select="@name"/></div></span></td> 345 <td><img src="labels/spacer.gif" width="10" height="1" border="0"/></td> 346 <xsl:apply-templates select="Button" mode="generate"/> 347 </tr> 348 <xsl:if test="count(EndCap1)>0"><tr> 349 <td align="right"><span class="label">End Cap 1:</span></td> 350 <td></td> 351 <xsl:apply-templates select="EndCap1" mode="generate"/> 352 </tr></xsl:if> 353 <xsl:if test="count(EndCap2)>0"><tr> 354 <td align="right"><span class="label">End Cap 2:</span></td> 355 <td></td> 356 <xsl:apply-templates select="EndCap2" mode="generate"/> 357 </tr></xsl:if> 358 <xsl:if test="count(Title)>0"><tr> 359 <td align="right"><span class="label">Section Title:</span></td> 360 <td></td> 361 <xsl:apply-templates select="Title" mode="generate"/> 362 </tr></xsl:if> 363 <tr><td colspan="10"><image src="labels/spacer.gif" height="5" width="5" border="0"/></td></tr> 364 </xsl:otherwise> 365 </xsl:choose> 283 366 </xsl:template> 284 367 … … 302 385 </xsl:choose> 303 386 </xsl:variable> 304 <div id="{@id}" onclick="NOF_StyleView_CallInspector(this, 'graphic')" class="objNormal" style="{./Font/@css}">387 <div id="{@id}" onclick="NOF_StyleView_CallInspector(this, 'graphic')" ondblclick="NOF_StyleView_DblClick(this, 'graphic')" class="objNormal" style="{./Font/@css}"> 305 388 <span id="{@id}" class="{$spanAlign}">Button Text</span></div> 306 389 <style> … … 316 399 padding: <xsl:value-of select="@vAlign"/>px 0px 0px 0px} 317 400 </style> 318 </xsl:when> 401 </xsl:when> 402 <xsl:when test="@type = 'Flash'"> 403 <div id="{@id}" style="float:left; height:30" onclick="NOF_StyleView_CallFlashInspector(this, document.getElementById('{@parent}'), 'graphic')" class="objNormal"> 404 <xsl:call-template name="FlashNav"> 405 <xsl:with-param name="idPrefix">F</xsl:with-param> 406 </xsl:call-template> 407 </div> 408 </xsl:when> 319 409 <xsl:otherwise> 320 <div id="{@id}" onclick="NOF_StyleView_CallInspector(this, 'graphic')" class="objNormal"><img id="{@id}" src="{./Image/@path}" border="0"/></div> 410 <xsl:choose> 411 <xsl:when test="string-length(./Image/@path)!=0"> 412 <div id="{@id}" onclick="NOF_StyleView_CallInspector(this, 'graphic')" ondblclick="NOF_StyleView_DblClick(this, 'graphic')" class="objNormal"><img id="{@id}" src="{./Image/@path}" border="0"/></div> 413 </xsl:when> 414 <xsl:otherwise> 415 <div id="{@id}" onclick="NOF_StyleView_CallInspector(this, 'graphic')" ondblclick="NOF_StyleView_DblClick(this, 'graphic')" class="objNormal"> 416 <span id="{@id}" class="invalidImage">Not Specified</span> 417 </div> 418 </xsl:otherwise> 419 </xsl:choose> 321 420 </xsl:otherwise> 322 421 </xsl:choose> 323 422 </xsl:template> 324 423 325 424 <!-- Template :: Banner --> 326 425 <xsl:template match="Banners"> … … 335 434 336 435 <xsl:template match="Banner"> 337 <SPAN class="label" ><xsl:value-of select="@name"/></SPAN>436 <SPAN class="label" id="BannerLabel.{./@id}"><xsl:value-of select="@name"/></SPAN> 338 437 <xsl:choose> 339 438 <xsl:when test="@type = 'Image'"> 340 <div id="{@id}" onclick="NOF_StyleView_CallInspector(this, 'graphic')" class="objNormal">439 <div id="{@id}" onclick="NOF_StyleView_CallInspector(this, 'graphic')" ondblclick="NOF_StyleView_DblClick(this, 'graphic')" class="objNormal"> 341 440 <img id="{@id}" src="{./Image/@path}" /> 342 441 </div> 343 442 </xsl:when> 344 443 <xsl:when test="@type = 'Text'"> 345 <div id="{@id}" onclick="NOF_StyleView_CallInspector(this, 'graphic')" class="objNormal">444 <div id="{@id}" onclick="NOF_StyleView_CallInspector(this, 'graphic')" ondblclick="NOF_StyleView_DblClick(this, 'graphic')" class="objNormal"> 346 445 <img src="labels/spacer.gif" width="1" height="1"/><xsl:apply-templates select="." mode="bannerText"/></div> 347 </xsl:when> 446 </xsl:when> 447 <xsl:when test="@type = 'Flash'"> 448 <xsl:variable name="source"><xsl:value-of select="./Flash/@path"/></xsl:variable> 449 <xsl:variable name="flashId">Banner_Flash_<xsl:value-of select="@id"/></xsl:variable> 450 <xsl:variable name="connectorUrl"><xsl:value-of select="./Flash/@connectorUrl"/></xsl:variable> 451 <xsl:variable name="labelText"><xsl:value-of select="./@caption"/></xsl:variable> 452 453 <div id="{@id}" onclick="NOF_StyleView_CallInspector(this, 'graphic')" ondblclick="NOF_StyleView_DblClick(this, 'graphic')" class="objNormal"> 454 <script> 455 if (typeof bannerColl == "object") { 456 nof_<xsl:value-of select="$flashId"/> = bannerColl.createMovie("<xsl:value-of select="$flashId"/>", "<xsl:value-of select="$source"/>", <xsl:value-of select="./Flash/@width"/>, <xsl:value-of select="./Flash/@height"/>); 457 nof_<xsl:value-of select="$flashId"/>.setVariable("nof_xmlConnectorURL", "<xsl:value-of select="$connectorUrl"/>"); 458 nof_<xsl:value-of select="$flashId"/>.setVariable("nof_labelText", "<xsl:value-of select="$labelText"/>"); 459 460 nof_<xsl:value-of select="$flashId"/>.captureEvents(NOF.Event.MOUSEDOWN_EVENT); 461 nof_<xsl:value-of select="$flashId"/>.addMouseListener(new NOF_Flash_Listener("<xsl:value-of select="$flashId"/>", <xsl:value-of select="@id"/>, -1)); 462 nof_<xsl:value-of select="$flashId"/>.write(); 463 } 464 </script> 465 </div> 466 </xsl:when> 348 467 <xsl:otherwise> 349 <div id="{@id}" onclick="NOF_StyleView_CallInspector(this, 'graphic')" class="objNormal">468 <div id="{@id}" onclick="NOF_StyleView_CallInspector(this, 'graphic')" ondblclick="NOF_StyleView_DblClick(this, 'graphic')" class="objNormal"> 350 469 <img id="{@id}" src="{./Image/@path}" /> 351 470 </div> … … 366 485 </xsl:choose> 367 486 </xsl:variable> 368 <span style="{./Font/@css}{$cssClass}">Text Banner</span>487 <span id="{@id}" style="{./Font/@css}{$cssClass}">Text Banner</span> 369 488 </xsl:template> 370 489 … … 373 492 <table border="0" cellspacing="0"> 374 493 <tr><td> 375 <div id="{@id}" onclick="NOF_StyleView_CallInspector(this, 'graphic')" class="objNormal">494 <div id="{@id}" onclick="NOF_StyleView_CallInspector(this, 'graphic')" ondblclick="NOF_StyleView_DblClick(this, 'graphic')" class="objNormal"> 376 495 <table border="0" cellspacing="1" cellpadding="1" id="{@id}"> 377 496 <tr> 378 497 <td width="10" align="left" scope="col" id="{@id}"><img id="{@id}" src="{@path}"/></td> 379 <td width="100" align="left" scope="col" id="{@id}" class="dataList">Dat enlisten-Icon</td>498 <td width="100" align="left" scope="col" id="{@id}" class="dataList">Data List Icon</td> 380 499 </tr> 381 500 <tr> 382 501 <td width="10" align="left" scope="col" id="{@id}"><img id="{@id}" src="{@path}"/></td> 383 <td width="100" align="left" scope="col" id="{@id}" class="dataList">Dat enlisten-Icon</td>502 <td width="100" align="left" scope="col" id="{@id}" class="dataList">Data List Icon</td> 384 503 </tr> 385 504 <tr> 386 505 <td width="10" align="left" scope="col" id="{@id}"><img id="{@id}" src="{@path}"/></td> 387 <td width="100" align="left" scope="col" id="{@id}" class="dataList">Dat enlisten-Icon</td>506 <td width="100" align="left" scope="col" id="{@id}" class="dataList">Data List Icon</td> 388 507 </tr> 389 508 </table> … … 402 521 <tr> 403 522 <td width="10" align="left" scope="col" id="{@id}"><img id="{@id}" src="{@path}"/></td> 404 <td width="100" align="left" scope="col" id="{@id}" class="dataList">Dat enlisten-Icon</td>523 <td width="100" align="left" scope="col" id="{@id}" class="dataList">Data List Icon</td> 405 524 </tr> 406 525 <tr> 407 526 <td width="10" align="left" scope="col" id="{@id}"><img id="{@id}" src="{@path}"/></td> 408 <td width="100" align="left" scope="col" id="{@id}" class="dataList">Dat enlisten-Icon</td>527 <td width="100" align="left" scope="col" id="{@id}" class="dataList">Data List Icon</td> 409 528 </tr> 410 529 <tr> 411 530 <td width="10" align="left" scope="col" id="{@id}"><img id="{@id}" src="{@path}"/></td> 412 <td width="100" align="left" scope="col" id="{@id}" class="dataList">Dat enlisten-Icon</td>531 <td width="100" align="left" scope="col" id="{@id}" class="dataList">Data List Icon</td> 413 532 </tr> 414 533 </table> … … 422 541 <table border="0" cellspacing="0"> 423 542 <tr><td> 424 <div id="{@id}" onclick="NOF_StyleView_CallInspector(this, 'graphic')" class="objNormal"><img id="{@id}" src="{@path}"/></div>543 <div id="{@id}" onclick="NOF_StyleView_CallInspector(this, 'graphic')" ondblclick="NOF_StyleView_DblClick(this, 'graphic')" class="objNormal"><img id="{@id}" src="{@path}"/></div> 425 544 </td> 426 545 <td width="*"></td> … … 431 550 432 551 <xsl:template match="Author"> 433 <span id="{@id}"><font class="label"><xsl:value-of select="@name"/></font></span> 552 <span id="{@id}"><font class="label"><xsl:value-of select="@name"/></font></span> 434 553 </xsl:template> 435 554 … … 443 562 </xsl:if> 444 563 <td> 445 <div id="{./@id}" onclick="NOF_StyleView_CallInspector(this, 'graphic')" on mousedown="NOF_StyleView_TsRightClick({./@id})" class="objNormal" bgcolor="#FFFFFF">564 <div id="{./@id}" onclick="NOF_StyleView_CallInspector(this, 'graphic')" ondblclick="NOF_StyleView_DblClick(this, 'graphic')" onmousedown="NOF_StyleView_TsRightClick({./@id})" class="objNormal" bgcolor="#FFFFFF"> 446 565 <table border="0" cellspacing="0" cellpadding="0"> 447 566 <tr>
Note: See TracChangeset
for help on using the changeset viewer.