ASP 指定位置插入字符

来源:百度知道 编辑:UC知道 时间:2024/06/18 04:41:07
<area shape="rect" coords="20,82,104,107" href="index.asp">
<area shape="rect" coords="110,83,196,106" href="about.asp">
<area shape="rect" coords="200,81,289,108" href="qywh.asp">

<td height="25" background="images/dh.gif">
<img src="images/ry1.gif" width="170" >

指定位置插入字符如

指定字符:http://www.xxxx.com/

<area shape="rect" coords="20,82,104,107" href="http://www.xxxx.com/index.asp">
<area shape="rect" coords="110,83,196,106" href="http://www.xxxx.com/about.asp">

用替换呀,找到相同点,比如你的代码中的相同点就是href="
那就把href="替换成href="http://www.xxxx.com/ 不就行了.

asp中的替换函数是replace

自己搜索一下asp的replace函数用法吧.