如何处理包含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
投稿

猜你喜欢

  • centos 安装mysql中遇到问题的解决办法

    2010-12-14 15:11:00
  • CSS3中的box-sizing属性

    2010-04-05 21:52:00
  • CSS像素图制作攻略

    2009-05-19 19:32:00
  • Sql2005启用和关闭xp_cmdshell功能

    2008-09-29 15:37:00
  • ASP使用MYSQL数据库全攻略

    2009-11-08 18:27:00
  • ORACLE应用经验(2)

    2010-07-31 13:31:00
  • 将多宿主计算机配置为SQL Server访问

    2011-01-04 16:17:00
  • javascript 密码强度验证规则、打分、验证

    2010-05-18 19:58:00
  • JavaScript 编程引入命名空间

    2007-10-11 19:00:00
  • 带你轻松接触MaxDB和MySQL之间的协同性

    2008-12-03 17:10:00
  • 何在MySQL数据库中定义外键

    2009-12-17 12:29:00
  • MySQL十条特殊技巧

    2007-09-17 12:33:00
  • Dreamweaver MX 2004新特点

    2008-02-03 11:35:00
  • javascript trim、left、right等函数,兼容IE,FireFox

    2009-09-18 14:55:00
  • 5招优化MySQL插入方法

    2009-04-02 10:49:00
  • ASP用csDrawGraph组件制作饼图、柱状图

    2008-04-25 22:58:00
  • WEB页面工具语言XML带来的好处

    2008-05-29 11:01:00
  • oblog4.6转换ucenterHome1.5过程全记录,提供老用户无法登陆的补丁

    2009-10-29 12:04:00
  • 两个asp函数实现javascript的escape函数和unescape函数功能

    2009-02-04 15:47:00
  • 学习ASP.NET八天入门:第六天

    2007-08-07 13:48:00
  • asp之家 网络编程 m.aspxhome.com