问下怎么让特定网址时加一句JS
Posted: Jun 23 2008, 19:47
如果硬写的话我倒是能写
比如把</head> 替换成 <JS></head>
可是我感觉prox应该有这个功能 不用那么硬写
比如把</head> 替换成 <JS></head>
可是我感觉prox应该有这个功能 不用那么硬写
Code: Select all
[Patterns]
Name = "My JavaScript URL Add"
Active = TRUE
URL = "$TYPE(htm)$TST(sUserJSList=*)"
Limit = 16
Match = "(^(^<ProxHdrTop>))$STOP()"
Replace = "<!-- My JavaScript URL Add Start -->\n"
"$GET(sUserJSList)"
"<!-- My JavaScript URL Add End -->\n"
这段英文是抄的sUserCSS的 可能有错误..........## insert user script for name $SET(sUserJSList=JS_List)
##
## You may also write your own JS, prefix the filename with "proxjs-", e.g.
## "proxjs-janedoe.js", copy it to "html\MyJS\", and invoke
## it with an entry like:
## mysite.com/ $SET(sUserJSList=<script src="http://local.ptron/MyJS/proxjs-janedoe.js" type="text/javascript"></script>\n)