2007年9月13日 星期四

常用 CodePage 定義

寫程式存取資料庫最怕是系統編碼不同
若是不同就需在頁面上定義, 如下

<%@ codepage=936%> 简体中文

<%@ codepage=950%> 繁体中文

<%@ codepage=65001%> UTF-8

抓取 Youtube 及轉檔 - FLV Online Converter

利用以下網站

http://vixy.net/

貼入Youtube 的影片位置
選擇要轉出的類型

按下 start

過一陣子就可下載轉好的影片

2007年9月3日 星期一

使用div標籤顯示特別訊息




以下是程式碼:

==================================

<script language="JavaScript1.2">

/*
DHTML Announcement Box- By Jim Silver @ jimsilver47@yahoo.com
Exlusive permission granted to Dynamic Drive (http://dynamicdrive.com) to include this script in their DHTML archive.
For full source code, terms of use, and 100's more scripts, visit http://dynamicdrive.com
*/

//drag drop function for NS 4////
/////////////////////////////////

var dragswitch=0
var nsx
var nsy
var nstemp

function drag_dropns(name){
temp=eval(name)
temp.captureEvents(Event.MOUSEDOWN | Event.MOUSEUP)
temp.onmousedown=gons
temp.onmousemove=dragns
temp.onmouseup=stopns
}

function gons(e){
temp.captureEvents(Event.MOUSEMOVE)
nsx=e.x
nsy=e.y
}
function dragns(e){
if (dragswitch==1){
temp.moveBy(e.x-nsx,e.y-nsy)
return false
}
}

function stopns(){
temp.releaseEvents(Event.MOUSEMOVE)
}

//drag drop function for IE 4+////
/////////////////////////////////

var dragapproved=false

function drag_dropie(){
if (dragapproved==true){
document.all.showimage.style.pixelLeft=tempx+event.clientX-iex
document.all.showimage.style.pixelTop=tempy+event.clientY-iey
return false
}
}

function initializedragie(){
iex=event.clientX
iey=event.clientY
tempx=showimage.style.pixelLeft
tempy=showimage.style.pixelTop
dragapproved=true
document.onmousemove=drag_dropie
}

if (document.all){
document.onmouseup=new Function("dragapproved=false")
}

////drag drop functions end here//////

function hidebox(){
if (document.all)
showimage.style.visibility="hidden"
else if (document.layers)
document.showimage.visibility="hide"
}

</script>

<div id="showimage" style="position:absolute; left:197px; top:226px; overflow: visible; var o = true">
<table border="0" bgcolor="#FF0000" cellspacing="0" cellpadding="1">
<tr>
<td width="100%" ><table border="0" width="100%" cellspacing="0" cellpadding="5">
<tr>
<td onmousedown="initializedragie()" width="96%" bgcolor="#FF0000"><strong><font color="#FFFFFF">聲明啟事!!</font></strong></td>
<td width="1%" align="center" bgcolor="#FF0000"><a href="#" onclick="hidebox();return false" style="text-decoration:none"><font color="#FFFFFF">X</font></a></td>
</tr>
<tr>
<td colspan="2" align="center" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="5">
<tr>
<td width="350" height="250">本中心由衷感謝舊雨們多年來的支持與愛護!</td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="2" align="center"><a href="#" onclick="hidebox();return false" style="text-decoration:none"><font color="#FFFFFF">關閉視窗</font></a></td>
</tr>
</table>
</td>
</tr>
</table>
</div>

2007年9月1日 星期六

FON chilli.conf

radiusserver1 radius01.fon.com
radiusserver2 radius02.fon.com
radiussecret garrafon
dhcpif eth1
uamsecret garrafon
uamallowed 60.199.247.73
uamanydns
uamallowed www.martinvarsavsky.net,www.google.com,www.flickr.com,static.flickr.com,video.google.com,216.239.51.0/24,66.249.81.0/24
uamallowed www.fon.com,www.paypal.com,www.paypalobjects.com,www.skype.com,66.249.93.0/24,72.14.207.0/24,72.14.209.0/24,84.96.67.0/24,213.91.9.0/24,80.118.99.0/24
uamallowed shop.fon.co.kr,secure.nuguya.com,inilite.inicis.com,fon-en.custhelp.com,maps.fon.com,c20.statcounter.com
uamallowed www.excite.co.jp,image.excite.co.jp,adimp.excite.co.jp,202.47.16.159,202.47.16.161,202.47.17.159,202.47.17.161,202.47.18.159
uamallowed 202.47.18.161,202.47.19.159,202.47.19.161,ssl.google-analytics.com,c26.statcounter.com,www.fonshop.jp,gringo.fon.com
uamallowed labs.fon.com,213.134.44.0/23,www.fonshop.com.tw,shop.hk.fon.com,maps.naver.com
uamserver https://www.fon.com/login/gateway/sec/bcaeb47c9e2dee6f7b30ad7d009e6be4