|
|
|
ช่วยผมด้วยครับท่านผู้ใดมีความรู้ช่วยด้วย ตัวลิงค์เมื่อรัน ตอนแรกมันเป็น สีแดงครับ แก้ยังงัยครับ |
|
|
|
|
|
|
|
อันนี้ code ครับ
Code (PHP)
<?
session_start();
include"config.inc.php";
$sql="select * from com_person where id_card='$valid_user'";
$result=mysql_query($sql);
$read_data=mysql_fetch_array($result);
$id_stu=$read_data[id_stu];
$name=$read_data[name];
$surname=$read_data[surname];
$edu=$read_data[edu];
$sex=$read_data[sex];
$pic=$read_data[pic];
$id_card=$read_data[id_card];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874" />
<title>.::ยินดีต้อนรับสู่เว็บไซต์แผนกคอมพิวเตอร์ธุรกิจ วิทยาลัยเทคนิคน่าน</title>
<script type="text/javascript" src="scripts/jquery-1.4.3.min.js"></script>
<script type="text/javascript" src="fancybox/jquery.mousewheel-3.0.4.pack.js"></script>
<script type="text/javascript" src="fancybox/jquery.fancybox-1.3.4.pack.js"></script>
<link rel="stylesheet" type="text/css" href="fancybox/jquery.fancybox-1.3.4.css" media="screen" />
<script type="text/javascript">
$(document).ready(function() {
$.fancybox({
'width': '550',
'height': '550',
'hideOnOverlayClick': false,
'showCloseButton': false,
'autoDimensions': false,
'showCloseButton' : true,
'scrolling': 'no',
'content': '<img src="pic/kid/0M40.jpg">'
});
});
</script>
<style type="text/css">
body,td,th {
font-family: tahoma;
font-size: 13px;
color: #000;
}
body {
background-color: #D6D1FC;
}
.fontmenu11 {
font-size: 16px;
}
.fontmenu11 strong {
font-size: 24px;
}
a:link {
color: #006;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #006;
}
a:hover {
text-decoration: none;
color: #F00;
}
a:active {
text-decoration: none;
}
.font22 {
color: #FFF;
}
</style>
<script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
<script type="text/javascript">
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
</script>
</head>
<body onload="MM_preloadImages('images/menu22_08.jpg','images/menu22_09.jpg','images/menu22_10.jpg','images/menu22_11.jpg','images/menu22_05.jpg','images/menu22_06.jpg','images/menu22_07.jpg','images/bg1_08.jpg','images/bg1_09.jpg','images/bg1_10.jpg','images/bg1_11.jpg','images/bg1_12.jpg','images/menu933_07.jpg','images/menu933_08.jpg')">
<table width="1047" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td colspan="3" valign="top"><table width="250" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="images/bg1_02.jpg" width="613" height="50" /></td>
<td><img src="images/bg1_03.jpg" width="415" height="50" /></td>
</tr>
</table></td>
<td width="19" valign="top"> </td>
</tr>
<tr>
<td colspan="3" valign="top"><object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="1028" height="200">
<param name="movie" value="images/head1.swf" />
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="swfversion" value="6.0.65.0" />
<!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
<param name="expressinstall" value="Scripts/expressInstall.swf" />
<!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="images/head1.swf" width="1028" height="200">
<!--<![endif]-->
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="swfversion" value="6.0.65.0" />
<param name="expressinstall" value="Scripts/expressInstall.swf" />
<!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
<div>
<h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
</div>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object></td>
<td valign="top"> </td>
</tr>
<tr>
<td colspan="3" valign="top">
<table width="1028" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="54" background="images/bg1_06.jpg" height="60" ></td>
<td width="366" background="images/bg1_07.jpg" height="60" ><marquee direction="left" scrolldelay="140"><font color="#FFFFFF">++ยินดีต้อนรับเข้าสู่เว็บไซด์แผนกคอมพิวเตอร์ธุรกิจ วิทยาลัยเทคนิคน่าน++</font></marquee></td>
<td width="119"><a href="index.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image19','','images/bg1_08.jpg',1)"><img src="images/bg333_08.jpg" name="Image19" width="119" height="60" border="0" id="Image19" /></a></td>
<td width="103"><a href="news.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image20','','images/bg1_09.jpg',1)"><img src="images/bg333_09.jpg" name="Image20" width="103" height="60" border="0" id="Image20" /></a></td>
<td width="118"><a href="webboard.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image21','','images/bg1_10.jpg',1)"><img src="images/bg333_10.jpg" name="Image21" width="118" height="60" border="0" id="Image21" /></a></td>
<td width="113"><a href="guesbook.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image22','','images/bg1_11.jpg',1)"><img src="images/bg333_11.jpg" name="Image22" width="113" height="60" border="0" id="Image22" /></a></td>
<td width="154"><a href="main.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image23','','images/bg1_12.jpg',1)"><img src="images/bg333_12.jpg" name="Image23" width="155" height="60" border="0" id="Image23" /></a></td>
</tr>
</table></td>
<td valign="top"> </td>
</tr>
<tr>
<td colspan="3" valign="top"><img src="images/bg1_14.jpg" width="1028" height="59" /></td>
<td valign="top"> </td>
</tr>
<tr>
<td width="18" valign="top" background="images/bg1_15.jpg" height="18" ></td>
<td width="990" valign="top" bgcolor="#FEF4F2"><table width="987" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="253" valign="top">
<?
if($valid_user==""){
include"login1.php";
}else{
?>
<table width="250" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="253" height="7" valign="top" background="images/bg1_24.jpg" ><table width="250" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2" align="center" background="images/mmm111_03.jpg" height="51" ><font color="#FFFFFF"><strong>รหัสนักศึกษา</strong>:<? echo"$id_stu"; ?></font></td>
</tr>
<tr>
<td width="104" align="right">ชื่อ-สกุล:</td>
<td width="146"><? echo"$name $surname"; ?> </td>
</tr>
<tr>
<td align="right">เพศ:</td>
<td><?
if($sex=="1"){
echo"ชาย";
}else{
echo"หญิง";
}
?> </td>
</tr>
<tr>
<td align="right">ระดับชั้น:</td>
<td><?
if($edu=="c23"){
echo "ปวช. 2 กลุ่ม 3";
}else if($edu=="c24"){
echo "ปวช. 2 กลุ่ม 4";
}else if($edu=="c34"){
echo "ปวช. 3 กลุ่ม 4";
}else if($edu=="c35"){
echo "ปวช. 3 กลุ่ม 5";
}else if($edu=="c36"){
echo "ปวช. 3 กลุ่ม 6";
}else if($edu=="s11"){
echo "ปวส. 1 กลุ่ม 1";
}else if($edu=="s12"){
echo "ปวส. 1 กลุ่ม 2";
}else if($edu=="s21"){
echo "ปวส. 2 กลุ่ม 1";
}else{
echo "ปวส. 2 กลุ่ม 2";
}
?> </td>
</tr>
<tr>
<td colspan="2" align="center"><?
if($pic==""){
echo"<img src=images/picno.jpg border='0' widet='100' height='100'>";
}else{
echo"<img src='pic/$pic' border='0' width='100' height='100'>";
}
?> </td>
</tr>
<tr>
<td colspan="2" align="center"><a href="logout.php">[ออกจากระบบ]</a></td>
</tr>
</table></td>
</tr>
<tr>
<td><img src="images/bg1_30.jpg" width="253" height="14" /></td>
</tr>
</table>
<?
}
?>
<br />
<table width="250" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="images/menu1_03.jpg" width="250" height="54" /></td>
</tr>
<tr>
<td><a href="index.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image12','','images/menu22_05.jpg',1)"><img src="images/menu1_05.jpg" name="Image12" width="250" height="44" border="0" id="Image12" /></a></td>
</tr>
<tr>
<td><a href="news.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image13','','images/menu22_06.jpg',1)"><img src="images/menu1_06.jpg" name="Image13" width="250" height="49" border="0" id="Image13" /></a></td>
</tr>
<tr>
<td><a href="teacher.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image24','','images/menu933_07.jpg',1)"><img src="images/menu90_07.jpg" name="Image24" width="250" height="49" border="0" id="Image24" /></a></td>
</tr>
<tr>
<td><a href="gold.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image25','','images/menu933_08.jpg',1)"><img src="images/menu90_08.jpg" name="Image25" width="250" height="49" border="0" id="Image25" /></a></td>
</tr>
<tr>
<td><a href="webboard.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image14','','images/menu22_07.jpg',1)"><img src="images/menu1_07.jpg" name="Image14" width="250" height="49" border="0" id="Image14" /></a></td>
</tr>
<tr>
<td><a href="guesbook.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image15','','images/menu22_08.jpg',1)"><img src="images/menu1_08.jpg" name="Image15" width="250" height="47" border="0" id="Image15" /></a></td>
</tr>
<tr>
<td><a href="homeroom1.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image16','','images/menu22_09.jpg',1)"><img src="images/menu1_09.jpg" name="Image16" width="250" height="44" border="0" id="Image16" /></a></td>
</tr>
<tr>
<td><a href="main.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image17','','images/menu22_10.jpg',1)"><img src="images/menu1_10.jpg" name="Image17" width="250" height="44" border="0" id="Image17" /></a></td>
</tr>
<tr>
<td><a href="admin.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image18','','images/menu22_11.jpg',1)"><img src="images/menu1_11.jpg" name="Image18" width="250" height="49" border="0" id="Image18" /></a></td>
</tr>
<tr>
<td><img src="images/menu1_13.jpg" width="250" height="18" /></td>
</tr>
<tr>
<td> </td>
</tr>
</table>
<table width="253" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="610" height="50" align="center" background="images/bg1_27.jpg" ><font color="#FFFFFF"><strong>เว็บไซด์ที่เกี่ยวข้อง</strong></font></td>
</tr>
<tr>
<td background="images/bg1_24.jpg" width="253" height="7" ><table width="253" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="26"> </td>
<td width="224"><a href="http://www.technicnan.ac.th/nan_ntc/kon/index1.html"><<แผนกช่างกลโรงงาน</a></td>
</tr>
<tr>
<td> </td>
<td><a href="http://www.technicnan.ac.th/nan_ntc/Electrical/indext.html"><<แผนกช่างไฟฟ้ากำลัง</a></td>
</tr>
<tr>
<td> </td>
<td><a href="http://www.technicnan.ac.th/nan_ntc/kosrang/index.php"><<แผนกช่างก่อสร้าง</a></td>
</tr>
<tr>
<td> </td>
<td><a href="http://www.technicnan.ac.th/nan_ntc/account/index.html"><<แผนกวิชาการบัญชี</a></td>
</tr>
<tr>
<td> </td>
<td><a href="http://www.technicnan.ac.th/nan_ntc/Laka/index.html"><<แผนกวิชาการเลขานุการ</a></td>
</tr>
<tr>
<td> </td>
<td><a href="http://www.technicnan.ac.th/nan_ntc/Hotel/index.php"><<แผนกวิชาการโรงแรมและการท่องเที่ยว</a></td>
</tr>
<tr>
<td> </td>
<td><a href="http://www.technicnan.ac.th/nan_ntc/maketing/index.php"><<แผนกวิชาการตลาด</a></td>
</tr>
<tr>
<td> </td>
<td><a href="http://www.technicnan.ac.th/nan_ntc/clote/index.html"><<แผนกวิชาผ้าและเครื่องแต่งกาย</a></td>
</tr>
<tr>
<td> </td>
<td><a href="http://www.technicnan.ac.th/nan_ntc/food/index.html"><<แผนกวิชาอาหารและโภชนาการ</a></td>
</tr>
<tr>
<td> </td>
<td><a href="http://www.technicnan.ac.th/nan_ntc/english/index.php"><<แผนกวิชาภาษาอังกฤษ</a></td>
</tr>
<tr>
<td> </td>
<td><a href="http://www.technicnan.ac.th/nan_ntc/ntc/index.php"><<แผนกวิชาคอมพิวเตอร์ธุรกิจ</a></td>
</tr>
<tr>
<td colspan="2"><img src="images/bg1_30.jpg" width="253" height="14" /></td>
</tr>
</table></td>
</tr>
</table>
<table width="250" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> <iframe src="//www.facebook.com/plugins/likebox.php?href=https%3A%2F%2Fwww.facebook.com%2Fpages%2FNan-Technical-College-NTC%2F484862971526750&width=240&height=290&show_faces=true&colorscheme=light&stream=false&border_color&header=true" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:240px; height:290px;" allowTransparency="true"></iframe></td>
</tr>
</table></td>
<td width="550" align="left" valign="top">
<table width="184" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><iframe src="https://www.facebook.com/plugins/like.php?href=http://www.technicnan.ac.th"
scrolling="No" frameborder="0"
style="border:none; width:450px; height:80px"></iframe>
</td>
</tr>
</table>
<table width="550" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><object id="FlashID2" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="550" height="200">
<param name="movie" value="images/banner.swf" />
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="swfversion" value="6.0.65.0" />
<!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
<param name="expressinstall" value="Scripts/expressInstall.swf" />
<!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="images/banner.swf" width="550" height="200">
<!--<![endif]-->
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="swfversion" value="6.0.65.0" />
<param name="expressinstall" value="Scripts/expressInstall.swf" />
<!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
<div>
<h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
</div>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object></td>
</tr>
</table>
<table width="550" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td colspan="3" background="images/new_02.jpg" width="671" height="48" ></td>
</tr>
<tr>
<td colspan="3"><table width="550" border="0" align="center" cellpadding="2" cellspacing="0">
<?
$sql2="select * from tb_news order by day_news desc LIMIT 4";
$result2=mysql_query($sql2);
$no=1;
while($read_data2=mysql_fetch_array($result2)){
$name_news=$read_data2[name_news];
$day_news=$read_data2[day_news];
$photo=$read_data2[photo];
$id_news=$read_data2[id_news];
?>
<tr>
<td width="112" rowspan="2" align="center" bgcolor="#66FFFF" style="border:dashed #009 1px"><?
if($photo==""){
echo"<img src=images/picno.jpg border='0' widet='70' height='70'>";
}else{
echo"<img src='pic/news/$photo' border='0' width='70' height='70'>";
}
?>
</a></td>
<td width="539" bgcolor="#66FFFF" style="border-bottom:dashed #000 1px" onmouseover="this.bgColor='#33CCCC'" onmouseout="this.bgColor='#66FFFF'"><strong>หัวข้อข่าว:</strong> <? echo"<a href='detail_news.php?id_news=$id_news'>$name_news"; ?> </a><? echo"<img src=images/news3.gif border='0' widet='50' height='50'>";?></td>
</tr>
<tr>
<td align="right" bgcolor="#66FFFF" style="border-bottom:dashed #000 1px" onmouseover="this.bgColor='#33CCCC'" onmouseout="this.bgColor='#66FFFF'"><strong>วันที่โพสข่าว:</strong><? echo"$day_news"; ?> </td>
</tr>
<?
$no++;
}
?>
</table></td>
</tr>
<tr>
<td colspan="3" background="images/new_05.jpg" width="671" height="5" ></td>
</tr>
</table>
<br />
<table width="550" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td background="images/new_07.jpg" width="671" height="45" ></td>
</tr>
<tr>
<td><table width="550" border="0" align="center" cellpadding="2" cellspacing="0">
<?
$sql3="select * from tb_kidjakam order by day_kid desc LIMIT 5";
$result3=mysql_query($sql3);
$no=1;
while($read_data3=mysql_fetch_array($result3)){
$name_kid=$read_data3[name_kid];
$day_kid=$read_data3[day_kid];
$photo1=$read_data3[photo1];
$id_kid=$read_data3[id_kid];
$t_time=$read_data3[t_time];
?>
<tr>
<td width="112" rowspan="2" align="center" bgcolor="#66FFFF" style="border:dashed #009 1px"><?
if($photo1==""){
echo"<img src=images/picno.jpg border='0' widet='70' height='70'>";
}else{
echo"<img src='pic/kid/$photo1' border='0' width='70' height='70'>";
}
?>
</a></td>
<td width="539" bgcolor="#66FFFF" style="border-bottom:dashed #000 1px" onmouseover="this.bgColor='#33CCCC'" onmouseout="this.bgColor='#66FFFF'"><strong>หัวข้อกิจกรรม:</strong> <? echo"<a href='detail_kid.php?id_kid=$id_kid'>$name_kid"; ?> </a><? echo"<img src=images/news04.gif border='0' widet='20' height='20'>";?></td>
</tr>
<tr>
<td align="right" bgcolor="#66FFFF" style="border-bottom:dashed #000 1px" onmouseover="this.bgColor='#33CCCC'" onmouseout="this.bgColor='#66FFFF'"><strong>วันที่โพสกิจกรรม:</strong><? echo"$day_kid"; ?> <strong>เวลา:</strong><? echo"$t_time"; ?> </td>
</tr>
<?
$no++;
}
?>
</table></td>
</tr>
<tr>
<td background="images/new_09.png" width="671" height="5" ></td>
</tr>
</table>
<br />
<table width="550" border="0" cellspacing="0" cellpadding="0">
<tr>
<td background="images/newsree_11.jpg" width="680" height="30" ></td>
</tr>
<tr>
<td><table width="550" border="0" cellspacing="0" cellpadding="0">
<?
$sql4="select * from tb_newrchee order by day_rchee desc LIMIT 6";
$result4=mysql_query($sql4);
$no=1;
while($read_data4=mysql_fetch_array($result4)){
$name_rchee=$read_data4[name_rchee];
$day_rchee=$read_data4[day_rchee];
$pic1=$read_data4[pic1];
$id_rchee=$read_data4[id_rchee];
?>
<tr>
<td bgcolor="#FEF4F2" onmouseover="this.bgColor='#33CCCC'" onmouseout="this.bgColor='#66FFFF'"><table width="550" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="106" align="center" style="border-bottom:dashed #000 1px"><?
echo"<img src=images/rcheewa.png border='0' widet='40' height='40'>";
?>
</span></td>
<td width="323" align="left" style="border-bottom:dashed #000 1px"><? echo"<a href='detail_rchee.php?id_rchee=$id_rchee'>$name_rchee"; ?></span></td>
<td width="121" style="border-bottom:dashed #000 1px"><? echo"$day_rchee"; ?>
</span></td>
</tr>
</table></td>
</tr>
<?
$no++;
}
?>
</table></td>
</tr>
<tr>
<td bgcolor="#014262"> </td>
</tr>
<tr>
<td> </td>
</tr>
</table>
<br />
<br />
<br /></td>
<td width="184" align="left" valign="top"><table width="184" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center"><img src="images/s1.jpg" width="147" height="207" /></td>
</tr>
</table> <br />
<table width="184" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center"><SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var now = new Date();
var month_array = new Array("มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม");
document.write("<form name=date_list><table bgcolor=silver><tr><td>");
document.write("<select name=month onchange=change_month(this.options.selectedIndex)>");
for(i=0;i<month_array.length;i++)
{
if (now.getMonth() != i)
{document.write ("<option value="+i+">"+month_array[i]);}
else
{document.write ("<option value="+i+" selected>"+month_array[i]);}
}
document.write("</select>");
document.write("</td><td>");
document.write ("<select name=year onchange=change_year(this.options[this.options.selectedIndex])>");
for(i=1950;i<3000;i++)
{
if (now.getYear() != i)
{document.write("<option value="+i+">"+i);}
else
{document.write("<option value="+i+" selected>"+i);}
}
document.write("</select></td></tr><tr><td colspan=2><center>");
document.write("<table bgcolor=white border=0 cellspacing = 0 cellpading = 0 width=100%><tr bgcolor=gray align=center>");
document.write("<td><font color=black>จ</font></td><td><font color=black>อ</td><td><font color=black>พ</td><td><font color=black>พฤ</td><td><font color=black>ศ</td><td ><font color=black>ส</td><td ><font color=black>อ</td>");
document.write("</tr><tr>");
for(j=0;j<6;j++)
{
for(i=0;i<7;i++)
{
document.write("<td align=center id=d"+i+"r"+j+"></td>")
}
document.write("</tr>");
}
document.write("</table>");
document.write("</center></from></td></tr></table>");
var show_date = new Date();
function set_cal(show_date)
{
begin_day = new Date (show_date.getYear(),show_date.getMonth(),1);
begin_day_date = begin_day.getDay();
end_day = new Date (show_date.getYear(),show_date.getMonth()+1,1);
count_day = (end_day - begin_day)/1000/60/60/24;
input_table(begin_day_date,count_day);
}
set_cal(show_date);
function input_table(begin,count)
{
init();
j=0;
if (begin!=0){i=begin-1;}else{i=6}
for (c=1;c<count+1;c++)
{
colum_name = eval("d"+i+"r"+j);
if ((now.getDate() == c)&&(show_date.getMonth() == now.getMonth())&&(show_date.getYear() == now.getYear())) {colum_name.style.backgroundColor = "blue";colum_name.style.color = "white";};
colum_name.innerText = c;
i++;
if (i==7){i=0;j++;}
}
}
function init()
{
for(j=0;j<6;j++)
{
for(i=0;i<7;i++)
{
colum_name = eval("d"+i+"r"+j);
colum_name.innerText = "-";
colum_name.style.backgroundColor ="";
colum_name.style.color ="";
}
}
}
function change_month(sel_month)
{
show_date = new Date(show_date.getYear(),sel_month,1);
set_cal(show_date);
}
function change_year(sel_year)
{
sel_year = sel_year.value;
show_date = new Date(sel_year,show_date.getMonth(),1);
set_cal(show_date);
}
// End -->
</script> </td>
</tr>
<tr>
<td align="center"> <embed src="http://www.respectsoft.com/onlineclock/digitalclock.swf" width="150" height="70" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" wmode="transparent"></embed></td>
</tr>
<tr>
<td align="center"> </td>
</tr>
</table>
<table width="184" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><img src="images/g_counter_01.jpg" width="184" height="53" /></td>
</tr>
<tr>
<td align="center" background="images/g_counter_03.jpg" width="184" height="12" ><h2>
<? include"g_counter.php"; ?>
</h2></td>
</tr>
<tr>
<td><img src="images/g_counter_05.jpg" width="184" height="18" /></td>
</tr>
</table>
<br /></td>
</tr>
</table></td>
<td width="20" valign="top" background="images/bg1_17.jpg" height="18" ></td>
<td valign="top"> </td>
</tr>
<tr>
<td colspan="3" valign="top" background="images/bg1_32.jpg" width="1028" height="71" > </td>
<td valign="top"> </td>
</tr>
</table>
<script type="text/javascript">
swfobject.registerObject("FlashID");
swfobject.registerObject("FlashID2");
</script>
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/th_TH/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
</body>
</html>
|
|
|
|
|
Date :
2013-03-12 19:00:52 |
By :
hoyahoya |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
กำหนดโค๊ด css เป็น สีอื่นดิ เอาโค๊ดมาเยอะแยะ ใครจะอ่านหมดครับ
|
|
|
|
|
Date :
2013-03-12 19:47:26 |
By :
weaned |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
กำหนดใส่เอาเองเลยครับ background-color:# อะไรก็ว่าไป;
Code (PHP)
a:link {text-decoration:none;}
a:visited {text-decoration:none;}
a:hover {text-decoration:underline;}
a:active {text-decoration:underline;}
|
|
|
|
|
Date :
2013-03-12 19:56:44 |
By :
nukedonut1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Code (PHP)
<style type="text/css">
body,td,th {
font-family: tahoma;
font-size: 13px;
color: #000;
}
body {
background-color: #D6D1FC;
}
.fontmenu11 {
font-size: 16px;
}
.fontmenu11 strong {
font-size: 24px;
}
a:link {
color: #006;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #006;
}
a:hover {
text-decoration: none;
color: #F00;
}
a:active {
text-decoration: none;
}
.font22 {
color: #FFF;
}
</style>
อันใหนครับผมไม่รู้จริงๆๆ
|
|
|
|
|
Date :
2013-03-12 19:56:57 |
By :
hoyahoya |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
จะทำให้มันเป็นสีไรคับ
|
|
|
|
|
Date :
2013-03-12 20:00:05 |
By :
nukedonut1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Code (PHP)
a:link {
color: #006;
text-decoration: none;
//กำหนดสีลิ้งค์ในหน้าเพจนั้นๆ
}
a:visited {
text-decoration: none;
color: #006;
//กำหนดสีของลิ้งค์ที่มีการกดเข้าไปดูแล้ว
}
a:hover {
text-decoration: none;
color: #F00;
//กำหนดสีลิ้งค์ เมื่อนำเม้าส์ไปวางบนลิ้งค์
}
a:active {
text-decoration: none;
//กำหนดสีลิ้งค์เมื่อมีการคลิก
//เท่านี้น่าจะพอแก้ไขได้แล้วนะครับ
}
|
|
|
|
|
Date :
2013-03-13 23:17:31 |
By :
akkaneetha |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
แก้ได้แล้วครับผม
|
|
|
|
|
Date :
2013-03-14 12:20:01 |
By :
hoyahoya |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 05
|