28/01/2014 MCAFEE SECURE 認證的網站

https://www.mcafeesecure.com/RatingVerify?ref=www.HongKongCupid.com

2013年5月17日 星期五

**18/5update~ 源碼分享..**網頁及程式源碼..&..301重定向在HTML/PHP/ASP文件中跳轉 .&.. 301跳轉(重定向)全站或指定頁面***~~

      
**18/5update~ 源碼分享..**網頁及程式源碼..&..
301重定向在HTML/PHP/ASP文件中
跳轉 .&..  301跳轉(重定向)全站或指定頁面***~~
網頁及程式源碼分享平台^*great```~~
  
  

  (( 1. ))**  highslide自動彈出提示窗口一天只顯示一次****

HighSlide組件可以很方便地做出以前做不了的網頁特效,
這次找來了比較實用的效果,
如果你的網站有更新的提示或公告信息,又或者想給用戶
看到一則歡迎信息的話,
在24小時或一天或更長的時間只顯示一次的,只要使用HighSlide組件+Cookies的記錄
就能夠很方便地做到理想的highslide auto open (popup)
 效果了。
代碼如下︰

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0

 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<link rel="stylesheet" href="http://demo.joomlart.com/extensions15/plugins/content

/highslide/highslide-styles.css"
 type="text/css" />
<script type='text/javascript'


src='http://demo.joomlart.com/extensions15/plugins/content
/highslide/highslide-
full.packed.js'></script>
<script type='text/javascript'


src='http://demo.joomlart.com/extensions15/plugins/content
/highslide/swfobject.js'></script>
<script type='text/javascript'

src='http://demo.joomlart.com/extensions15/plugins/content
/highslide/do_cookie.js'></script>
<script type='text/javascript'>


hs.graphicsDir = 'http://demo.joomlart.com/extensions15/plugins/content
/highslide/graphics/';
hs.showCredits = true;


hs.outlineType = 'rounded-white';
hs.loadingText = 'Loading...';
</script>
</head>
<body>
<div id="contenthere2" style="display:none;"><img src="" border="0" style="float:left; padding-right:10px" /><br>

歡迎你蒞臨本網站!<br>We welcome you to visit our website!

</div><a href="#anco" id="href_831926588" onclick="if(!hs.htmlExpand(this, { contentId: 'highslide-html-href_831926588',outlinetype:'rounded-white',width:400,height:320,captiontext:'This is demo content'})) display_none
('li_href_831926588'); return false;">
<!--<h2>Click me to display content 按次再次顯示</h2>-->
</a>
<div class="highslide-html-content" id='highslide-html-href_831926588'>
<div class="highslide-header" >
<ul >
<li class="highslide-move">
<a href="#" onclick="return false">移動</a>
</li>
</ul>
</div>
<div class="highslide-body" id="914032159">
<script type='text/javascript'>
if(document.getElementById('contenthere2')!=null){
hs.outlineWhileAnimating = true;
document.getElementById('914032159').innerHTML = document.getElementById('contenthere2').innerHTML;
document.getElementById('contenthere2').innerHTML ='';
}
</script>
</div>
<hr/>
<div class="highslide-footer" style="margin-top:-10px; height:23px;">
<div>
<span class="" title="Resize" >
<span>
<ul id="ul_footer">
<li class="highslide-close" style="top:3px; float:right" >
<a href="#" onclick="check_close('href_831926588',7, '40c092e58beeb79ddfa5919bb2345b4a');return hs.close(this)">

關閉</a>
</li>
</ul>
</span>
</span>
</div>
</div>
</div>
<script type='text/javascript'>
function load_html_cookie(){
window.load = hs.htmlExpand(document.getElementById('href_831926588'), {contentId: 'highslide-html-href_831926588',outlinetype:'rounded-white',width:400,height:320,captiontext:'This is demo content'});
if(1>0){
Set_Cookie( '40c092e58beeb79ddfa5919bb2345b4a',

   true, 1, '/', '', '' );
}
}
if(!Get_Cookie('40c092e58beeb79ddfa5919bb2345b4a')){
setTimeout(load_html_cookie, 5000);
}
</script>
</body>
</html>

範例文件下載︰ 按我一下!
HighSlide組件下載www.highslide.com 
演示圖片︰
結語︰
5000 時間(秒)
width:400
height:320
或者如果你懂得html+CSS,可以輕易地把彈出的框架
修改美化的。

  highslide自動點擊並跳出框架>>


highslide組件,每次打開圖片都需要按一下滑鼠很麻煩,
或者想使用iframe調用網頁自動打開框架。
如果想開啟主網頁的時候,連結(鏈接)自動彈出圖片
或網頁框架,可以使用以下的方法。
在header文件加入︰
<script type="text/javascript">
$(document).ready(function() {
$('#autoClick').click();
});
</script>

自動加載方法︰
A標籤
<a href="index.htm" id="autoClick" title="Tiktok-音悅台" onclick="…">..</a>
div標籤
<div id="autoClick" onclick="…">..</div>
****************************************************************

( 2. )   複製文章內容(連結)按鈕-IE﹑Firefox﹑Chrome﹑Safari﹑Opera  **~

     
由於現時!大部份的"複製“按鈕只支持IE瀏覽器,使其他的瀏覽器無法複製文章內容,
例如現時流行的Firefox﹑Chrome﹑Safari﹑Opera瀏覽器,如果想修正此問題,
我們可以利用zeroclipboard實現複製連結﹑內容﹑链接等支持多瀏覽器….

首先請到    **  http://code.google.com/p/zeroclipboard/downloads/list))下載zeroclipboard文件包!
解壓縮後其他的文件及檔案不需要,只需拿取這2份檔案︰"ZeroClipboard.js" & “ZeroClipboard.swf" 即可!
並將這兩份檔案文件使用FTP軟體,上傳到網站的"根目錄"或"程序目錄"中….
複製代碼範例︰
<html>
<head>
<style type="text/css">
#d_clip_button {
text-align:center;
border:1px solid black;
background-color:#ccc;
margin:10px; padding:10px;
}
#d_clip_button.hover { background-color:#eee; }
#d_clip_button.active { background-color:#aaa; }
</style>
</head>
<body>
<script type="text/javascript" src="ZeroClipboard.js"></script>
Copy to Clipboard: <input type="text" id="clip_text" size="40" value="Copy me!"/><br/><br/>
<div id="d_clip_button">Copy To Clipboard</div>
<script language="JavaScript">
var clip = new ZeroClipboard.Client();
clip.setText( '' ); // will be set later on mouseDown
clip.setHandCursor( true );
clip.setCSSEffects( true );
clip.addEventListener( 'load', function(client) {
// alert( "movie is loaded" );
} );
clip.addEventListener( 'complete', function(client, text) {
alert("Copied text to clipboard: " + text );
} );
clip.addEventListener( 'mouseOver', function(client) {
// alert("mouse over");
} );
clip.addEventListener( 'mouseOut', function(client) {
// alert("mouse out");
} );
clip.addEventListener( 'mouseDown', function(client) {
// set text to copy here
clip.setText( document.getElementById('clip_text').value );
// alert("mouse down");
} );
clip.addEventListener( 'mouseUp', function(client) {
// alert("mouse up");
} );
clip.glue( 'd_clip_button' );
</script>
</body>
</html>
如果ZeroClipboard.swf檔案文件與ZeroClipboard.js分開不同的目錄存放或不同的路徑,請修改js代碼。
找: clip.glue( ‘d_clip_button’ );
在之上加入︰ZeroClipboard.setMoviePath( ‘/flash/ZeroClipboard.swf’ );
 
繁簡轉換/簡繁轉換
Ctrl+A or Ctrl+V 總共有:0


  • 繁簡轉換說明:簡體中文轉繁體中文轉簡體中文進行互相翻 譯。
  • 轉換編碼說明:文字&Code轉換為內碼;同時可以使用"編碼翻譯"自由轉換!!

  • &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&


                 ( 3. )    網址導航CSS下拉多列選單                    
    今天看見163的下拉選單能夠多列排序,與傳統的下拉式選單非常之不同,
    而且只使用了CSS+DIV簡結代碼做出來非常實用,如果有需要的你不要錯過…!

    演示效果︰
    CSS 碼︰
    .layout {width:960px;margin:0 auto;position:relative}
    .nav {background:#b91313;height:40px;clear:both;position:relative;z-index:100}
    .nav li {float:left;padding-top:12px;height:28px;position:relative}
    .nav .layout li a {font-size:14px;height:16px;line-height:16px;padding:0 29px 0 30px;color:#fff;border-right:1px #cd5a5a solid;}
    .nav .layout li a:hover {color:#fff;}
    .nav .layout #active {background:#970000}
    .nav .layout #active a {color:#fff;font-size:bold;border:none;zoom:1;}
    .nav .layout li.current a {background:#fff;font-weight:bold;color:#000;padding:10px 27px 11px 28px;padding:10px 27px 13px 28px\9;margin-top:-11px;zoom:1}
    .nav .layout li.current a:hover {background:#fff;color:#000;text-decoration:none;}
    .nav .layout li.other a:hover {padding:10px 27px 8px 28px;padding:10px 27px 10px 28px\9;_padding:10px 27px 12px 28px\9;}
    .nav .layout #active a:hover {background:#970000;font-weight:500;padding:10px 29px 10px 30px;padding:10px 29px 10px 30px\9;margin:0;margin-top:-10px\9;}
    .nav .layout li .snav {position:absolute;background:#fff;border:#b91313 2px solid;width:500px;border-top:none 0;top:40px;left:-2px;padding:10px 0px;display:none;overflow:hidden;}
    .nav .layout li.current .snav {display:block}
    .nav .layout li .snav dl {padding:0px 0 10px;}
    .nav .layout li .snav dt {font-weight:bold;padding:5px 0;}
    .nav .layout li .snav p {border-bottom:#bebebe 1px dotted;line-height:20px;padding:5px 0 5px 80px;position:relative;overflow:hidden;zoom:1;}
    .nav .layout li .snav p:hover {background:#f2f2f2}
    .nav .layout li .snav strong {display:inline-block;width:80px;padding-left:10px;height:20px;line-height:20px;position:absolute;margin-left:-70px;}
    .nav .layout li .snav p a {font-size:12px;font-weight:500;line-height:20px;height:20px;color:#686868;text-align:left;padding:0;margin:0;border:0 none;display:inline-block;width:82px;background:none;overflow:hidden;}
    .nav .layout li.current .snav a:hover {text-decoration:underline;background:none;color:#aa2e44}
    .nav .layout li .tuan p a {width:60px;}
    .nav .layout li .snav p.hot a {width:auto;margin-right:10px;}

    HTML 碼︰
    <div class="nav">
    <!-- 主導航開始 -->
    <div class="layout">
    <ul>
    <li id="active" ><a href="/">首頁</a></li>
    <li onmousemove='this.className="current"' onmouseout='this.className=""'>
    <a href="http://caipiao.163.com" target="_blank">網易彩票</a>
    <div class="snav">
    <p class="hot"><strong>最新</strong><a href="http://notice.caipiao.163.com/11/0810/10/7B3E7QBU00754ITT.html" target="_blank">注冊未滿一個月即中大獎</a><a href="http://caipiao.163.com/order/preBet_kl8.html" target="_blank">快樂8</a></p>
    <p><strong>福彩</strong><a href="http://caipiao.163.com/order/preBet_ssq.html" target="_blank">雙色球</a><a href="http://caipiao.163.com/order/preBet_x3d.html" target="_blank">3D</a><a href="http://caipiao.163.com/order/preBet_qlc.html" target="_blank">七樂彩</a></p>
    <p><strong>體彩</strong><a href="http://caipiao.163.com/order/preBet_pl3.html" target="_blank">排列三</a><a href="http://caipiao.163.com/order/preBet_pl5.html" target="_blank">排列五</a><a href="http://caipiao.163.com/order/preBet_qxc.html" target="_blank">七星彩</a><a href="http://caipiao.163.com/order/preBet_dlt.html" target="_blank">超級大樂透</a></p>
    <p><strong>高頻彩</strong><a href="http://caipiao.163.com/order/preBet_jxssc.html" target="_blank">江西時時彩</a><a href="http://caipiao.163.com/order/preBet_ssc.html" target="_blank">重慶時時彩</a><a href="http://caipiao.163.com/order/preBet_d11.html" target="_blank">十一運奪金</a><a href="http://caipiao.163.com/order/preBet_kl8.html" target="_blank">快樂8</a></p>
    <p><strong>足彩</strong><a href="http://caipiao.163.com/order/preBet_sfc.html" target="_blank">勝負彩</a><a href="http://caipiao.163.com/order/preBet_rx9.html" target="_blank">任選九</a><a href="http://caipiao.163.com/order/preBet_dcspf.html" target="_blank">單場勝平負</a></p>
    <p><strong>大獎</strong><a href="http://caipiao.163.com/order/preBet_ssq.html" target="_blank">雙色球</a><a href="http://caipiao.163.com/order/preBet_dlt.html" target="_blank">超級大樂透</a><a href="http://caipiao.163.com/order/preBet_sfc.html" target="_blank">勝負彩</a><a href="http://caipiao.163.com/order/preBet_qxc.html" target="_blank">七星彩</a><a href="http://caipiao.163.com/order/preBet_qlc.html" target="_blank">七樂彩</a></p>
    <p><strong>返獎率</strong><a href="http://caipiao.163.com/order/preBet_dcspf.html" target="_blank">單場勝平負</a><a href="http://caipiao.163.com/order/preBet_sfc.html" target="_blank">勝負彩</a><a href="http://caipiao.163.com/order/preBet_rx9.html" target="_blank">任選九</a><a href="http://caipiao.163.com/order/preBet_d11.html" target="_blank">十一運奪金</a><a href="http://caipiao.163.com/order/preBet_ssc.html" target="_blank">重慶時時彩</a></p>
    <p class="bd_none hot"><strong>熱門</strong><a href="http://caipiao.163.com/mobile/main.jsp" target="_blank">手機彩票,積分翻倍</a><a href="http://zx.caipiao.163.com/" target="_blank">彩票資訊</a></p>
    </div>
    </li>
    <li onmousemove='this.className="current other"' onmouseout='this.className=""'><a href="/game/queryGame.html">遊戲直充</a></li>
    <li onmousemove='this.className="current other"' onmouseout='this.className=""'><a href="/mobile/fill.html">話費充值</a></li>
    <li onmousemove='this.className="current"' onmouseout='this.className=""'>
    <a href="http://baoxian.163.com" target="_blank">網易保險</a>
    <div class="snav">
    <p class="hot"><strong>最新</strong><a href="http://baoxian.163.com/?from=mallz1" target="_blank">網易車險業務上線啦!</a></p>
    <p><strong>車險</strong><a href="http://baoxian.163.com/car/pingan.html?from=mallc1" target="_blank">平安車險</a><a href="http://bx.163.com/car/yangguang.html?from=mallc2" target="_blank">陽光車險</a><a href="http://bx.163.com/car/taipingyang.html?from=mallc3" target="_blank">太平洋車險</a></p>
    <p class="bd_none hot"><strong>熱門</strong><a href="http://baoxian.163.com/?from=mallh1" target="_blank">品牌直銷多省15%</a><a href="http://baoxian.163.com/?from=mallh2" target="_blank">買就送免費救援</a></p>
    </div>
    </li>
    <li onmousemove='this.className="current"' onmouseout='this.className=""'>
    <a href="http://tuan.163.com" target="_blank">網易團長</a>
    <div class="snav tuan" style="left:auto;right:-2px">
    <p><strong>美食</strong><a href="http://tuan.163.com/tuan/details.do?tag=%E7%BE%8E%E9%A3%9F&subTag=%E4%B8%AD%E9%A4%90" target="_blank">中餐</a><a href="http://tuan.163.com/tuan/details.do?tag=%E7%BE%8E%E9%A3%9F&subTag=%E8%87%AA%E5%8A%A9" target="_blank">自助</a><a href="http://tuan.163.com/tuan/details.do?tag=%E7%BE%8E%E9%A3%9F&subTag=%E7%81%AB%E9%94%85" target="_blank">火鍋</a><a href="http://tuan.163.com/tuan/details.do?tag=%E7%BE%8E%E9%A3%9F&subTag=%E7%83%A7%E7%83%A4" target="_blank">燒烤</a><a href="http://tuan.163.com/tuan/details.do?tag=%E7%BE%8E%E9%A3%9F&subTag=%E6%B5%B7%E9%B2%9C" target="_blank">海鮮</a><a href="http://tuan.163.com/tuan/details.do?tag=%E7%BE%8E%E9%A3%9F&subTag=%E8%A5%BF%E9%A4%90" target="_blank">西餐</a><a href="http://tuan.163.com/tuan/details.do?tag=%E7%BE%8E%E9%A3%9F&subTag=%E6%97%A5%E9%9F%A9%E6%96%99%E7%90%86" target="_blank">日韓料理</a><a href="http://tuan.163.com/tuan/details.do?tag=%E7%BE%8E%E9%A3%9F&subTag=%E5%BF%AB%E9%A4%90" target="_blank">快餐</a><a href="http://tuan.163.com/tuan/details.do?tag=%E7%BE%8E%E9%A3%9F&subTag=%E7%94%9C%E5%93%81" target="_blank">甜品</a></p>
    <p><strong>娛樂</strong><a href="http://tuan.163.com/tuan/details.do?tag=%E5%A8%B1%E4%B9%90&subTag=%E7%94%B5%E5%BD%B1" target="_blank">電影</a><a href="http://tuan.163.com/tuan/details.do?tag=%E5%A8%B1%E4%B9%90&subTag=KTV" target="_blank">KTV</a><a href="http://tuan.163.com/tuan/details.do?tag=%E5%A8%B1%E4%B9%90&subTag=%E6%97%85%E6%B8%B8" target="_blank">旅遊</a><a href="http://tuan.163.com/tuan/details.do?tag=%E5%A8%B1%E4%B9%90&subTag=%E9%83%8A%E6%B8%B8" target="_blank">郊遊</a><a href="http://tuan.163.com/tuan/details.do?tag=%E5%A8%B1%E4%B9%90&subTag=%E9%85%92%E5%90%A7" target="_blank">酒吧</a><a href="http://tuan.163.com/tuan/details.do?tag=%E5%A8%B1%E4%B9%90&subTag=%E8%AF%9D%E5%89%A7" target="_blank">話劇</a><a href="http://tuan.163.com/tuan/details.do?tag=%E5%A8%B1%E4%B9%90&subTag=%E6%BC%94%E5%87%BA" target="_blank">演出</a><a href="http://tuan.163.com/tuan/details.do?tag=%E5%A8%B1%E4%B9%90&subTag=%E8%BF%90%E5%8A%A8%E5%81%A5%E8%BA%AB" target="_blank">運動健身</a><a href="http://tuan.163.com/tuan/details.do?tag=%E5%A8%B1%E4%B9%90&subTag=%E6%B5%B7%E5%BA%95%E4%B8%96%E7%95%8C" target="_blank">海底世界</a><a href="http://tuan.163.com/tuan/details.do?tag=%E5%A8%B1%E4%B9%90&subTag=%E7%9B%B8%E5%A3%B0" target="_blank">相聲</a><a href="http://tuan.163.com/tuan/details.do?tag=%E5%A8%B1%E4%B9%90&subTag=%E7%91%9C%E4%BC%BD" target="_blank">瑜伽</a><a href="http://tuan.163.com/tuan/details.do?tag=%E5%A8%B1%E4%B9%90&subTag=%E6%B8%A9%E6%B3%89" target="_blank">溫泉</a><a href="http://tuan.163.com/tuan/details.do?tag=%E5%A8%B1%E4%B9%90&subTag=%E8%B6%B3%E7%96%97" target="_blank">足療</a><a href="http://tuan.163.com/tuan/details.do?tag=%E5%A8%B1%E4%B9%90&subTag=%E5%8F%B0%E7%90%83" target="_blank">台球</a><a href="http://tuan.163.com/tuan/details.do?tag=%E5%A8%B1%E4%B9%90&subTag=%E7%94%B5%E7%8E%A9" target="_blank">電玩</a><a href="http://tuan.163.com/tuan/details.do?tag=%E5%A8%B1%E4%B9%90&subTag=%E9%99%B6%E8%89%BA" target="_blank">陶藝</a><a href="http://tuan.163.com/tuan/details.do?tag=%E5%A8%B1%E4%B9%90&subTag=%E5%8A%A8%E7%89%A9%E5%9B%AD" target="_blank">動物園</a><a href="http://tuan.163.com/tuan/details.do?tag=%E5%A8%B1%E4%B9%90&subTag=%E6%B8%B8%E4%B9%90%E5%9B%AD" target="_blank">遊樂園</a><a href="http://tuan.163.com/tuan/details.do?tag=%E5%A8%B1%E4%B9%90&subTag=%E5%AC%89%E6%B0%B4" target="_blank">嬉水</a></p>
    <p><strong>生活</strong><a href="http://tuan.163.com/tuan/details.do?tag=%E7%94%9F%E6%B4%BB&subTag=%E7%BE%8E%E5%AE%B9" target="_blank">美容</a><a href="http://tuan.163.com/tuan/details.do?tag=%E7%94%9F%E6%B4%BB&subTag=%E7%BE%8E%E5%8F%91" target="_blank">美發</a><a href="http://tuan.163.com/tuan/details.do?tag=%E7%94%9F%E6%B4%BB&subTag=%E7%98%A6%E8%BA%AB" target="_blank">瘦身</a><a href="http://tuan.163.com/tuan/details.do?tag=%E7%94%9F%E6%B4%BB&subTag=%E5%A9%9A%E7%BA%B1" target="_blank">婚紗</a><a href="http://tuan.163.com/tuan/details.do?tag=%E7%94%9F%E6%B4%BB&subTag=%E5%86%99%E7%9C%9F" target="_blank">寫真</a><a href="http://tuan.163.com/tuan/details.do?tag=%E7%94%9F%E6%B4%BB&subTag=%E9%85%92%E5%BA%97" target="_blank">酒店</a><a href="http://tuan.163.com/tuan/details.do?tag=%E7%94%9F%E6%B4%BB&subTag=%E7%BE%8E%E7%94%B2" target="_blank">美甲</a><a href="http://tuan.163.com/tuan/details.do?tag=%E7%94%9F%E6%B4%BB&subTag=%E4%BD%93%E6%A3%80" target="_blank">體檢</a><a href="http://tuan.163.com/tuan/details.do?tag=%E7%94%9F%E6%B4%BB&subTag=%E7%89%99%E7%A7%91" target="_blank">牙科</a><a href="http://tuan.163.com/tuan/details.do?tag=%E7%94%9F%E6%B4%BB&subTag=%E6%95%99%E8%82%B2%E5%9F%B9%E8%AE%AD" target="_blank">教育培訓</a><a href="http://tuan.163.com/tuan/details.do?tag=%E7%94%9F%E6%B4%BB&subTag=%E6%B1%BD%E8%BD%A6%E6%9C%8D%E5%8A%A1" target="_blank">汽車服務</a><a href="http://tuan.163.com/tuan/details.do?tag=%E7%94%9F%E6%B4%BB&subTag=%E5%AE%A0%E7%89%A9%E6%8A%A4%E7%90%86" target="_blank">寵物護理</a></p>
    <p><strong>網購</strong><a href="http://tuan.163.com/tuan/details.do?tag=%E7%BD%91%E8%B4%AD&subTag=%E9%A3%9F%E5%93%81%E8%8C%B6%E9%85%92" target="_blank">食品茶酒</a><a href="http://tuan.163.com/tuan/details.do?tag=%E7%BD%91%E8%B4%AD&subTag=%E5%8C%96%E5%A6%86%E5%93%81" target="_blank">化妝品</a><a href="http://tuan.163.com/tuan/details.do?tag=%E7%BD%91%E8%B4%AD&subTag=%E6%9C%8D%E8%A3%85%E9%9E%8B%E5%B8%BD" target="_blank">服裝鞋帽</a><a href="http://tuan.163.com/tuan/details.do?tag=%E7%BD%91%E8%B4%AD&subTag=%E7%AE%B1%E5%8C%85" target="_blank">箱包</a><a href=" http://tuan.163.com/tuan/details.do?tag=%E7%BD%91%E8%B4%AD&subTag=%E9%A5%B0%E5%93%81" target="_blank">飾品</a><a href="http://tuan.163.com/tuan/details.do?tag=%E7%BD%91%E8%B4%AD&subTag=%E6%95%B0%E7%A0%81" target="_blank">數碼</a><a href="http://tuan.163.com/tuan/details.do?tag=%E7%BD%91%E8%B4%AD&subTag=%E6%AF%8D%E5%A9%B4%E5%84%BF%E7%AB%A5" target="_blank">母嬰兒童</a><a href="http://tuan.163.com/tuan/details.do?tag=%E7%BD%91%E8%B4%AD&subTag=%E5%AE%B6%E7%94%B5" target="_blank">家電</a><a href="http://tuan.163.com/tuan/details.do?tag=%E7%BD%91%E8%B4%AD&subTag=%E5%9B%BE%E4%B9%A6%E9%9F%B3%E5%83%8F" target="_blank">圖書音像</a><a href="http://tuan.163.com/tuan/details.do?tag=%E7%BD%91%E8%B4%AD&subTag=%E5%88%B8%E7%B1%BB" target="_blank">券類</a></p>
    </div>
    </li>
    <li onmousemove='this.className="current"' onmouseout='this.className=""'>
    <a href="http://yxp.163.com" class="bd_none" target="_blank">網易印像派</a>
    <div class="snav" style="left:auto;right:-2px">
    <p class="hot"><strong>最新</strong><a href="http://yxp.163.com/store/photobook/ep.html?sss=fromshop163dh#s=5" target="_blank">輕照片書</a><a href="http://yxp.163.com/store/homephoto/ep.html?sss=fromshop163dh #s=2" target="_blank">無框畫</a><a href="http://yxp.163.com/designer/store/?pt=10920&cp=250" target="_blank">玩味T恤</a><a href="http://yxp.163.com/designer/?sss=fromshop163dh" target="_blank">設計師潮品</a></p>
    <p><strong>精品推薦</strong><a href="http://yxp.163.com/photo/ep.html?sss=fromshop163dh" target="_blank">照片沖印</a><a href="http://yxp.163.com/store/calendar/ep.html?sss=fromshop163dh" target="_blank">2012照片台曆</a><a href="http://yxp.163.com/store/photobook/ep.html?sss=fromshop163dh#s=0" target="_blank">照片書定制</a><a href="http://yxp.163.com/store/silver/ep.html?sss=fromshop163dh#s=1" target="_blank">純銀項鏈</a></p>
    <p><strong>影集定制</strong><a href="http://yxp.163.com/store/pvcphotobook/ep.html?sss=fromshop163dh#s=0" target="_blank">精裝照片書</a><a href="http://yxp.163.com/store/photobook/ep.html?sss=fromshop163dh#s=0" target="_blank">簡裝照片書</a><a href="http://yxp.163.com/store/album/ep.html?sss=fromshop163dh#s=0&m=0" target="_blank">精品畫冊</a><a href="http://yxp.163.com/store/dalbum/ep.html?sss=fromshop163dh" target="_blank">桌面相冊</a></p>
    <p><strong>純銀飾品</strong><a href="http://yxp.163.com/store/silver/ep.html?sss=fromshop163dh#s=1" target="_blank">時尚項鏈</a><a href="http://yxp.163.com/store/silver/ep.html?sss=fromshop163dh#s=2" target="_blank">精品戒指</a><a href="http://yxp.163.com/store/silver/ep.html?sss=fromshop163dh#s=3" target="_blank">手?手鏈</a><a href="http://yxp.163.com/store/silver/ep.html?sss=fromshop163dh#s=4" target="_blank">流行腳鏈</a></p>
    <p><strong>家裝畫飾</strong><a href="http://yxp.163.com/store/homephoto/ep.html?sss=fromshop163dh#s=2" target="_blank">無框畫</a><a href="http://yxp.163.com/store/homephoto/ep.html?sss=fromshop163dh#s=1" target="_blank">木版畫</a><a href="http://yxp.163.com/store/homephoto/ep.html?sss=fromshop163dh#s=3" target="_blank">實木照片牆</a></p>
    <p><strong>生活家居</strong><a href="http://yxp.163.com/store/pillow/ep.html?sss=fromshop163dh#s=0" target="_blank">時尚抱枕</a><a href="http://yxp.163.com/store/ep.html?sss=fromshop163dh#m=10&s=1" target="_blank">馬克杯</a><a href="http://yxp.163.com/store/ep.html?sss=fromshop163dh#m=10&s=2" target="_blank">魔術杯</a> <a href="http://yxp.163.com/store/ep.html?sss=fromshop163dh#m=10&s=3" target="_blank">骨瓷杯</a><a href="http://yxp.163.com/store/ep.html?sss=fromshop163dh#m=10&s=4" target="_blank">情侶杯</a></p>
    <p><strong>台曆挂曆</strong><a href="http://yxp.163.com/store/calendar/ep.html?sss=fromshop163dh#s=1" target="_blank">小巧台曆</a><a href="http://yxp.163.com/store/calendar/ep.html?sss=fromshop163dh#s=2" target="_blank">8寸橫款台曆</a><a href="http://yxp.163.com/store/calendar/ep.html?sss=fromshop163dh#s=3" target="_blank">8寸豎款台曆</a><a href="http://yxp.163.com/store/wallcal/ep.html?sss=fromshop163dh#s=0" target="_blank">新年挂曆</a><a href="http://yxp.163.com/store/spcal/ep.html?sss=fromshop163dh" target="_blank">海報年曆</a></p>
    <p><strong>創意玩意</strong><a href="http://yxp.163.com/store/lomocard/ep.html?sss=fromshop163dh" target="_blank">LOMO卡片</a><a href="http://yxp.163.com/store/ep.html#m=9" target="_blank">鼠標墊</a><a href="http://yxp.163.com/store/ep.html?sss=fromshop163dh#m=6" target="_blank">筆記本</a><a href="http://yxp.163.com/store/ep.html#m=5" target="_blank">貼貼紙</a><a href="http://yxp.163.com/store/gcard/ep.html" target="_blank">賀卡</a></p>
    <p class="bd_none hot"><strong>熱門</strong><a href="http://yxp.163.com/action/ep.html?sss=fromshop163dh" target="_blank">促銷信息</a><a href="http://yxp.163.com/vpshop/?sss=fromshop163dh" target="_blank">積分兌獎</a><a href="http://yxp.163.com/theme/ep.html?sss=fromshop163dh" target="_blank">給力主題</a></p>
    </div>
    </li>
    </ul>
    </div>
    <!--主導航結束-->
    </div>
    默認選單的顏色是"紅色“,請自行修改顏色碼"#b91313"
    #000000#2F0000#600030#460046#28004D
    #272727#4D0000#820041#5E005E#3A006F
    #3C3C3C#600000#9F0050#750075#4B0091
    #4F4F4F#750000#BF0060#930093#5B00AE
    #5B5B5B#930000#D9006C#AE00AE#6F00D2
    #6C6C6C#AE0000#F00078#D200D2#8600FF
    #7B7B7B#CE0000#FF0080#E800E8#921AFF
    #8E8E8E#EA0000#FF359A#FF00FF#9F35FF
    #9D9D9D#FF0000#FF60AF#FF44FF
    #B15BFF
    #ADADAD#FF2D2D#FF79BC#FF77FF
    #BE77FF
    #BEBEBE#FF5151#FF95CA#FF8EFF#CA8EFF
    #d0d0d0#ff7575#ffaad5#ffa6ff#d3a4ff
    #E0E0E0#FF9797#FFC1E0#FFBFFF#DCB5FF
    #F0F0F0#FFB5B5#FFD9EC#FFD0FF#E6CAFF
    #FCFCFC#FFD2D2#FFECF5#FFE6FF
    #F1E1FF
    #FFFFFF#FFECEC#FFF7FB#FFF7FF#FAF4FF
    #000079#000079#003E3E#006030#006000
    #000093#003D79#005757#01814A#007500
    #0000C6#004B97#007979#019858#009100
    #0000C6#005AB5#009393#01B468#00A600
    #0000E3#0066CC#00AEAE#02C874#00BB00
    #2828FF#0072E3#00CACA#02DF82#00DB00
    #4A4AFF#0080FF#00E3E3#02F78E#00EC00
    #6A6AFF#2894FF#00FFFF#1AFD9C#28FF28
    #7D7DFF#46A3FF#4DFFFF#4EFEB3#53FF53
    #9393FF#66B3FF#80FFFF#7AFEC6#79FF79
    #AAAAFF#84C1FF#A6FFFF#96FED1
    #93FF93
    #B9B9FF#97CBFF#BBFFFF#ADFEDC
    #A6FFA6
    #CECEFF#ACD6FF#CAFFFF#C1FFE4#BBFFBB
    #DDDDFF#C4E1FF#D9FFFF#D7FFEE#CEFFCE
    #ECECFF#D2E9FF#ECFFFF#E8FFF5#DFFFDF
    #FBFBFF#ECF5FF#FDFFFF#FBFFFD#F0FFF0
    #467500#424200#5B4B00#844200#642100
    #548C00#5B5B00#796400#9F5000#842B00
    #64A600#737300#977C00#BB5E00#A23400
    #73BF00#8C8C00#AE8F00#D26900
    #BB3D00
    #82D900#A6A600#C6A300#EA7500#D94600
    #8CEA00#C4C400#D9B300#FF8000#F75000
    #9AFF02#E1E100#EAC100#FF9224#FF5809
    #A8FF24#F9F900#FFD306#FFA042#FF8040
    #B7FF4A#FFFF37#FFDC35#FFAF60#FF8F59
    #C2FF68#FFFF6F#FFE153#FFBB77#FF9D6F
    #CCFF80#FFFF93#FFE66F#FFC78E#FFAD86
    #D3FF93#FFFFAA#FFED97#FFD1A4#FFBD9D
    #DEFFAC#FFFFB9#FFF0AC#FFDCB9#FFCBB3
    #E8FFC4#FFFFCE#FFF4C1#FFE4CA#FFDAC8
    #EFFFD7#FFFFDF#FFF8D7#FFEEDD#FFE6D9
    #F5FFE8#FFFFF4#FFFCEC#FFFAF4#FFF3EE
    #613030#616130#336666#484891#6C3365
    #743A3A#707038#3D7878#5151A2#7E3D76
    #804040#808040#408080#5A5AAD#8F4586
    #984B4B#949449#4F9D9D#7373B9#9F4D95
    #AD5A5A#A5A552#5CADAD#8080C0#AE57A4
    #B87070#AFAF61#6FB7B7#9999CC#B766AD
    #C48888#B9B973#81C0C0#A6A6D2#C07AB8
    #CF9E9E#C2C287#95CACA#B8B8DC#CA8EC2
    #D9B3B3#CDCD9A#A3D1D1#C7C7E2#D2A2CC
    #E1C4C4#D6D6AD#B3D9D9#D8D8EB#DAB1D5
    #EBD6D6#DEDEBE#C4E1E1#E6E6F2#E2C2DE
    #F2E6E6#E8E8D0#D1E9E9#F3F3FA#EBD3E8

    常用顏色表
  • 色彩代碼
  • 英文名字顏色代碼
  • 中文名字顏色代碼
  • 色碼轉換器

  • 16進位網頁色碼表
    色碼表/RGB Color Code 2013年5月16日 星期四
       http://www.ifreesite.com/color/ 

       ( 4 . )  301重定向在HTML/PHP/ASP文件中跳轉***
     
    最近因為co.cc一個老舊的免費域名希望能夠挽回
    以前的流量,又要大費周張地折騰一返,
    剛把網站的所有舊的域名全部修改回新的域名地址,
    但又來一波了(真黑仔),
    由於使用的虛擬主機(空間)不允許使用 .htaccess
    文件做301重定向(跳轉),
    沒有辦法下!又在偉大的Google找各大的C兄請教一下,

    踏破鐵鞋無覓處! 終於在88頁找到了一位高手

    分享了301的經驗,
    並且他慷慨地析出了在HTML/PHP/ASP文件中
    實現301重定向(跳轉)的設置,
    唉! 在網上很多的教學都是使用 .htaccess 文件為
    基礎,很難得找到一篇在HTML/PHP/ASP實現
    301 重定,
    希望在此也分享給大家,給有需要的站長了…

        PHP/ASP   <% 
    dim reurl 
    reurl=request.ServerVariables("SERVER_NAME") 
    if instr(reurl,"OldDomain") then 
    Response.Status="301 Moved Permanently" 
    Response.AddHeader "Location", "NewDomain" 
    Response.End 
    end if 
    %> 


       HTML    <script language="javascript"> 
    var thisURL = document.URL.toLowerCase(); 
    var str = "OldDomain"; 
    if(thisURL.indexOf(str)>-1){ 
    var newURL = thisURL.replace("OldDomain","NewDomain"); 
    window.location.href= newURL; 

    </script> 

    本人在linux apache系統測試成功 ^^


     301跳轉(重定向)全站或指定頁面  

     網站301跳轉(重定向)是SEO不可缺少的範疇,如果能
    夠好好的運用,無論網站更換了域名(網址)或網站搬家
    了,一般需要做的工作。
    例如︰網站整個更換了域名或網站結構或目錄發生了
    移動,或需要將某個域名上的文件遷移到另外的域上
    等等。
    有時候這種301重定向對SEO或者PR值的傳遞是非常有效的。

    301跳轉(重定向)開始︰
    首先在網站的目錄建立一份文件名為".htaccess“,
    打開並編輯。
    例子一:如果需要變更域名,即想將舊域名
    www.old.com 
    換成全新的域名 www.new.com 就可以這樣寫

       # 將 RewriteEngine 模式打開
    RewriteEngine on
    # 修改以下語句中的 /tools 為你的網站目錄地址,如果程序放在根目錄中,

    請將 /tools 修改為 /
    RewriteBase /
    # Rewrite 301規則
    RewriteCond %{HTTP_HOST} ^www.old.com$ [NC]
    RewriteRule ^(.*)$ http://www.new.com$1 [L,R=301]


      例子二:如果我們想 ifreesite.com 全部跳轉 到 www.ifreesite.com 就可以這樣寫
    (即以www 開頭為主域名)

     # 將 RewriteEngine 模式打開
    RewriteEngine on
    # 修改以下語句中的 /tools 為你的網站目錄地址,

    如果程序放在根目錄中,請將 /tools 修改為 /
    RewriteBase /
    # Rewrite 301規則
    RewriteCond %{HTTP_HOST} ^ifreesite.com$

    [NC]
    RewriteRule ^(.*)$ http://www.ifreesite.

    com$1 [L,R=301]

     301跳轉(重定向)代碼之解說︰RewriteCond %{HTTP_HOST} !^www.
    ifreesite.com$ [NC]
    RewriteRule ^(.*)$ http://www.ifreesite.

    com/$1 [L,R=301]
    以上代碼實現了:只要不是 www.ifreesite.com

    (第2行中的 www.ifreesite.com )訪問過來的
    域名,均會跳轉到 www.ifreesite.com
    (第3行中的 www.ifreesite.com)這個域名
    其中第2行中的 !^www.ifreesite.com$ :
    ! 嘆號表示域名的開始;
    ^ 尖號表示非,即不是以 xxx 開頭的;
    $ 符號表示域名的結尾。
    由此可以看出 !^www.ifreesite.com$ 表達的

    意思就是訪問到你服務器的域名不是完全與 www.ifreesite.com 相同的域名,就會滿足
    判斷的條件,進而觸發跳轉的操作了。

    +*例子三:指定頁面中的301跳轉(重定向)

      1. 內部網站頁面跳轉︰
    例如︰
    將ifreesite.php頁面,跳轉到指定頁面ifreesite.html 


       # 將 RewriteEngine 模式打開
    RewriteEngine on
    # 修改以下語句中的 /tools 為你的網站目錄地址,如果程序放在 

    根目錄中,請將 /tools 修改為 /
    RewriteBase /
    # Rewrite 301規則 
    RewriteRule ^ifreesite.php(.*)$ /ifreesite.html$1 [R=301,L]


     2. 跳轉到其他域名或外部網站︰
    例如︰
    將舊的域名hkfreesite.com/id.htm頁面,跳轉到新的域名指定頁面http://www.ifreesite.com/id.htm ***


      # 將 RewriteEngine 模式打開
    RewriteEngine on
    # 修改以下語句中的 /tools 為你的網站目錄地址,

    如果程序放在根目錄中,請將 /tools 修改為 /
    RewriteBase / 
    # Rewrite 301規則 
    RewriteRule ^id.htm(.*)$ http://www.ifreesite.com/id.htm [R=301,L]
    RewriteRule ^data.htm(.*)$ http://www.ifreesite.com/data.htm [R=301,L]
    RewriteRule ^phone.htm(.*)$ http://www.ifreesite.com/phone [R=301,L]
    RewriteRule ^color.htm(.*)$ http://www.ifreesite.com/color [R=301,L]

      例子四:apache設置404頁面 (網站必須已經
    創建一份404文件)

       # 將 RewriteEngine 模式打開
    RewriteEngine on 
    # 修改以下語句中的 /tools 為你的網站目錄地址,
    如果程序放在根目錄中,請將 /tools 修改為 /
    RewriteBase / 
    # Rewrite 301規則 
    <Files *> 
    Options -Indexes 
    </Files> 
    ErrorDocument 404 /404/index.html 
    ErrorDocument 403 /404/index.html 

        
    &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&

     &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
        

    沒有留言:

    張貼留言


    if you like make fds, wellcome you here~~anytime***

    my free place for everyones who want the good software,

    come & download them~ wellcome!!