|
|
|
ช่วยดูให้หน่อยครับ แท๊บผม ใน ie ปกติ แต่ใน Firefox มันมีจุดอะไรก็ไม่รู้อะครับ |
|
|
|
|
|
|
|
ตอนเปิดใน ie มันปกติทุกอย่าง ไม่มีจุดขึ้นมาเลย แต่พอมาเป็น Firefox มีจุดโผล่ออกมา ทำไงดีอะครับ
รูปจุด ที่โผล่ขึ้นมาใน Firefox ครับ
Code ครับ ไม่รู้เลยว่าต้องแก้ตรงไหน
Code (PHP)
<HTML>
<HEAD>
<TITLE>New Tab Test</TITLE>
<style type="text/css">
#box_menu{
margin: 0;
padding: 0;
}
.hidden{
display:none;
}
.font18 {
float:left;
height:35px;
margin-right:1px;
font-size:12px;
}
.font18 a {
display:block;
float:left;
height:35px;
line-height:33px;
color:#000;
text-decoration:none;
font-family:arial, verdana, sans-serif;
font-weight:bold;
text-align:center;
padding:0 0 0 4px;
cursor:pointer;
background:url(pro_seventeen_2a.gif) no-repeat;
}
.font18 a b {
float:left;
display:block;
padding:0 16px 5px 12px;
background:url(pro_seventeen_2b.gif) no-repeat right top;
}
.font12 {
float:left;
height:35px;
margin-right:1px;
font-size:12px;
}
.font12 a {
display:block;
float:left;
height:35px;
line-height:33px;
color:#000;
text-decoration:none;
font-family:arial, verdana, sans-serif;
font-weight:bold;
text-align:center;
padding:0 0 0 4px;
cursor:pointer;
background:url(pro_seventeen_0a.gif) no-repeat;
}
.font12 a b {
float:left;
display:block;
padding:0 16px 5px 12px;
background:url(pro_seventeen_0b.gif) no-repeat right top;
}
.menu17 li a:hover {
color:#000;
background: url(pro_seventeen_2a.gif) no-repeat;
}
.menu17 li a:hover b {
background:url(pro_seventeen_2b.gif) no-repeat right top;
}
</style>
<script type="text/javascript">
function display(sID) {
oObj = document.getElementById(sID);
if (oObj) {
oObj.style.display='inline';
}
}
function hide(sID) {
oObj = document.getElementById(sID);
if (oObj) {
oObj.style.display='none';
}
}
function gettab(id){
for (i=1;i<=8;i++)
{
if (id == i)
{
display("box_content"+i);
document.getElementById("li"+i).className ='font18';
}else{
hide("box_content"+i);
document.getElementById("li"+i).className ='font12';
}
}
}
function rotate(id,settime){
if (id >8){id=1;}
gettab(id);
id++;
timer = setTimeout("rotate("+id+","+settime+")", settime);
}
function clicktab(id){
for (i=1;i<=8;i++)
{
if (id == i)
{
display("box_content"+i);
document.getElementById("li"+i).className ='font18';
}else{
hide("box_content"+i);
document.getElementById("li"+i).className ='font12';
}
}
stoper();
timer = setTimeout("rotate("+id+","+3000+")", 8000);
}
function stoper() {
clearTimeout(timer);
}
</script>
</HEAD>
<BODY leftmargin="0" topmargin="0" >
<table width="974" height="230" border="0" cellspacing="0" cellpadding="0" background="bgna.jpg">
<tr>
<td height="50">
<table width="975" height="40" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="5"> </td>
<td width="177" align="left" valign="top"><img src="newprodu.jpg" width="177" height="40"></td>
<td width="10"> </td>
<td width="774">
<div id="box_tab" name="box_tab">
<span class="preload17a"></span>
<span class="preload17b"></span>
<ul id="box_menu" name="box_menu" class="menu17">
<li id="li1" name="li1"><a href="javascript:clicktab(1);"><b>test1</b></a></li>
<li id="li2" name="li2"><a href="javascript:clicktab(2);"><b>test2</b></a></li>
<li id="li3" name="li3"><a href="javascript:clicktab(3);"><b>test3</b></a></li>
<li id="li4" name="li4"><a href="javascript:clicktab(4);"><b>test4</b></a></li>
<li id="li5" name="li5"><a href="javascript:clicktab(5);"><b>test5</b></a></li>
<li id="li6" name="li6"><a href="javascript:clicktab(6);"><b>test6</b></a></li>
<li id="li7" name="li7"><a href="javascript:clicktab(7);"><b>test7</b></a></li>
<li id="li8" name="li8"><a href="javascript:clicktab(8);"><b>test8</b></a></li>
</ul>
</div>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="180">
<div id="box_content1" NAME="box_content1" >
<table width="975" height="165" border="0" cellspacing="0" cellpadding="0">
<tr height="160">
<td width="5"> </td>
<?$sqlN = "Select * From dt_tblproduct Where OnlineStatus='Y' And NewStatus='Y' And ProductCategoriesID='30' Order By Rand() Limit 0, 3;";
$resultN = mysql_query($sqlN);
$numRowsN = mysql_num_rows($resultN);
if($numRowsN==0){
$sqlN = "Select * From dt_tblproduct Where ProductCategoriesID='30' Order By Rand() Limit 0, 3;";
$resultN = mysql_query($sqlN);
}
while ($rwN = mysql_fetch_array($resultN)) {
$ProductID_N = $rwN["ProductID"];
$ProductCategoriesID_N = $rwN["ProductCategoriesID"];
$ProductNameEng_N = convertToText(stripStr($rwN["ProductNameEng"]));
$ProductNameThai_N = convertToText(stripStr($rwN["ProductNameThai"]));
$ProductImage5_N = convertToText(stripStr($rwN["ProductImage5"]));
$ProductCode_N = $rwN["ProductCode"];
$ProductPrice_N = $rwN["ProductPrice"];
if (is_file($ProductPath_Home.$ProductImage5_N)) {
$ProductImage5Show_N = "<img src=\"$ProductPath_Home$ProductImage5_N\" alt=\"$ProductNameThai_N\" width=\"175\" height=\"160\"border=\"0\">";
}else {
$ProductImage5Show_N = "";
}
?>
<td width="175" height="126"><?=$ProductImage5Show_N;?></td>
<td width="5"> </td>
<td width="147" valign="top"><b>รหัสสินค้า : </b><?=$ProductCode_N;?><br><br><b>ชื่อสินค้า :</b> <?=$ProductNameThai_N;?><br><br><b>ราคา : </b><?=$ProductPrice_N;?> บาท</td>
<?}?>
</tr>
<tr height="20">
<td colspan="9"> </td>
<td align="right">รายละเอียด <img src="icon1.gif"> </td>
</tr>
</table>
</div>
<div id="box_content2" NAME="box_content2" class="hidden">
<table width="975" height="165" border="0" cellspacing="0" cellpadding="0">
<tr height="160">
<td width="5"> </td>
<?$sqlN = "Select * From dt_tblproduct Where OnlineStatus='Y' And NewStatus='Y' And ProductCategoriesID='46' Order By Rand() Limit 0, 3;";
$resultN = mysql_query($sqlN);
$numRowsN = mysql_num_rows($resultN);
if($numRowsN==0){
$sqlN = "Select * From dt_tblproduct Where ProductCategoriesID='30' Order By Rand() Limit 0, 3;";
$resultN = mysql_query($sqlN);
}
while ($rwN = mysql_fetch_array($resultN)) {
$ProductID_N = $rwN["ProductID"];
$ProductCategoriesID_N = $rwN["ProductCategoriesID"];
$ProductNameEng_N = convertToText(stripStr($rwN["ProductNameEng"]));
$ProductNameThai_N = convertToText(stripStr($rwN["ProductNameThai"]));
$ProductImage5_N = convertToText(stripStr($rwN["ProductImage5"]));
$ProductCode_N = $rwN["ProductCode"];
$ProductPrice_N = $rwN["ProductPrice"];
if (is_file($ProductPath_Home.$ProductImage5_N)) {
$ProductImage5Show_N = "<img src=\"$ProductPath_Home$ProductImage5_N\" alt=\"$ProductNameThai_N\" width=\"175\" height=\"160\"border=\"0\">";
}else {
$ProductImage5Show_N = "";
}
?>
<td width="175" height="126"><?=$ProductImage5Show_N;?></td>
<td width="5"> </td>
<td width="147" valign="top"><b>รหัสสินค้า : </b><?=$ProductCode_N;?><br><br><b>ชื่อสินค้า :</b> <?=$ProductNameThai_N;?><br><br><b>ราคา : </b><?=$ProductPrice_N;?> บาท</td>
<?}?>
</tr>
<tr height="20">
<td colspan="9"> </td>
<td align="right">รายละเอียด <img src="icon1.gif"> </td>
</tr>
</table>
</div>
<div id="box_content3" NAME="box_content3" class="hidden">
<table width="975" height="165" border="0" cellspacing="0" cellpadding="0">
<tr height="160">
<td width="5"> </td>
<?$sqlN = "Select * From dt_tblproduct Where OnlineStatus='Y' And NewStatus='Y' And ProductCategoriesID='41' Order By Rand() Limit 0, 3;";
$resultN = mysql_query($sqlN);
$numRowsN = mysql_num_rows($resultN);
if($numRowsN==0){
$sqlN = "Select * From dt_tblproduct Where ProductCategoriesID='30' Order By Rand() Limit 0, 3;";
$resultN = mysql_query($sqlN);
}
while ($rwN = mysql_fetch_array($resultN)) {
$ProductID_N = $rwN["ProductID"];
$ProductCategoriesID_N = $rwN["ProductCategoriesID"];
$ProductNameEng_N = convertToText(stripStr($rwN["ProductNameEng"]));
$ProductNameThai_N = convertToText(stripStr($rwN["ProductNameThai"]));
$ProductImage5_N = convertToText(stripStr($rwN["ProductImage5"]));
$ProductCode_N = $rwN["ProductCode"];
$ProductPrice_N = $rwN["ProductPrice"];
if (is_file($ProductPath_Home.$ProductImage5_N)) {
$ProductImage5Show_N = "<img src=\"$ProductPath_Home$ProductImage5_N\" alt=\"$ProductNameThai_N\" width=\"175\" height=\"160\"border=\"0\">";
}else {
$ProductImage5Show_N = "";
}
?>
<td width="175" height="126"><?=$ProductImage5Show_N;?></td>
<td width="5"> </td>
<td width="147" valign="top"><b>รหัสสินค้า : </b><?=$ProductCode_N;?><br><br><b>ชื่อสินค้า :</b> <?=$ProductNameThai_N;?><br><br><b>ราคา : </b><?=$ProductPrice_N;?> บาท</td>
<?}?>
</tr>
<tr height="20">
<td colspan="9"> </td>
<td align="right">รายละเอียด <img src="icon1.gif"> </td>
</tr>
</table>
</div>
<div id="box_content4" NAME="box_content4" class="hidden">
<table width="975" height="165" border="0" cellspacing="0" cellpadding="0">
<tr height="160">
<td width="5"> </td>
<?$sqlN = "Select * From dt_tblproduct Where OnlineStatus='Y' And NewStatus='Y' And ProductCategoriesID='5' Order By Rand() Limit 0, 3;";
$resultN = mysql_query($sqlN);
$numRowsN = mysql_num_rows($resultN);
if($numRowsN==0){
$sqlN = "Select * From dt_tblproduct Where ProductCategoriesID='30' Order By Rand() Limit 0, 3;";
$resultN = mysql_query($sqlN);
}
while ($rwN = mysql_fetch_array($resultN)) {
$ProductID_N = $rwN["ProductID"];
$ProductCategoriesID_N = $rwN["ProductCategoriesID"];
$ProductNameEng_N = convertToText(stripStr($rwN["ProductNameEng"]));
$ProductNameThai_N = convertToText(stripStr($rwN["ProductNameThai"]));
$ProductImage5_N = convertToText(stripStr($rwN["ProductImage5"]));
$ProductCode_N = $rwN["ProductCode"];
$ProductPrice_N = $rwN["ProductPrice"];
if (is_file($ProductPath_Home.$ProductImage5_N)) {
$ProductImage5Show_N = "<img src=\"$ProductPath_Home$ProductImage5_N\" alt=\"$ProductNameThai_N\" width=\"175\" height=\"160\"border=\"0\">";
}else {
$ProductImage5Show_N = "";
}
?>
<td width="175" height="126"><?=$ProductImage5Show_N;?></td>
<td width="5"> </td>
<td width="147" valign="top"><b>รหัสสินค้า : </b><?=$ProductCode_N;?><br><br><b>ชื่อสินค้า :</b> <?=$ProductNameThai_N;?><br><br><b>ราคา : </b><?=$ProductPrice_N;?> บาท</td>
<?}?>
</tr>
<tr height="20">
<td colspan="9"> </td>
<td align="right">รายละเอียด <img src="icon1.gif"> </td>
</tr>
</table>
</div>
<div id="box_content5" NAME="box_content5" class="hidden">
<table width="975" height="165" border="0" cellspacing="0" cellpadding="0">
<tr height="160">
<td width="5"> </td>
<?$sqlN = "Select * From dt_tblproduct Where OnlineStatus='Y' And NewStatus='Y' And ProductCategoriesID='45' Order By Rand() Limit 0, 3;";
$resultN = mysql_query($sqlN);
$numRowsN = mysql_num_rows($resultN);
if($numRowsN==0){
$sqlN = "Select * From dt_tblproduct Where ProductCategoriesID='30' Order By Rand() Limit 0, 3;";
$resultN = mysql_query($sqlN);
}
while ($rwN = mysql_fetch_array($resultN)) {
$ProductID_N = $rwN["ProductID"];
$ProductCategoriesID_N = $rwN["ProductCategoriesID"];
$ProductNameEng_N = convertToText(stripStr($rwN["ProductNameEng"]));
$ProductNameThai_N = convertToText(stripStr($rwN["ProductNameThai"]));
$ProductImage5_N = convertToText(stripStr($rwN["ProductImage5"]));
$ProductCode_N = $rwN["ProductCode"];
$ProductPrice_N = $rwN["ProductPrice"];
if (is_file($ProductPath_Home.$ProductImage5_N)) {
$ProductImage5Show_N = "<img src=\"$ProductPath_Home$ProductImage5_N\" alt=\"$ProductNameThai_N\" width=\"175\" height=\"160\"border=\"0\">";
}else {
$ProductImage5Show_N = "";
}
?>
<td width="175" height="126"><?=$ProductImage5Show_N;?></td>
<td width="5"> </td>
<td width="147" valign="top"><b>รหัสสินค้า : </b><?=$ProductCode_N;?><br><br><b>ชื่อสินค้า :</b> <?=$ProductNameThai_N;?><br><br><b>ราคา : </b><?=$ProductPrice_N;?> บาท</td>
<?}?>
</tr>
<tr height="20">
<td colspan="9"> </td>
<td align="right">รายละเอียด <img src="icon1.gif"> </td>
</tr>
</table>
</div>
<div id="box_content6" NAME="box_content6" class="hidden">
<table width="975" height="165" border="0" cellspacing="0" cellpadding="0">
<tr height="160">
<td width="5"> </td>
<?$sqlN = "Select * From dt_tblproduct Where OnlineStatus='Y' And NewStatus='Y' And ProductCategoriesID='44' Order By Rand() Limit 0, 3;";
$resultN = mysql_query($sqlN);
$numRowsN = mysql_num_rows($resultN);
if($numRowsN==0){
$sqlN = "Select * From dt_tblproduct Where ProductCategoriesID='30' Order By Rand() Limit 0, 3;";
$resultN = mysql_query($sqlN);
}
while ($rwN = mysql_fetch_array($resultN)) {
$ProductID_N = $rwN["ProductID"];
$ProductCategoriesID_N = $rwN["ProductCategoriesID"];
$ProductNameEng_N = convertToText(stripStr($rwN["ProductNameEng"]));
$ProductNameThai_N = convertToText(stripStr($rwN["ProductNameThai"]));
$ProductImage5_N = convertToText(stripStr($rwN["ProductImage5"]));
$ProductCode_N = $rwN["ProductCode"];
$ProductPrice_N = $rwN["ProductPrice"];
if (is_file($ProductPath_Home.$ProductImage5_N)) {
$ProductImage5Show_N = "<img src=\"$ProductPath_Home$ProductImage5_N\" alt=\"$ProductNameThai_N\" width=\"175\" height=\"160\"border=\"0\">";
}else {
$ProductImage5Show_N = "";
}
?>
<td width="175" height="126"><?=$ProductImage5Show_N;?></td>
<td width="5"> </td>
<td width="147" valign="top"><b>รหัสสินค้า : </b><?=$ProductCode_N;?><br><br><b>ชื่อสินค้า :</b> <?=$ProductNameThai_N;?><br><br><b>ราคา : </b><?=$ProductPrice_N;?> บาท</td>
<?}?>
</tr>
<tr height="20">
<td colspan="9"> </td>
<td align="right">รายละเอียด <img src="icon1.gif"> </td>
</tr>
</table>
</div>
<div id="box_content7" NAME="box_content7" class="hidden">
<table width="975" height="165" border="0" cellspacing="0" cellpadding="0">
<tr height="160">
<td width="5"> </td>
<?$sqlN = "Select * From dt_tblproduct Where OnlineStatus='Y' And NewStatus='Y' And ProductCategoriesID='43' Order By Rand() Limit 0, 3;";
$resultN = mysql_query($sqlN);
$numRowsN = mysql_num_rows($resultN);
if($numRowsN==0){
$sqlN = "Select * From dt_tblproduct Where ProductCategoriesID='30' Order By Rand() Limit 0, 3;";
$resultN = mysql_query($sqlN);
}
while ($rwN = mysql_fetch_array($resultN)) {
$ProductID_N = $rwN["ProductID"];
$ProductCategoriesID_N = $rwN["ProductCategoriesID"];
$ProductNameEng_N = convertToText(stripStr($rwN["ProductNameEng"]));
$ProductNameThai_N = convertToText(stripStr($rwN["ProductNameThai"]));
$ProductImage5_N = convertToText(stripStr($rwN["ProductImage5"]));
$ProductCode_N = $rwN["ProductCode"];
$ProductPrice_N = $rwN["ProductPrice"];
if (is_file($ProductPath_Home.$ProductImage5_N)) {
$ProductImage5Show_N = "<img src=\"$ProductPath_Home$ProductImage5_N\" alt=\"$ProductNameThai_N\" width=\"175\" height=\"160\"border=\"0\">";
}else {
$ProductImage5Show_N = "";
}
?>
<td width="175" height="126"><?=$ProductImage5Show_N;?></td>
<td width="5"> </td>
<td width="147" valign="top"><b>รหัสสินค้า : </b><?=$ProductCode_N;?><br><br><b>ชื่อสินค้า :</b> <?=$ProductNameThai_N;?><br><br><b>ราคา : </b><?=$ProductPrice_N;?> บาท</td>
<?}?>
</tr>
<tr height="20">
<td colspan="9"> </td>
<td align="right">รายละเอียด <img src="icon1.gif"> </td>
</tr>
</table>
</div>
<div id="box_content8" NAME="box_content8" class="hidden">
<table width="975" height="165" border="0" cellspacing="0" cellpadding="0">
<tr height="160">
<td width="5"> </td>
<?$sqlN = "Select * From dt_tblproduct Where OnlineStatus='Y' And NewStatus='Y' And ProductCategoriesID='6' Order By Rand() Limit 0, 3;";
$resultN = mysql_query($sqlN);
$numRowsN = mysql_num_rows($resultN);
if($numRowsN==0){
$sqlN = "Select * From dt_tblproduct Where ProductCategoriesID='30' Order By Rand() Limit 0, 3;";
$resultN = mysql_query($sqlN);
}
while ($rwN = mysql_fetch_array($resultN)) {
$ProductID_N = $rwN["ProductID"];
$ProductCategoriesID_N = $rwN["ProductCategoriesID"];
$ProductNameEng_N = convertToText(stripStr($rwN["ProductNameEng"]));
$ProductNameThai_N = convertToText(stripStr($rwN["ProductNameThai"]));
$ProductImage5_N = convertToText(stripStr($rwN["ProductImage5"]));
$ProductCode_N = $rwN["ProductCode"];
$ProductPrice_N = $rwN["ProductPrice"];
if (is_file($ProductPath_Home.$ProductImage5_N)) {
$ProductImage5Show_N = "<img src=\"$ProductPath_Home$ProductImage5_N\" alt=\"$ProductNameThai_N\" width=\"175\" height=\"160\"border=\"0\">";
}else {
$ProductImage5Show_N = "";
}
?>
<td width="175" height="126"><?=$ProductImage5Show_N;?></td>
<td width="5"> </td>
<td width="147" valign="top"><b>รหัสสินค้า : </b><?=$ProductCode_N;?><br><br><b>ชื่อสินค้า :</b> <?=$ProductNameThai_N;?><br><br><b>ราคา : </b><?=$ProductPrice_N;?> บาท</td>
<?}?>
</tr>
<tr height="20">
<td colspan="9"> </td>
<td align="right">รายละเอียด <img src="icon1.gif"> </td>
</tr>
</table>
</div>
</td>
</tr>
</table>
<script type="text/javascript">
rotate(1,3000);
</script>
</div>
</BODY>
</HTML>
Tag : PHP, MySQL
|
|
|
|
|
|
Date :
2010-10-05 14:49:12 |
By :
muaeenth99 |
View :
2770 |
Reply :
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ลองเพิ่มส่วนนี้ครับ
Code (PHP)
<style type="text/css">
#box_menu{
margin: 0;
padding: 0;
}
// เพิ่มเติมตรงนี้ครับ
#box_menu li{
list-style:none;
}
// จบส่วนเพิ่มเติม
</style>
|
ประวัติการแก้ไข 2010-10-05 15:04:11
|
|
|
|
Date :
2010-10-05 15:03:14 |
By :
pokultra |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
เพิ่ม
#box_menu li{
list-style:none;
}
ใช้ได้เลยครับ
ขอบคุณมากๆนะครับ
ขอให้ร่ำรวย อายุยืนๆครับ
|
|
|
|
|
Date :
2010-10-05 15:17:47 |
By :
muaeenth99 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 00
|