如何处理包含JavaScript语句时的间隔符?

来源:asp之家 时间:2009-11-14 20:39:00 

试一试这个办法:

struserlist = struserlist & "<a href='#' onclick=\" & chr(34) &_
"sendmsg('" & usernick & "');return false;\" & chr(34) &_
" class='l_line'><span class=lineinfo>" & usernick & "</span></a>"
' StrUserList字串被赋值给另一个页面上的一个表单中隐藏文本单元
if (top.LineInfo.document.forms.length == 1)
{
 top.LineInfo.document.forms[0].userlist.value = "<% =GetAppUserList() %>";
 if (top.MainFrame.mylayer != null)
 top.MainFrame.ShowLineInfo();
}

在主页帧中显示:

function ShowLineInfo()
{
 var userlist;
 if (top.LineInfo.document.forms.length == 1)
 userlist = top.LineInfo.document.forms[0].userlist.value
 else
 userlist = "<span class='lineinfo'>欢迎光临asp之家!</span>";
 userlist = userlist + " <a href='<% =path %>/listuser.asp'>" +
    "<span class='lineinfo'>显示列表</span></a><a href='#' onclick='top.RefFrame.location=" +
  ""<% =path %>/refresh.asp?stat=manu"'><span class='lineinfo'> 刷新</span></a>";
if (mylayer != null)
{
  mylayer.innerHTML = "";
  mylayer.filters[0].Apply();
  mylayer.innerHTML = userlist
  mylayer.filters[0].Play();
}
}


 

标签:间隔符,JavaScript,asp
0
投稿

猜你喜欢

  • 关于document.cookie的使用javascript

    2024-04-30 08:55:32
  • 接口数据安全保证的10种方式

    2022-06-08 08:59:35
  • 使用Python实现下载网易云音乐的高清MV

    2022-08-07 17:30:52
  • Python控制鼠标键盘代码实例

    2021-07-28 11:17:30
  • python使用turtle库绘制时钟

    2022-09-13 07:06:51
  • 一文读懂JS中的var/let/const和暂时性死区

    2024-04-19 10:06:05
  • django admin组件使用方法详解

    2021-05-28 19:59:53
  • jupyter notebook 重装教程

    2022-07-20 09:38:02
  • 使用Python写一个小游戏

    2023-07-20 17:31:07
  • SQLServer中的切割字符串SplitString函数

    2011-12-01 08:14:09
  • 用Python删除本地目录下某一时间点之前创建的所有文件的实例

    2021-07-29 05:34:59
  • mysql分页性能探索

    2024-01-23 22:35:21
  • IE8新特性及IE8安装使用 目录

    2008-04-01 09:50:00
  • SpringSecurity框架简介及与shiro特点对比

    2023-01-03 13:56:25
  • Oracle数据库编写有效事务指导方针

    2009-03-19 17:41:00
  • Windows 64位下python3安装nltk模块

    2023-11-20 09:42:12
  • 搭建vue开发环境

    2024-04-09 10:58:27
  • Python二进制转化为十进制数学算法详解

    2021-11-09 19:45:20
  • 导入pytorch时libmkl_intel_lp64.so找不到问题解决

    2021-03-21 01:52:23
  • Perl中的控制结构学习笔记

    2023-05-17 20:08:18
  • asp之家 网络编程 m.aspxhome.com