摘要: 几种JS获取url并分析URL任意部分的代码对于这样一个http://hexun.com.com/seo/?ver=1.0&id=6#imhere我们可以用javascript获得其中的各个部分1, window.location.href整个URl字符串(在浏览器中就是完整的地址栏)2,window.location.protocolURL 的协议部分本例返回值:http:3,windo... 阅读全文
posted @ 2010-07-05 14:40 荣辱不惊 阅读(411) 评论(0) 推荐(0)
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta htt... 阅读全文
posted @ 2010-07-05 10:46 荣辱不惊 阅读(2050) 评论(0) 推荐(0)
摘要: A.html************************************************************************************<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-tran... 阅读全文
posted @ 2010-07-05 10:43 荣辱不惊 阅读(1059) 评论(0) 推荐(0)
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta htt... 阅读全文
posted @ 2010-07-05 10:22 荣辱不惊 阅读(535) 评论(0) 推荐(0)
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta htt... 阅读全文
posted @ 2010-07-05 10:11 荣辱不惊 阅读(682) 评论(0) 推荐(0)
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta htt... 阅读全文
posted @ 2010-07-05 10:05 荣辱不惊 阅读(453) 评论(0) 推荐(0)
摘要: public string turn(String str) { //str 从数据库里取得的数据 while(str.IndexOf("\n")!=-1) { str = str.Substring(0,str.IndexOf("\n"))+"<br>"+str.Substring(str.IndexOf("\n")+1); } while(str.IndexOf(" ")!=-... 阅读全文
posted @ 2010-07-05 09:52 荣辱不惊 阅读(239) 评论(0) 推荐(0)
摘要: function DomainURLGet(){var strPURL = window.document.location.href.replace("http://" + window.document.location.host.replace(":80", "") + "/", "");return "http://" + window.document.location.host + "... 阅读全文
posted @ 2010-07-05 09:50 荣辱不惊 阅读(169) 评论(0) 推荐(0)
摘要: function DomainURLGet(){var strPURL = window.document.location.href.replace("http://" + window.document.location.host.replace(":80", "") + "/", "");return "http://" + window.document.location.host + "... 阅读全文
posted @ 2010-07-05 09:44 荣辱不惊 阅读(178) 评论(1) 推荐(0)