能力值:
( LV6,RANK:90 )
|
-
-
2 楼
//----------------------------
// 程序名称:article.js
// 版权所有:『战争的艺术』
// 程序制作:车佳
// 最后更新:2004.2.21
//----------------------------
function XML() {
if ( (iFilename != "00000000") && ( iColumnNum != "888" ) ) {
sContent = sContent.replace(/(\[)(IMGURL)(])/gi, "./pics/" + iColumnNum + iFolder + "/")
sContent = sContent.replace(/(\[)(263)(])/gi, "ć")
sContent = sContent.replace(/(\[)(269)(])/gi, "č")
sContent = sContent.replace(/(\[)(352)(])/gi, "Š")
sContent = sContent.replace(/(\[)(353)(])/gi, "š")
sContent = sContent.replace(/(\[)(380)(])/gi, "ż")
sContent = sContent.replace(/(\[)(ae)(])/gi, "ä")
sContent = sContent.replace(/(\[)(oe)(])/gi, "ö")
sContent = sContent.replace(/(\[)(ue)(])/gi, "ü")
sContent = sContent.replace(/(\[)(A:)(])/gi, "Ä")
sContent = sContent.replace(/(\[)(O:)(])/gi, "Ö")
sContent = sContent.replace(/(\[)(U:)(])/gi, "Ü")
sContent = sContent.replace(/(\[)(ss)(])/gi, "ß")
sContent = sContent.replace(/(\[)(ccedil)(])/gi, "ç")
sContent = sContent.replace(/(\[)(atilde)(])/gi, "ã")
sContent = sContent.replace(/(\[)(ordf)(])/gi, "ª")
sContent = sContent.replace(/(\[)(ordm)(])/gi, "º")
sContent = sContent.replace(/(\[)(br)(])(.*)(\[\/br\])/gi, "<br><span style='display: none'><a href='http://www.chinesewwii.net/' target='_blank'>本文属于『战争的艺术』所有</a></span><br>")
sContent = sContent.replace(/(\[)/gi,"<")
sContent = sContent.replace(/(\])/gi,">")
sAuthor = sAuthor.replace(/(\[)(ae)(])/gi, "ä")
sAuthor = sAuthor.replace(/(\[)(oe)(])/gi, "ö")
sAuthor = sAuthor.replace(/(\[)(ue)(])/gi, "ü")
sAuthor = sAuthor.replace(/(\[)(ss)(])/gi, "ß")
sHeadname = sHeadname.replace(/(\[)/gi,"<")
sHeadname = sHeadname.replace(/(\])/gi,">")
sHeadname = sHeadname + "<br>"
subhead.innerHTML = sSubhead
if (sAuthor == "" ) { sHeadname = sHeadname + " <br>" }
headname.innerHTML = sHeadname
content.innerHTML = sContent
sAuthor = sAuthor.replace(/(\[)/gi,"<")
sAuthor = sAuthor.replace(/(\])/gi,">")
if ( sAuthor != "" ) { author.innerHTML = "<br><span class='documentdisplay'>" + sAuthor + "</span> <br>" }
if ( sTimeA != "" && sTimeC == "" ) { sTimeA = "完稿于:<font face='Arial'>" + sTimeA + "</font><br>"; sTime = sTimeA; }
if ( sTimeA != "" && sTimeC != "" ) { sTimeA = "初稿于:<font face='Arial'>" + sTimeA + "</font><br>"; sTime = sTimeA; }
if ( sTimeB != "" ) { sTimeB = "刊载于:<font face='Arial'>" + sTimeB + "</font><br>"; sTime = sTime + sTimeB; }
if ( sTimeC != "" ) { sTimeC = "修改于:<font face='Arial'>" + sTimeC + "</font><br>"; sTime = sTime + sTimeC; }
if ( sTimeD != "" ) { sTimeD = "修改于:<font face='Arial'>" + sTimeD + "</font>"; sTime = sTime + sTimeD; }
if ( sTime != "" ) { time.innerHTML = "<p align='right'><span class='documentdisplay'>" + sTime + "</span></p>" }
if ( sColumn == "99") {column.innerHTML = "<a href='column.htm?s=99' target='_self' title='站点相关的咨询。'>站点相关</a>"}
if ( sColumn == "1") {column.innerHTML = "<a href='column.htm?s=1' target='fy' title='返回『二战风云』主目录'>二战风云</a>"}
if ( sColumn == "2") {column.innerHTML = "<a href='column.htm?s=2' target='wq' title='返回『二战武库』主目录'>二战武库</a>"}
if ( sColumn == "3") {column.innerHTML = "<a href='column.htm?s=3' target='bd' title='返回『二战部队』主目录'>二战部队</a>"}
if ( sColumn == "4") {column.innerHTML = "<a href='column.htm?s=4' target='zzyd' title='返回『作者园地』主目录'>作者园地</a>"}
if ( sColumn == "5") {column.innerHTML = "<a href='column.htm?s=5' target='tuku' title='返回『历史瞬间』主目录'>历史瞬间</a>"}
if ( sColumn == "6") {column.innerHTML = "<a href='column.htm?s=6' target='music' title='返回『二战歌曲』主目录'>二战歌曲</a>"}
if ( sColumn == "7") {column.innerHTML = "<a href='column.htm?s=7' target='game' title='返回『二战游戏』主目录'>二战游戏</a>"}
if ( sType == "1" ) {notice.innerHTML = "<p align='center'><font color='#FF3300'>本文属于『战争的艺术』所有,如欲转载请阅读「<a href='article.htm?s=99&t=3&p=006826#publish' target='aboutsite' title='转载行为发生则本站默认转载者已阅读并遵守此条款。'><font color='#FF3300'>这里</font></a>」<br>任何转载行为发生则本站默认转载者已阅读并遵守此条款</font></p>" }
if ( sType == "6" ) {notice.innerHTML = "<p align='center'><font color='#FF3300'>此书拒绝任何商业性使用,如欲转载请先阅读「<a href='article.htm?s=99&t=3&p=006826#publish' target='aboutsite' title='转载行为发生则本站默认转载者已阅读并遵守此条款。'><font color='#FF3300'>这里</font></a>」<br>转载之行为发生则本站默认转载者已阅读并遵守此条款</font><br> <br><font color='#FF3300'>为尊重作者劳动,对此书感兴趣者可去各书店购买正版<br>这里仅可作为试读使用,请在下载后二十四小时内删除</font></p>" }
if ( sType == "7" ) {notice.innerHTML = "<p align='center'><font color='#FF3300'>本书由『" + sNotice + "』整理,『战争的艺术』第二次校排</font><br><font color='#FF3300'>此书拒绝任何商业性使用,如欲转载请先阅读「<a href='article.htm?s=99&t=3&p=006826#publish' target='aboutsite' title='转载行为发生则本站默认转载者已阅读并遵守此条款。'><font color='#FF3300'>这里</font></a>」<br>转载之行为发生则本站默认转载者已阅读并遵守此条款</font><br> <br><font color='#FF3300'>为尊重作者劳动,对此书感兴趣者可去各书店购买正版<br>这里仅可作为试读使用,请在下载后二十四小时内删除</font></p>" }
if ( sType == "8" ) {notice.innerHTML = "<p align='center'><font color='#FF3300'>本文摘自『" + sNotice + "』,转载请保留</font></p>" }
if ( sNotice == "" )
{
if (sType == "9") {notice.innerHTML = "<p align='center'><font color='#FF0000'>〔请此文作者与我们联系〕</font></p>"}
}
}
if ( iColumnNum == "888" ) {
column.innerHTML = unescape("%u7279%u522B%u529F%u80FD")
subhead.innerHTML = unescape("%u5173%u4E8E%u7A0B%u5E8F")
content.innerHTML = "<span class='normaldisplay'><p align='left'> Version: <font color='blue'>" + ArtProgVer + "</font><br> Update: <font color='blue'>" + ArtProgDate + "</font><br> Include: <font color='blue'>Article.htm & Article.js</font><br> Purpose: <font color='blue'>Database (XML) => Article (HTML)</font><br> App Run: <font color='blue'>Client Server</font><br> Author: <font color='blue'>Greatcar</font></p><p align='center'>Update Log</p><p align='left'><font color='blue'>" + ArtProgLog + "</font></p><p align='center'>" + unescape("%u672C%u7A0B%u5E8F%u7531%20%u8F66%u4F73%20%u5236%u4F5C%uFF0C%u4EC5%u6388%u6743%u7ED9%u300E%u6218%u4E89%u7684%u827A%u672F%u300F%u7F51%u7AD9%u4F7F%u7528%u3002") + "</p></span>"
}
if ( iFilename == "00000000" ) {
column.innerHTML = "错误"
subhead.innerHTML = "出错啦!"
content.innerHTML = "<p align='center'>没有这个分类!</p>"
}
}
var ArtProgLog = ""
var ArtProgVer = "1.0.0.3"
var ArtProgDate = "2004.2.21."
ArtProgLog = ArtProgLog + " 2003.6.30. - HTML & Javascript's main body bulit over.<br>"
ArtProgLog = ArtProgLog + " 2003.6.30. - Database's frame bulit over.<br>"
ArtProgLog = ArtProgLog + " 2003.6.30. - Upload program and first test.<br>"
ArtProgLog = ArtProgLog + " 2003.7. 1. - New Function: add a parameter named 'p' to avoid mapping wrong database.<br>"
ArtProgLog = ArtProgLog + " 2003.7. 2. - New Function: use '[' & ']' auto mapped HTML '<' & '>'.<br>"
ArtProgLog = ArtProgLog + " 2003.7. 2. - Now title & subtitle can use custom format.<br>"
ArtProgLog = ArtProgLog + " 2003.7. 5. - Article can display max 4 of finish & publish times.<br>"
ArtProgLog = ArtProgLog + " 2003.7.19. - New Function: use [ae] [oe] [ue] [A:] [O:] [U:] to show deutsch letter.<br>"
ArtProgLog = ArtProgLog + " 2003.7.20. - New Function: use [IMGURL] auto mapped images' path.<br>"
ArtProgLog = ArtProgLog + " 2003.7.22. - Debug over and version 1.0.0.0 be confirmed.<br>"
ArtProgLog = ArtProgLog + " 2003.7.22. - Bug Fixed: add [ss] to show deutsch letter 'ss'.<br>"
ArtProgLog = ArtProgLog + " 2003.7.26. - Change: now use 'finish writing date' replace of 'first draft date'.<br>"
ArtProgLog = ArtProgLog + " 2003.8.27. - Change: now 50 article use a dir.<br>"
ArtProgLog = ArtProgLog + " 2004.2.21. - New Function: use [383] to show polish letter..<br>"
var valueOf = new formInput()
var pairs = document.location.search.substring(1).split("&")
for (var i=0; i < pairs.length; i++)
{
var values = pairs[i].split("=")
valueOf[values[0]] = unescape(values[1])
}
if ( !valueOf['s'] ) { valueOf['s'] = "0" }
if ( !valueOf['t'] ) { valueOf['t'] = "0" }
if ( !valueOf['p'] ) { valueOf['p'] = "0" }
var iColumnNum = valueOf['s']
var iFileNum = valueOf['t']
var iPassWord = valueOf['p']
if ( iColumnNum.length == 1 ) { iColumnNum = "0" + iColumnNum }
if ( iColumnNum.length == 0 ) { iColumnNum = "00" }
if ( iFileNum.length == 0 ) { iFileNum = "000000" }
if ( iFileNum.length == 1 ) { iFileNum = "00000" + iFileNum }
if ( iFileNum.length == 2 ) { iFileNum = "0000" + iFileNum }
if ( iFileNum.length == 3 ) { iFileNum = "000" + iFileNum }
if ( iFileNum.length == 4 ) { iFileNum = "00" + iFileNum }
if ( iFileNum.length == 5 ) { iFileNum = "0" + iFileNum }
var iFilename = iColumnNum + iFileNum
if ( (iFilename != "00000000") && ( iColumnNum != "888" ) ) {
var sTime =""
var xmlDoc = new ActiveXObject("Microsoft.XMLDOM")
xmlDoc.async="false"
var iFolder = Math.floor(iFileNum / 50) + 1
xmlDoc.load("xml/" + iColumnNum + iFolder + "/" + iFilename + ".xml")
var mName = xmlDoc.selectSingleNode("//data")
var sHeadname = mName.getElementsByTagName("headname").item(0).text
var sType = mName.getElementsByTagName("type").item(0).text
var sColumn = mName.getElementsByTagName("column").item(0).text
var sSubhead = mName.getElementsByTagName("subhead").item(0).text
var sAuthor = mName.getElementsByTagName("author").item(0).text
var sTimeA = mName.getElementsByTagName("time0").item(0).text
var sTimeB = mName.getElementsByTagName("time1").item(0).text
var sTimeC = mName.getElementsByTagName("time2").item(0).text
var sTimeD = mName.getElementsByTagName("time3").item(0).text
var sContent1 = mName.getElementsByTagName("contentA").item(0).text
var sContent2 = unescape(mName.getElementsByTagName("contentB").item(0).text)
var sContent3 = mName.getElementsByTagName("contentC").item(0).text
var sContent = sContent1 + sContent2 + sContent3
var sNotice = mName.getElementsByTagName("notice").item(0).text
var sPassword = mName.getElementsByTagName("password").item(0).text
if ( iPassWord != sPassword ) {sContent = "<font color='red'><center>未被授权的浏览</center></font>"}
}
|
能力值:
( LV6,RANK:90 )
|
-
-
3 楼
//----------------------------
// 程序名称:global.js
// 版权所有:『战争的艺术』
// 程序制作:车佳
// 最后更新:2003.7.21
//----------------------------
function showyear() {
document.write("1998-2005")
}
function showvision() {
document.write("〔第七版〕 改版于:<font face='Arial, Helvetica, sans-serif'>2003.10.</font>")
}
function ShowBanner(Mod) {
BannerName = new Array('banner01.swf')
BannerTitle = new Array('#')
BannerLink = new Array('#')
Bannerindex = Math.floor(Math.random() * BannerName.length)
if (BannerName[Bannerindex].indexOf(".gif") > -1 ) {
if (BannerLink[Bannerindex] != '#') {document.write("<a href='" + BannerLink[Bannerindex] + "' target='_blank'>")}
if (Mod==1) {document.write("<img src='images/" + BannerName[Bannerindex] + "'")}
if (Mod==2) {document.write("<img src='../images/" + BannerName[Bannerindex] + "'")}
if (BannerTitle[Bannerindex] != '#') {document.write(" alt='" + BannerTitle[Bannerindex] + "'")}
document.write(" width='468' height='60' border='0'>")
if (BannerLink[Bannerindex] != '#') {document.write("</a>")}
} else if (BannerName[Bannerindex].indexOf(".swf") > -1 ) {
document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='468' height='60'><param name='movie' ")
if (Mod==1) {document.write("value='images/" + BannerName[Bannerindex] + "'")}
if (Mod==2) {document.write("value='../images/" + BannerName[Bannerindex] + "'")}
document.write("><param name='quality' value='high'><embed ")
if (Mod==1) {document.write("src='images/" + BannerName[Bannerindex] + "'")}
if (Mod==2) {document.write("src='../images/" + BannerName[Bannerindex] + "'")}
document.write(" quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='468' height='60'></embed></object>")
}
}
function openWindow(id)
{
if (id=="1") {here = window.open("column.htm?s=1", "fy")}
if (id=="2") {here = window.open("column.htm?s=9", "fy")}
if (id=="3") {here = window.open("column.htm?s=2", "wq")}
if (id=="4") {here = window.open("column.htm?s=3", "bd")}
if (id=="5") {here = window.open("http://bbs.chinesewwii.net", "bbs")}
if (id=="6") {here = window.open("column.htm?s=5", "tuku")}
if (id=="7") {here = window.open("column.htm?s=4", "zzyd")}
if (id=="8") {here = window.open("column.htm?s=6", "music")}
}
function MiniMenu() {
document.write("<select onChange='openWindow(value)' name='minimenu' style='font-size:9pt;height:18;' size='1'>")
document.write("<option value='0' selected> 切换到... </option>")
document.write("<option value='1'> 二战风云 </option>")
document.write("<option value='2'> 专辑特区 </option>")
document.write("<option value='3'> 二战武库 </option>")
document.write("<option value='4'> 二战部队 </option>")
document.write("<option value='5'> 二战论坛 </option>")
document.write("<option value='6'> 二战图库 </option>")
document.write("<option value='7'> 作者园地 </option>")
document.write("<option value='8'> 二战歌曲 </option>")
document.write("</select>")
}
function formInput() {
// Empty Object
}
var search_htm_url = "search.htm"
window.status="欢迎光临『战争的艺术』!"
|
能力值:
( LV6,RANK:90 )
|
-
-
4 楼
会JS脚本的人都晓得是怎么加密的了。
你在网上搜一下JScript.Encode看是怎么解释的。
<script language="JScript.Encode" src="global.js"></script>
<script language="JScript.Encode" src="article.js"></script>
|
能力值:
( LV6,RANK:90 )
|
-
-
5 楼
楼上的你搞错了``还没有真正搞到文章本身的内容`
|
能力值:
( LV6,RANK:90 )
|
-
-
6 楼
xmlDoc.load("xml/" + iColumnNum + iFolder + "/" + iFilename + ".xml")
content.innerHTML = sContent
<span class="documentdisplay" id="content"><center>正在加载页面……<br><br>您的浏览器必须是 IE 5.0 以上才能正常浏览</center></span>
看来你不懂JS脚本了。脚本里清清楚楚的写着获取文章的方法,你仔细看看吧。
|
能力值:
( LV2,RANK:10 )
|
-
-
7 楼
要这些东西吗?
<P> 东线空战的一个主要特点是局限于战术层次,战略层次上的空中战争从未发生过。在德国进入战争时,由于其本身资源的贫乏,希特勒不得不试图打一场短期的战争,迅速夺取敌方的资源。这使得德国空军的建设着重于一个战术空军,而牺牲了战略空军的建设,当
德国速战速决的企图失败后,其缺少可以打击敌人后方的战略空军的弱点便会显露出来,并成为德国失败的一个原因。</P>
<P> 在另一方面,苏联在战前曾试图建立一支战略空军,在三十年代,苏联研制成功了世界上第一架四引擎轰炸机TB-3。但进入四十年代后,苏联远程轰炸机的发展开始落后于世界水平,在战争开始后,由于和德国后方距离太远,和前线对资源的迫切需要,使苏联也被迫放弃了对德国城市的战略轰炸。</P>
|
能力值:
( LV6,RANK:90 )
|
-
-
8 楼
找到了,谢谢!原来我疏忽`
原文地址在这里:
http://www.chinesewwii.net/xml/014/01000152.xml
|