index.php?s=my/show/id/hot 表示访问当前模板主题下的my_hot.html
- 2.内部Javascript调用自定义模板方法及调用例子
<script type="text/javascript" src="{$webpath}index.php?s=my/show/id/模板后缀/参数1/值1/参数2/值2"></script>
<gxcms name="movie" limit="12" order="addtime desc">
documnet.write('{$i} {$movie.title}');
documnet.write('{$movie.showname}');
documnet.write('{$movie.picurl}');
</gxcms>
- 3.外站Javascript调用自定义模板方法如下
<script type="text/javascript" src="http://你的网址/index.php?s=my/show/id/模板后缀/参数1/值1/参数2/值2"></script>
<iframe width="100" scrolling="no" height="300" frameborder="0" src="{$webpath}index.php?s=my/show/id/模板后缀/参数1/值1/参数2/值2" marginwidth="0"
marginheight="0" vspace="0" hspace="0" allowtransparency="true"></iframe>
<gxcms name="movie" limit="12" order="addtime desc">
documnet.write('{$i} {$movie.title}');
documnet.write('{$movie.showname}');
documnet.write('{$movie.picurl}');
</gxcms>
<iframe width="100" scrolling="no" height="300" frameborder="0" src="http://你的网址/index.php?s=my/show/id/模板后缀/参数1/值1/参数2/值2"
marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true"></iframe>
<gxcms name="movie" limit="12" order="addtime desc">
documnet.write('{$i} {$movie.title}');
documnet.write('{$movie.showname}');
documnet.write('{$movie.picurl}');
</gxcms>
- 6.自定义模板中获取地址栏参数的方法
- {.参数1} 直接输出地址栏参数1的值
- {$Think.get.参数1} 也可以用此方法
参考来源[ ]