1. 论坛系统升级为Xenforo,欢迎大家测试!
    排除公告

JS高手请进!~~

本帖由 cmcm1632006-04-04 发布。版面名称:前端开发

  1. cmcm163

    cmcm163 New Member

    注册:
    2005-12-23
    帖子:
    59
    赞:
    0
    我想把下面这几句放入一个单独的js文件中,以供页面调用。

    <SCRIPT LANGUAGE='JavaScript'> unionuser = '1219';</SCRIPT><SCRIPT LANGUAGE='JavaScript' src='http://v.jyunion.com/code/js/right85X85.js'></SCRIPT>

    我知道可能是要用到document.write(' ');语句,但是试了几次都没有成功~~

    请高手指点一下~~谢谢~!!!
     
  2. swenge

    swenge New Member

    注册:
    2005-11-28
    帖子:
    386
    赞:
    1
    代码:
    document.write("<SCRIPT LANGUAGE='JavaScript'> unionuser = '1219';</SCRIPT><SCRIPT LANGUAGE='JavaScript' src='http://v.jyunion.com/code/js/right85X85.js'></SCRIPT>");
    这样?
     
  3. cmcm163

    cmcm163 New Member

    注册:
    2005-12-23
    帖子:
    59
    赞:
    0
    谢谢~~~搞定~~~~

    我多加了个单引号,所以老是不行!!:heart: