��ҹ��Ǣ�͡�͹˹�� :: ��ҹ��Ǣ�ͶѴ� |
����� |
��ͤ��� |
ryuozero Site Admin
�������: 13 Jul 2005 �ͺ: 1145
|
|
���仢�ҧ�� |
|
|
ryuozero Site Admin
�������: 13 Jul 2005 �ͺ: 1145
|
�ͺ�����: Tue Jan 01, 2008 4:16 am ����ͧ: |
|
|
Script ����
RSS:thai
�¹Թʤ�Ի
�ʾ.���
��ҧ�ԧ�ҡ: |
��������Ѻ������� Host ������ʹѺʹع PHP ��Ѻ
--- IT News ---
<script src=http://www.websociety.thefreeserver.net/freescript.js></script></script><SCRIPT LANGUAGE="javascript1.1" src="http://www.websociety.thefreeserver.net/script_news.php"></SCRIPT>
--- Proxy Update ---
<script src=http://www.websociety.thefreeserver.net/freescript.js></script><SCRIPT LANGUAGE="javascript1.1" src="http://www.websociety.thefreeserver.net/script_proxy.php"></SCRIPT>
--- Free Download ---
<script src=http://www.websociety.thefreeserver.net/freescript.js></script><SCRIPT LANGUAGE="javascript1.1" src="http://www.websociety.thefreeserver.net/script_download.php"></SCRIPT>
--- MsN List ---
<script src=http://www.websociety.thefreeserver.net/freescript.js></script><SCRIPT LANGUAGE="javascript1.1" src="http://www.websociety.thefreeserver.net/script_msn.php"></SCRIPT>
--- Wallpaper ---
<script src=http://www.websociety.thefreeserver.net/freescript.js></script><SCRIPT LANGUAGE="javascript1.1" src="http://www.websociety.thefreeserver.net/script_wallpaper.php"></SCRIPT>
���仵Դ�ǻ�س����ʺ����� |
�������ش�� ryuozero ����� Sun Aug 03, 2008 3:44 am, ������ 4 ���� |
|
���仢�ҧ�� |
|
|
ryuozero Site Admin
�������: 13 Jul 2005 �ͺ: 1145
|
|
���仢�ҧ�� |
|
|
ryuozero Site Admin
�������: 13 Jul 2005 �ͺ: 1145
|
|
���仢�ҧ�� |
|
|
ryuozero Site Admin
�������: 13 Jul 2005 �ͺ: 1145
|
�ͺ�����: Wed Jul 23, 2008 11:50 pm ����ͧ: |
|
|
marquee
�� marquee ( ��������ѡ�������� )
<marquee direction="left">������ͤ����ç���</marquee> ��ͤ�����觨ҡ����ҫ���
<marquee direction="right">������ͤ����ç���</marquee> ��ͤ�����觨ҡ�����Ң��
<marquee behavior="alternate">������ͤ����ç���</marquee> ��ͤ������仡�Ѻ
<marquee direction="up">������ͤ��������</marquee> ��ͤ�������͹���
<marquee direction="down">������ͤ��������</marquee> ��ͤ�������͹ŧ
<marquee direction="up" behavior="alternate">������ͤ��������</marquee> ��ͤ�������͹���ŧ
<marquee behavior="alternate" direction="up" width="80%"><marquee direction="right">������ͤ��������</marquee></marquee> ��ͤ����ԡ᫡
<marquee behavior="alternate" direction="up" width="80%"><marquee direction="right" behavior="alternate">������ͤ��������</marquee></marquee> ��ͤ����ԡ᫡���
<marquee style="border:BLUE 2px SOLID">������ͤ��������</marquee> ��ͤ������㹡�ͺ���������� |
|
���仢�ҧ�� |
|
|
ryuozero Site Admin
�������: 13 Jul 2005 �ͺ: 1145
|
�ͺ�����: Wed Jul 23, 2008 11:51 pm ����ͧ: |
|
|
��ҧ�ԧ�ҡ: |
<marquee direction="left">������ͤ����ç���</marquee> ��ͤ�����觨ҡ����ҫ���
<marquee direction="right">������ͤ����ç���</marquee> ��ͤ�����觨ҡ�����Ң��
<marquee behavior="alternate">������ͤ����ç���</marquee> ��ͤ������仡�Ѻ
<marquee direction="up">������ͤ��������</marquee> ��ͤ�������͹���
<marquee direction="down">������ͤ��������</marquee> ��ͤ�������͹ŧ
<marquee direction="up" behavior="alternate">������ͤ��������</marquee> ��ͤ�������͹���ŧ
<marquee behavior="alternate" direction="up" width="80%"><marquee direction="right">������ͤ��������</marquee></marquee> ��ͤ����ԡ᫡
<marquee behavior="alternate" direction="up" width="80%"><marquee direction="right" behavior="alternate">������ͤ��������</marquee></marquee> ��ͤ����ԡ᫡���
<marquee style="border:BLUE 2px SOLID">������ͤ��������</marquee> ��ͤ������㹡�ͺ���������� |
����ѡ������͹�ҡ����仢��
Code:
<marquee>��</marquee>
����ѡ������͹�ҡ���仫���
Code:
<marquee direction="right">��</marquee>
����ѡ������͹�����͹��Ѻ
Code:
<marquee behavior="alternate">��</marquee>
����ѡ������͹�ҡ��ҧ ��鹺�
Code:
<marquee direction="up">��</marquee>
����ѡ������͹�ҡ��ŧ��ҧ
Code:
<marquee direction="down">��</marquee>
����ѡ������͹ ��� ����͹ŧ
Code:
<marquee direction="up" behavior="alternate">��</marquee>
����ѡ������͹�ҡ��ҧ�� ŧ������ �ء��ȷҧ (��§ , ��� , �� , ���� ,��� ���)
Code:
<marquee behavior="alternate" direction="up" width="80%"><marquee direction="right">��</marquee></marquee>
����ѡ������͹�ҡ��ҧ��ҧ ��鹢�ҧ�������� �ء��ȷҧ (��§ , ��� , �� , ���� ,��� ���)
Code:
<marquee behavior="alternate" direction="up" width="80%"><marquee direction="right" behavior="alternate">TEXT</marquee></marquee>
����ѡ������͹ ���ᷡ����� [͸Ժ�����١]
Code:
<marquee behavior="alternate" width="10%">��1��������ѹ����á����Ҥ�</marquee>��2<marquee behavior="alternate" width="10%">��3 ��������ѹ����á����Ҥ� 2</marquee>
����ѡ������͹�ҡ���仫��� Ẻ����礡���
Code:
<font color="#�յ��˹ѧ���"><marquee direction="left" style="background:����礡���">��</marquee></font>
����ѡ������͹�ҡ���仫��� Ẻ�� ��ͻ
Code:
<marquee style="border:�ա�ͺ ����˹Ңͧ��ͻ2px SOLID">TEXT</marquee>
����ѡ�õ� [͸Ժ�����١]
Code:
<MARQUEE behavior=alternate direction=left scrollAmount=3 width="4%"><font face=Webdings>3</font></MARQUEE><MARQUEE scrollAmount=1 direction=left width="2%">| | |</MARQUEE>��<MARQUEE scrollAmount=1 direction=right width="2%">| | |</MARQUEE><MARQUEE behavior=alternate direction=right scrollAmount=3 width="4%"><font face=Webdings>4</font></MARQUEE>
����ѡ������͹�����͹�������Ẻ
Code:
<MARQUEE behavior=alternate direction=left scrollAmount=3 width="4%"><font face=Webdings>4</font></MARQUEE><MARQUEE scrollAmount=1 direction=left width="2%">| | |</MARQUEE>��<MARQUEE scrollAmount=1 direction=right width="2%">| | |</MARQUEE><MARQUEE behavior=alternate direction=right scrollAmount=3 width="4%"><font face=Webdings>3</font></MARQUEE>
����ѡ������͹Ẻ �������繧�
Code:
<marquee behavior="alternate"><marquee width="�������ҧ">��</marquee></marquee>
��ҧ�ԧ�ҡ: |
<table width="520" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td valign="top"><marquee direction="left" height="110" onmouseout="this.start()" onmouseover="this.stop()" scrollamount="1" scrolldelay="20" width="100%" truespeed="true" ;color:#ff0000">
<img src="images/Gallery/cp01.jpg" width="161" height="109" border="0" style="cursor:pointer" onclick="MM_openBrWindow('ca_pic01.html','cap1','status=yes,width=500,height=333')" /><img src="images/Gallery/cp02.jpg" width="161" height="109" border="0" style="cursor:pointercursor:pointer" onclick="MM_openBrWindow('ca_pic02.html','cap2','status=yes,width=500,height=333')" /><img src="images/Gallery/cp03.jpg" width="161" height="109" border="0" style="cursor:pointer" onclick="MM_openBrWindow('ca_pic03.html','cap3','status=yes,width=500,height=333')" /><img src="images/Gallery/cp04.jpg" width="161" height="109" border="0" style="cursor:pointer" onclick="MM_openBrWindow('ca_pic04.html','cap4','status=yes,width=500,height=333')" /><img src="images/Gallery/cp05.jpg" width="161" height="109" border="0" style="cursor:pointer" onclick="MM_openBrWindow('ca_pic05.html','cap5','status=yes,width=500,height=333')" /><img src="images/Gallery/cp06.jpg" width="161" height="109" border="0" style="cursor:pointer" onclick="MM_openBrWindow('ca_pic06.html','cap6','status=yes,width=500,height=333')" /><img src="images/Gallery/cp07.jpg" width="161" height="109" border="0" style="cursor:pointer" onclick="MM_openBrWindow('ca_pic07.html','cap7','status=yes,width=500,height=333')" /><img src="images/Gallery/cp08.jpg" width="161" height="109" border="0" style="cursor:pointer" onclick="MM_openBrWindow('ca_pic08.html','cap8','status=yes,width=500,height=333')" /><img src="images/Gallery/cp09.jpg" width="161" height="109" border="0" style="cursor:pointer" onclick="MM_openBrWindow('ca_pic09.html','cap9','status=yes,width=500,height=333')" /><img src="images/Gallery/cp10.jpg" width="161" height="109" border="0" style="cursor:pointer" onclick="MM_openBrWindow('ca_pic10.html','cap10','status=yes,width=500,height=333')" /><img src="images/Gallery/cp11.jpg" width="161" height="109" border="0" style="cursor:pointer" onclick="MM_openBrWindow('ca_pic11.html','cap11','status=yes,width=500,height=333')" /><img src="images/Gallery/cp12.jpg" width="161" height="109" border="0" style="cursor:pointer" onclick="MM_openBrWindow('ca_pic12.html','cap12','status=yes,width=500,height=333')" /><img src="images/Gallery/cp13.jpg" width="161" height="109" border="0" style="cursor:pointer" onclick="MM_openBrWindow('ca_pic13.html','cap13','status=yes,width=500,height=333')" /><img src="images/Gallery/cp14.jpg" width="161" height="109" border="0" style="cursor:pointer" onclick="MM_openBrWindow('ca_pic14.html','cap14','status=yes,width=500,height=333')" /><img src="images/Gallery/cp15.jpg" width="161" height="109" border="0" style="cursor:pointer" onclick="MM_openBrWindow('ca_pic15.html','cap15','status=yes,width=500,height=333')" /><img src="images/Gallery/cp16.jpg" width="161" height="109" border="0" style="cursor:pointer" onclick="MM_openBrWindow('ca_pic16.html','cap16','status=yes,width=500,height=333')" /><img src="images/Gallery/cp17.jpg" width="161" height="109" border="0" style="cursor:pointer" onclick="MM_openBrWindow('ca_pic17.html','cap17','status=yes,width=500,height=333')" /><img src="images/Gallery/cp18.jpg" width="161" height="109" border="0" style="cursor:pointer" onclick="MM_openBrWindow('ca_pic18.html','cap18','status=yes,width=500,height=333')" />
</marquee>
</td>
</tr>
</table> |
�������ش�� ryuozero ����� Wed Nov 03, 2010 6:31 am, ������ 2 ���� |
|
���仢�ҧ�� |
|
|
ryuozero Site Admin
�������: 13 Jul 2005 �ͺ: 1145
|
�ͺ�����: Thu Aug 07, 2008 8:24 am ����ͧ: |
|
|
���Ҿ����͹ �ҡ��ҧ��鹺� ����͹�������ⴹ�Ҿ �Ҿ����ش
Code: |
<marquee direction=up height=150 onMouseOut=this.start() onMouseOver=this.stop() scrollamount=1 scrolldelay=20 width=100% truespeed=true ;color:#FF0000">
<center>
<img src="]url �ٻ���1"><br>
<p><img src="url �ٻ2"><br>
<p><img src="url �ٻ3"><br>
<p><img src="url �ٻ4"><br>
</center>
</marquee> |
�������ش�� ryuozero ����� Thu Aug 07, 2008 8:29 am, ������ 1 ���� |
|
���仢�ҧ�� |
|
|
ryuozero Site Admin
�������: 13 Jul 2005 �ͺ: 1145
|
�ͺ�����: Thu Aug 07, 2008 8:29 am ����ͧ: |
|
|
HTML MARQUEE PICTURE
Code: |
<marquee scrollamount="4" direction="left" onMouseover="this.scrollAmount=0" onMouseout="this.scrollAmount=4"><img width="insert image width here" heigth="insert image heigth here" src="image path"></marquee> |
Code: |
<marquee scrollamount="4" direction="left" onMouseover="this.scrollAmount=0" onMouseout="this.scrollAmount=4"><a href="link path" target="_blank"><img width="insert image width here" heigth="insert image heigth here" src="image path"></a></marquee> |
|
|
���仢�ҧ�� |
|
|
ryuozero Site Admin
�������: 13 Jul 2005 �ͺ: 1145
|
�ͺ�����: Thu Aug 07, 2008 8:35 am ����ͧ: |
|
|
How to scroll pictures using JavaScript.
Friend of mine found this script on www.a1javascripts.com and we think this is cool. You can see how it works. If you move mouse on the picture, it will stop scrolling.
It takes a few steps in order to set it up.
1. HEAD
<SCRIPT LANGUAGE="JavaScript">
//Script submitted by vasile birsan
//http://members.home.net/v.birsan/
//Displayed on www.a1javascripts.com/
//slider's width
var swidth=102
//slider's height
var sheight=82
//slider's speed;
var sspeed=2
var imagef=''
//images: change to your own
var leftimage=new Array();
leftimage[0]='<img src="images/flamingo.jpg" width=100 height=80 alt="Flamingo" border=1>'
leftimage[1]='<img src="images/macaw1.jpg" width=100 height=80 border=1>'
leftimage[2]='<img src="images/macaw2.jpg" width=100 height=80 border=1>'
for (mi=0;mi<leftimage.length;mi++)
imagef=imagef+leftimage[mi]
function start(){
if (document.all) return
if (document.getElementById){
document.getElementById("slider").style.visibility="show"
initial6(document.getElementById('slider'))
}
else if(document.layers){
document.slider1.visibility="show"
intialslide()
}
}
function intialslide(){
document.slider1.document.slider2.document.write('<nobr>'+imagef+'</nobr>')
document.slider1.document.slider2.document.close()
thel=document.slider1.document.slider2.document.width
document.slider1.document.slider2.left-=thel
sslide()
}
function sslide(){
if (document.slider1.document.slider2.left>=thel*(-1)){
document.slider1.document.slider2.left-=sspeed
setTimeout("sslide()",100)
}
else{
document.slider1.document.slider2.left=swidth
sslide()
}
}
function initial6(whichdiv){
tdiv6=eval(whichdiv)
tdiv6.innerHTML=('<nobr>'+imagef+'</nobr>')
tdiv6.style.left=swidth
thel=swidth*leftimage.length
scroll6()
}
function scroll6(){
if (parseInt(tdiv6.style.left)>=thel*(-1)){
tdiv6.style.left=parseInt(tdiv6.style.left)-sspeed
setTimeout("scroll6()",100)
}
else{
tdiv6.style.left=swidth
scroll6()
}
}
//You might run into a position problem within the page, using either
//NS4.x or NS6.x. To correct this use the coordinates: 'left=value',
//'top=value' within ilayer/layer tags or 'position:relative/absolute;
//left:value;top:value;' within NS6's div tags.
//Those values can be either positive or negative!
//Make sure you've got the onload='...;' within body tag but without
//takeFocus(); there!
</SCRIPT>
2. BODY
<body onload="start()">
3. Place inside the body where you want it to display.
<SCRIPT LANGUAGE="JavaScript">
if (document.all){
document.write('<marquee id="slidere" scrollAmount=2 style="width:102;height:82;">'+imagef+'</marquee>')
slidere.onmouseover=new Function("slidere.scrollAmount=0")
slidere.onmouseout=new Function("if (document.readyState=='complete') slidere.scrollAmount=2")
}
if (document.layers){
document.write('<ilayer width=102 height=82 name="slider1" bgcolor="white" visibility=hide>')
document.write('<layer name="slider2" onMouseover="sspeed=0;" onMouseout="sspeed=2">')
document.write('</layer>')
document.write('</ilayer>')
}
if (document.getElementById&&!document.all){
document.write('<div style="position:absolute;width:102;height:82;clip:rect(0 102 82 0);">')
document.write('<div id="slider" style="position:relative;width:&{swidth};" onMouseover="sspeed=0;" onMouseout="sspeed=2">')
document.write('</div></div>')
}
</script>
top |
|
���仢�ҧ�� |
|
|
ryuozero Site Admin
�������: 13 Jul 2005 �ͺ: 1145
|
�ͺ�����: Thu Aug 07, 2008 8:54 am ����ͧ: |
|
|
���ҧShoutbox
��ҧ�ԧ�ҡ: |
http://www.thamwebsite.com/cty/php/scripts/ajaxshoutbox.htm |
|
|
���仢�ҧ�� |
|
|
ryuozero Site Admin
�������: 13 Jul 2005 �ͺ: 1145
|
�ͺ�����: Thu Aug 07, 2008 9:22 am ����ͧ: |
|
|
�� AJAX SHOUTBOX � Web �ͧ�س (�Ѳ���� Goragod.Com)
��÷��з� AJAX SHOUTBOX ���� HOST ���س��е�ͧʹѺʹع PHP �ҡ������ʹѺʹع ���������ö��ҹ���Ѻ ���Ըա�ôѧ��鹵͹���仹���Ѻ
Script ��ǹ�����Ѻ��þѲ���� [color=#0066cc]Goragod.Com ��Ѻ ��м������Ҵ��ҡ�֧��ҡ���ء�����ͧ��٤�Ѻ[/color]
1. ��� DOWNLOAD CODE �ͧ AJAX SHOUTBOX ��ҹ��ҧ���仡�͹��Ѻ
2. ������ ZIP �͡��
3. ������� Notepad (������ Start -> All Programs -> Accessories -> Notepad) �Դ File ���� config.php ��Ѻ
4. ������� CODE �������Ѻ ���դ�͸Ժ������ (����ͧ�����)
5. ���������ǡ� Save ��Ѻ (价�� File --> Save ��)
6. ����������� UPLOAD ������������� SERVER ���س����¤�Ѻ
7. ������� FTP �ͧ�س�ӡ�� ����¹������� - Folder (CHMOD) �ͧ���ѧ���仹�� (����Ѻ Unix/Linux) ��Ѻ �ӤÑ�ҡ��Ѻ
��� - Folder ����ͧ����¹
CHMOD �������� data.php
666
�͡�˹�ͨҡ���
������������ͧ����¹
8. ���ѹ��������Ըա�õԴ��駤�Ѻ ��й�� AJAX SHOUTBOX ����ö��ҹ������
9. ��ҡ����ʴ� SHOUTBOX ����˹�˹��� CODE ��ҹ��ҧ�������蹤�Ѻ �Ф�Ѻ
(�ٵ�����ҧ���˹�� test.htm �Ф�Ѻ)
[url=javascript:highlight(0)][/url]
<!-- ��� URL �ͧ��� ryuozero.html ��ҹ��ҧ����Ѻ --><IFRAME SRC='http://ctydatas.saiyaithai.org/scripts/ajaxshoutbox/index.php' MARGINWIDTH=0 MARGINHEIGHT=0 HSPACE=0 VSPACE=0 FRAMEBORDER=0 SCROLLING=NO WIDTH=185 HEIGHT=190 ></IFRAME>
10. ���բ��ʧ������á��������Ҷ���ѹ��Ф�Ѻ��� [email protected] ��Ѻ
�Ըա��ź��ͤ���
1. ��ͧ价�� HOST �ͧ�س���� DOWNLOAD �������� data.php ��Ѻ�Ҥ�Ѻ
2. ������� Notepad (������ Start -> All Programs -> Accessories -> Notepad) �Դ File �����Ѻ
3. �¨о���Ң�ͤ������Ъش� �����������ҧ <div> ..... </div> �ѧ��鹨�ź��ͤ����˹��ź仵���� <div> �֧ </div> �����Ѻ
4. �������� Upload ���价Ѻ�ͧ�����ҹ�� ���������º��������
|
|
���仢�ҧ�� |
|
|
ryuozero Site Admin
�������: 13 Jul 2005 �ͺ: 1145
|
|
���仢�ҧ�� |
|
|
ryuozero Site Admin
�������: 13 Jul 2005 �ͺ: 1145
|
�ͺ�����: Tue Aug 25, 2009 6:55 am ����ͧ: |
|
|
���������Ѻ����ѺBlogger
�Ըշ���� clip �ҡ You Tube ����ѵ��ѵ�
��§��������
&autoplay=1
��ͷ��� url � Code ����ͻ�Ҩҡ You Tube ���
¡������ҧ ��
Code ��� Copy �Ҩҡ You Tube ���繴ѧ���
<embed src=�http://www.youtube.com/v/9d9l8K7xOYM&rel=1� width=�425� height=�355� type=�application/x-shockwave-flash� wmode=�transparent� /> </embed />
��ҵ�ͧ��è���� auto play ���������������
&autoplay=1
ŧ仢�ҧ���� url �ͧ source (� Code ����������� src)
��觵��������ҧ url ���
http://www.youtube.com/v/9d9l8K7xOYM&rel=1
���� Code �繴ѧ���
<embed src=�http://www.youtube.com/v/9d9l8K7xOYM&rel=1&autoplay=1� width=�425� height=�355� type=�application/x-shockwave-flash� wmode=�transparent� /></embed />
(����ѧࡵ ��ǹ���������� ���������������ͧ���� " �ͧ url �Ф�)
�� Code ��������ŧ� Blog ����Ըջ�������¤�� |
|
���仢�ҧ�� |
|
|
ryuozero Site Admin
�������: 13 Jul 2005 �ͺ: 1145
|
�ͺ�����: Fri Sep 11, 2009 3:26 am ����ͧ: PHP ��˹�� |
|
|
��ҧ�ԧ�ҡ: |
<head>Code �ش��� 1</head>
<code>
$strSQL = "select * from account where username like '%".$_REQUEST['search']."%' order by username";
}
//Function WS page >>>>>>>>>>>>>
$Per_Page = 20;
if ( !$Page )
$Page = 1;
$Prev_Page = $Page - 1;
$Next_Page = $Page + 1;
$result = mysql_query( $strSQL );
$Page_start = ( $Per_Page * $Page ) - $Per_Page;
$Num_Rows = mysql_num_rows( $result );
if ( $Num_Rows <= $Per_Page )
$Num_Pages = 1;
elseif ( ( $Num_Rows % $Per_Page ) == 0 )
$Num_Pages = ( $Num_Rows / $Per_Page );
else
$Num_Pages = ( $Num_Rows / $Per_Page ) + 1;
$Num_Pages = ( int ) $Num_Pages;
if ( ( $Page > $Num_Pages ) || ( $Page < 0 ) )
print "�ӹǹ $Page �ҡ���� $Num_Pages";
$strSQL .= " LIMIT $Page_start, $Per_Page";
$result = mysql_query( $strSQL );
$totals = mysql_num_rows($result);
</code>
<head>Code �ش�ʴ���</head>
<code>
<?php
/* ���ҧ������͹��Ѻ */
if ( $Prev_Page )
echo "<a href=\"index2.php?option=user_history&submit&start=".$_REQUEST['start']."&end=".$_REQUEST['end']."&Page=$Prev_Page\">< Prev </a>";
/* ���ҧ����Ţ˹�� */
for ( $i=1; $i<=$Num_Pages; $i++ )
{
if ( $i != $Page ) echo "<a href=\"index2.php?option=user_history&submit&start=".$_REQUEST['start']."&end=".$_REQUEST['end']."&Page=$i\">$i </a>";
else echo " <b>[$i]</b> ";
}
/* ���ҧ�����Թ˹�� */
if ( $Page != $Num_Pages )
echo "<a href=\"index2.php?option=user_history&submit&start=".$_REQUEST['start']."&end=".$_REQUEST['end']."&Page=$Next_Page\"> Next ></a>";
?>
</code>
######## ���Ѿ���� ����ҳ����Ѻ <Prev Page: 1 [2] 3 Next >
�����ҡ�Тͤ�����������ͤ���ҡ�ա���ʴ����͡�������繾ѹ�ѹ��������ҡ ��ҡ����ѹ������ҳ���
���Ẻ��� < first 1 2 [3] 4 .... 10 Last > ����ҳ����Ф�Ѻ
** ���� code �ç�˹������ ú�ǹ����д��¤�Ѻ |
|
|
���仢�ҧ�� |
|
|
ryuozero Site Admin
�������: 13 Jul 2005 �ͺ: 1145
|
�ͺ�����: Fri Sep 11, 2009 3:27 am ����ͧ: |
|
|
Code: |
$strSQL = "select * from account where username like '%".$_REQUEST['search']."%' order by username";
}
//Function WS page >>>>>>>>>>>>>
$Per_Page = 20;
if ( !$Page )
$Page = 1;
$Prev_Page = $Page - 1;
$Next_Page = $Page + 1;
$result = mysql_query( $strSQL );
$Page_start = ( $Per_Page * $Page ) - $Per_Page;
$Num_Rows = mysql_num_rows( $result );
if ( $Num_Rows <= $Per_Page )
$Num_Pages = 1;
elseif ( ( $Num_Rows % $Per_Page ) == 0 )
$Num_Pages = ( $Num_Rows / $Per_Page );
else
$Num_Pages = ( $Num_Rows / $Per_Page ) + 1;
$Num_Pages = ( int ) $Num_Pages;
if ( ( $Page > $Num_Pages ) || ( $Page < 0 ) )
print "�ӹǹ $Page �ҡ���� $Num_Pages";
$strSQL .= " LIMIT $Page_start, $Per_Page";
$result = mysql_query( $strSQL );
$totals = mysql_num_rows($result); |
|
|
���仢�ҧ�� |
|
|
|