[phpBB Debug] PHP Warning: in file [ROOT]/includes/crs/crs_misc_functions.php on line 37: mime_content_type(): Empty filename or path
[phpBB Debug] PHP Warning: in file [ROOT]/includes/crs/crs_misc_functions.php on line 37: mime_content_type(): Empty filename or path
Zen Cart 源代码 read_me_jscript.html

Zen Cart 源代码 read_me_jscript.html




下载文件

文件名: read_me_jscript.html
文件类型: HTML文件
文件大小: 3.96 KiB
MD5: 5170772fbb43ceba112bfb039f774125

read_me_jscript.html - 关闭高亮
  1. <!--
  2. /**
  3. * @package documentation
  4. * @copyright Copyright 2003-2006 Zen Cart Development Team
  5. * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
  6. * @version $Id: read_me_jscript.html 3273 2006-03-27 16:48:29Z drbyte $
  7. */
  8. //-->
  9. <style type="text/css">
  10. <!--
  11. body, table{ font-family:Verdana, Arial, Helvetica, sans-serif; font-size:14px; }
  12. table.intro {border-color:C96E29; }
  13. td.intro{background-color:#EEEEEE ; border-color:5778ce; font-size:14px; }
  14. td.plainbox, div.callout {border: 1px dashed; border-color: C96E29; margin:5 40 5 40;}
  15. .heading {background-color:5778CE; font-weight:bold; font-size:14px;    width: 100%; }
  16.  
  17. .title1 {color:C96E29; font-weight:bold; font-size:22px; }
  18. .title2 {color:C96E29; font-weight:bold; font-size:13px; }
  19. .small {font-size:10px ;}
  20. .error {color:FF0000; }
  21. .filename {font-family: mono, "Courier New", Courier ; font-size:14px; color: c96e29;}
  22. .pseudolink {text-decoration:underline; color:5778CE;}
  23. h1.intro { color: #ffffff; border:1px solid #aca893; background-color: #c96e29;  font-size: 22px;   padding: 4px;}
  24. h1 { color: #ffffff;    border:1px solid #aca893;   background-color: #5778ce;   font-size: 20px;   padding: 4px;}
  25. h2 { color: #c96e29;    font-size: 18px;}
  26. h3 { color: #5778ce;    font-size: 16px; margin-bottom:0px;}
  27. h4 { color: #c96e29;    font-size: 14px;}
  28. .style1 {color: #CC0000}
  29. .style2 {color: #0033FF}
  30. -->
  31. <title>JScript Overrides in Zen Cart(tm)</title>
  32. <h1><strong>JavaScript Override How-To</strong> </h1>
  33. <h2>Site-Wide jscript's</h2>
  34. <h3>jscript*.js files -- to be &quot;linked&quot; by your site </h3>
  35. <p>Any file in the <code class="filename">includes/templates/<span class="style2">{template_directory}</span>/jscript/</code> directory with the following filename format will be loaded globally on every page of your shop: <br />
  36. <code class="filename">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<strong>jscript_<span class="style1">{unique_name}</span>.js</strong></code><br />
  37. <em>(where <span class="style1">{unique_name}</span> can be anything you want) </em><br />
  38. <br />
  39. <br />
  40. Effectively, the file will be loaded as if you had inserted the following into an HTML page:<br />
  41.  
  42. <br />
  43. <code class="filename">&lt;script language=&quot;javascript&quot; src=&quot;includes/templates/<span class="style2">{template_directory}</span>/jscript/jscript_<span class="style1">{unique_name}</span>.js&quot;&gt;&lt;/script&gt;</code><br />
  44. </p>
  45. <h3>jscript*.php files -- to be &quot;included&quot; in your HTML content sent to the browser, inline.</h3>
  46. <p>If you need to control the content of certain PHP variables inside jscript code on the page, OR if you need to include several &lt;script&gt;...&lt;/script&gt; tags, use a jscript_*.<strong>php</strong> file instead. <br />
  47. However, <span class="style1">in this case, <strong>you DO need to include</strong></span> the <span class="filename">&lt;script .... &gt;</span> and <span class="filename">&lt;/script&gt;</span> tags in the file. </p>
  48. <p>&nbsp; </p>
  49. <h2>Page-Specific jscript's</h2>
  50. <p>For page-specific operation, put the file under the <code class="filename">/includes/modules/pages/{pagename}/</code> folder. </p>
  51. <h3>jscript*.js files -- to be &quot;linked&quot; by your site </h3>
  52. <p>NOTE: <span class="style1">jscript_*.js</span> files must <strong>not</strong> contain any <code class="filename">&lt;script...&gt; .... &lt;/script&gt;</code> tags. <span class="style1">They should contain ONLY the contents that are to go &quot;between&quot; those tags. <br />
  53. </span></p>
  54. <h3>jscript*.php files -- to be &quot;included&quot; in your HTML content sent to the browser, inline.</h3>
  55. <p>If you need to control the content of certain PHP variables inside jscript code on the page, use a jscript_*.<strong>php</strong> file.<br />
  56. However, <span class="style1">in this case, you <strong>DO need to include</strong></span> the <span class="filename">&lt;script .... &gt;</span> and <span class="filename">&lt;/script&gt;</span> tags in the file. </p>
  57.  


cron