怎么在htm页面调用一个已经写好的JS (就是把那个JS放到模版的全局头部里面 DZ程序)
document.writeln("<IFRAMEalign=centermarginWidth=0marginHeight=0src=\"../template/Mcb...
document.writeln("<IFRAME align=center marginWidth=0 marginHeight=0 src=\"../template/Mcbang_Quu/img/top.htm\"+document.title+\"#\"+location.href+\"\" frameBorder=0 width=100% height=39 scrolling=no></IFRAME>"); 这是JS
<!--{subtemplate common/header_common}-->
<script src="/img/dingbu/top_index.js?Ugc" type="text/javascript"></script>
<meta name="application-name" content="$_G['setting']['bbname']" />
<meta name="msapplication-tooltip" content="$_G['setting']['bbname']" />
<!--{if $_G['setting']['portalstatus']}--><meta name="msapplication-task" content="name=$_G['setting']['navs'][1]['navname'];action-uri={echo !empty($_G['setting']['domain']['app']['portal']) ? 'http://'.$_G['setting']['domain']['app']['portal'] : $_G[siteurl].'portal.php'};icon-uri={$_G[siteurl]}{IMGDIR}/portal.ico" /><!--{/if}-->这是header头部模版 这样写调用不出来 展开
<!--{subtemplate common/header_common}-->
<script src="/img/dingbu/top_index.js?Ugc" type="text/javascript"></script>
<meta name="application-name" content="$_G['setting']['bbname']" />
<meta name="msapplication-tooltip" content="$_G['setting']['bbname']" />
<!--{if $_G['setting']['portalstatus']}--><meta name="msapplication-task" content="name=$_G['setting']['navs'][1]['navname'];action-uri={echo !empty($_G['setting']['domain']['app']['portal']) ? 'http://'.$_G['setting']['domain']['app']['portal'] : $_G[siteurl].'portal.php'};icon-uri={$_G[siteurl]}{IMGDIR}/portal.ico" /><!--{/if}-->这是header头部模版 这样写调用不出来 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询