可隱藏與不隱藏域名轉(zhuǎn)向代碼(自動(dòng)跳轉(zhuǎn)代碼)
個(gè)人主頁免費(fèi)用戶常常在網(wǎng)上尋找域名轉(zhuǎn)向,但是你有沒有想過打造自己的域名轉(zhuǎn)向,且看我一一道來!
首先,你要去申請(qǐng)一個(gè)免費(fèi)空間,這樣的空間很多,然后把以下的代碼保存為你的主頁文件即可,主頁文件一般為:index.html?、index.htm?、default.html?、default.htm?、index.asp?、index.php?、index.cgi?......?等等(一般你去申請(qǐng)免費(fèi)空間空間時(shí),空間提供商都會(huì)有help進(jìn)行說明)。然后你就可通過這個(gè)空間達(dá)到轉(zhuǎn)向的目的。要注意的是:保存為你的主頁文件之前,要將以下有“將這里改成要轉(zhuǎn)入的網(wǎng)址”的地方改成你自已的轉(zhuǎn)向后的URL?。
------------------------------------------------------------------------------
不隱藏轉(zhuǎn)向之后的地址?代碼一
------------------------------------------------------------------------------
代碼:
loading...?
style="PADDING-RIGHT:?0px;?PADDING-LEFT:?0px;?FONT-WEIGHT:?bolder;?PADDING-BOTTOM:?0px;?COLOR:?#0066ff;?BORDER-TOP-style:?none;?PADDING-TOP:?0px;?FONT-FAMILY:?Arial;?BORDER-RIGHT-style:?none;?BORDER-LEFT-style:?none;?BACKGROUND-COLOR:?white;?BORDER-BOTTOM-style:?none"
size=46?name=chart>?
style="BORDER-RIGHT:?medium?none;?BORDER-TOP:?medium?none;?BORDER-LEFT:?medium?none;?COLOR:?#0066ff;?BORDER-BOTTOM:?medium?none;?TEXT-ALIGN:?center"
size=47?name=percent>
var?bar=0
var?line="||"
var?amount="||"
count()
function?count(){
bar=bar+2
amount?=amount?+?line
document.loading.chart.value=amount
document.loading.percent.value=bar+"%"
if?(bar<99)
{setTimeout("count()",100);}
else
{window.location?=?"將這里改成要轉(zhuǎn)入的網(wǎng)址";}
}
-------------------------------------------------------------------------------
不隱藏轉(zhuǎn)向之后的地址?代碼二
-------------------------------------------------------------------------------
代碼:
function?goToURL()?{?//v2.0
for?(var?i=0;?i<?(goToURL.arguments.length?-?1);?i+=2)?//with?arg?pairs
eval_r(goToURL.arguments+".location="+goToURL.arguments[i+1]+"";
document.returnvalue?=?false;
}
//-->
-------------------------------------------------------------------------------
不隱藏轉(zhuǎn)向之后的地址?代碼三
-------------------------------------------------------------------------------
代碼:
var?ver?=?navigator.appVersion;
if?(ver.indexOf("MSIE"?!=?-1)
{
window.location.href="將這里改成要轉(zhuǎn)入的網(wǎng)址"
}else
window.location.href="將這里改成要轉(zhuǎn)入的網(wǎng)址"
//?End?Code?-->
-------------------------------------------------------------------------------
不隱藏轉(zhuǎn)向之后的地址?代碼四
-------------------------------------------------------------------------------
代碼:
-------------------------------------------------------------------------------
可隱藏轉(zhuǎn)向之后的地址
-------------------------------------------------------------------------------
代碼:
網(wǎng)頁框架代碼和自動(dòng)跳轉(zhuǎn)代碼
網(wǎng)頁框架代碼
特點(diǎn)是無論使用何種分辨率,它的大小和位置都是不變的。
我所收集的:
1.
http://lovelucking.onlybeloved.com"?frameborder="0"?noresize?scrolling="auto">
2.右邊框架
http://lovelucking.onlybeloved.com"?name="mm"?frameborder="0">
http://右邊網(wǎng)址.com"?name="rightFrame"?frameborder="0"?scrolling="NO"?noresize>
3.上下框架
http://上部網(wǎng)址/index.htm"?name="dj-play"?scrolling="no"?noresize?>
http://lovelucking.onlybeloved.com"?name="mainFrame"?scrolling="auto">
4.網(wǎng)頁內(nèi)嵌框架
http://lovelucking.onlybeloved.com"?frameBorder=no?width=400?scrolling=auto?height=300>
~~~~~
也可以自己修在框架大?。?/p>
marginWidth=0?frameSpacing=0?marginHeight=0
src="所要放的網(wǎng)頁的地址"?frameBorder=0?width=400
height=380>
在當(dāng)前網(wǎng)頁中包含另一個(gè)網(wǎng)頁:
9、網(wǎng)頁打開后,隔一定時(shí)間自動(dòng)刷新:
10、網(wǎng)頁打開后,隔一定時(shí)間自動(dòng)跳轉(zhuǎn)到另一頁:
兩個(gè)域名同一個(gè)空間自動(dòng)跳轉(zhuǎn)的ASP代碼
<%if?Request.ServerVariables("SERVER_NAME")="cdpy.com"?then
response.redirect?"default.asp"
else%>
<%end?if%>
<%if?Request.ServerVariables("SERVER_NAME")="www.cdpy.com"?then
response.redirect?"default.asp"
else%>
<%end?if%>
<%if?Request.ServerVariables("SERVER_NAME")="xingqiba.com"?then
response.redirect?"cdhome/default.asp"
else%>
<%end?if%>
<%if?Request.ServerVariables("SERVER_NAME")="www.xingqiba.com"?then
response.redirect?"cdhome/default.asp"
else%>
<%end?if%>
<%if?Request.ServerVariables("SERVER_NAME")="blog.xingqiba.com"?then
response.redirect?"blog/"
else%>
html中跳轉(zhuǎn)最全代碼
正在進(jìn)入
?正在進(jìn)入,請(qǐng)稍等...
var?bar=0
var?line="||"
var?amount="||"
count()
function?count(){
bar=bar+2
amount?=amount?+?line
document.loading.chart.value=amount
document.loading.percent.value=bar+"%"
if?(bar<99)
{setTimeout("count()",100);}
else
{window.location?=?"http://xia.7u7.cn";}
}
?如果您的瀏覽器不支持跳轉(zhuǎn),http://xia.7u7.cn">請(qǐng)點(diǎn)這里.
腳本方式
如:
window.location='index.html';
//-->
html的meta方式
如:
這種方法的好處是可以控制重定向的時(shí)間