比这篇新的文章: Codee#2393
比这篇旧的文章: Codee#2391

Codee#2392

语言: HTML, 标签: 无  2009/06/24发布 8个月前更新
作者: shlice, 点击140次, 评论(0), 收藏者(0), , 打分:

背景
主题: 字体:
HTML语言: Codee#2392
01 <table width=100% cellpadding=0 cellspacing=0 border=0 >
02 <script> 
03 thisURL = document.URL; 
04 thisHREF = document.location.href; 
05 thisSLoc = self.location.href; 
06 thisDLoc = document.location; 
07 strwrite = "<tr><td valign=top>thisURL: </td><td>[" + thisURL + "]</td></tr>" 
08 strwrite += "<tr><td valign=top>thisHREF: </td><td>[" + thisHREF + "]</td></tr>" 
09 strwrite += "<tr><td valign=top>thisSLoc: </td><td>[" + thisSLoc + "]</td></tr>" 
10 strwrite += "<tr><td valign=top>thisDLoc: </td><td>[" + thisDLoc + "]</td></tr>" 
11 document.write( strwrite ); 
12 </script> 
13 thisDLoc = document.location; <BR>
14 thisURL = document.URL; <BR>
15 thisHREF = document.location.href; <BR>
16 thisSLoc = self.location.href;<BR>
17 <script> 
18 thisTLoc = top.location.href; 
19 thisPLoc = parent.document.location; 
20 thisTHost = top.location.hostname; 
21 thisHost = location.hostname; 
22 strwrite = "<tr><td valign=top>thisTLoc: </td><td>[" + thisTLoc + "]</td></tr>" 
23 strwrite += "<tr><td valign=top>thisPLoc: </td><td>[" + thisPLoc + "]</td></tr>" 
24 strwrite += "<tr><td valign=top>thisTHost: </td><td>[" + thisTHost + "]</td></tr>" 
25 strwrite += "<tr><td valign=top>thisHost: </td><td>[" + thisHost + "]</td></tr>" 
26 document.write( strwrite ); 
27 </script> 
28 thisTLoc = top.location.href; <BR>
29 thisPLoc = parent.document.location; <BR>
30 thisTHost = top.location.hostname; <BR>
31 thisHost = location.hostname;<BR>
32 <script> 
33 tmpHPage = thisHREF.split( "/" ); 
34 thisHPage = tmpHPage[ tmpHPage.length-1 ]; 
35 tmpUPage = thisURL.split( "/" ); 
36 thisUPage = tmpUPage[ tmpUPage.length-1 ]; 
37 strwrite = "<tr><td valign=top>thisHPage: </td><td>[" + thisHPage + "]</td></tr>" 
38 strwrite += "<tr><td valign=top>thisUPage: </td><td>[" + thisUPage + "]</td></tr>" 
39 document.write( strwrite ); 
40 </script><tr><td>


所有评论,共0条:( 我也来说两句)


发表评论

注册登录后再发表评论