关于URL转跳的问题 我是菜鸟点击http://nightwind.net.cn/xxx/就转跳到http://nightwind.net.cn/blog/xxx/如何实现?向各位高手! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 用window.location.href = 'http://nightwind.net.cn/blog/xxx/ ';或<a href="http://nightwind.net.cn/blog/xxx/ "> <a href="http://nightwind.net.cn/blog/xxx/">http://nightwind.net.cn/xxx/</a> 谢谢大家的回答,我说的是XXX泛指多个,比如从搜索引擎进入http://nightwind.net.cn/1/就转跳到http://nightwind.net.cn/blog/1/http://nightwind.net.cn/2/http://nightwind.net.cn/blog/2/ <html><head><title></title><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><script type="text/javascript"> window.onload = function(){ var url = ['http://nightwind.net.cn/2/','http://nightwind.net.cn/1/ ']; for(var i = 0; i < url.length; i ++){ var u = url[i].substr(url[i].lastIndexOf('/') - 1); alert('http://nightwind.net.cn/blog/' + u); } };</script></head><body></body></html> 获取<input name="fileload" id="fileload" type="file"/>的绝对路径 jquery的特效实现??? 求一个js漂亮的进度条 帮忙解决,谢谢!!!! 高手指点,jsp多条件查询出错…… MOOTOOLS的$()选择怎么不好使? 谁帮忙看一下 请教js中的new Date()如何与输入的日期值比较大小呢? xml在FF中怎么使用? 求解? javascript中是否有判断字符串是否是数字的函数? 关于XMLHttpRequest对象的回调函数问题 一个js的小程序,请求帮助
<a href="http://nightwind.net.cn/blog/xxx/">http://nightwind.net.cn/xxx/</a>
比如从搜索引擎进入http://nightwind.net.cn/1/
就转跳到http://nightwind.net.cn/blog/1/http://nightwind.net.cn/2/
http://nightwind.net.cn/blog/2/
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<script type="text/javascript">
window.onload = function(){
var url = ['http://nightwind.net.cn/2/','http://nightwind.net.cn/1/ '];
for(var i = 0; i < url.length; i ++){
var u = url[i].substr(url[i].lastIndexOf('/') - 1);
alert('http://nightwind.net.cn/blog/' + u);
}
};
</script>
</head>
<body>
</body>
</html>