รบกวนท่านพี่ๆ ทั้งหลายอีกแล้วครับ คือผมอยากปรับปรุงเว็บไซต์ของผมอ่ะครับ ในเรื่่องของการ

เริ่มโดย comscizaa, 19 เมษายน 2011, 08:05:41

หัวข้อก่อนหน้า - หัวข้อถัดไป

0 สมาชิก และ 1 ผู้มาเยือน กำลังดูหัวข้อนี้

comscizaa

รบกวนขอคำแนะนำสคริปแบ่งหน้า หน่อยนะครับที่อยากพัฒนาเว็บผมให้เป็นแบบนี้อ่ะครับ


ที่ผมพอทำได้มันออกมาได้เป็นแบบนี้อ่ะครับ


ขอรบกวนหน่อยครับ ขอขอบคุณล่วงหน้าสำหรับผู้มีพระคุณนะครับ

รบกวนขอตัวอย่างโค๊ดด้วยนะครับ เดี๋ยวผมเอามางัดแงะแกะโค้ดเองก็ได้ครับ
ที่ผมอยากได้คือแนวทางการทำครับ ถ้าได้สำเร็จรูปเลยจะเป็นพระคุณอย่างมากครับ


TheBoyzz

เปลี่ยนจากใช้ table เป็น div แทน จะได้ไม่ต้องคำนวนว่าอยู๋ cell ไหน


<!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=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<div class="container" style="width:850px; display:block">
    <div style="margin:2px; width:200px; height:200px; border:solid 10x #000; float:left;">content goes here</div>
    <div style="margin:2px; width:200px; height:200px; border:solid 10x #000; float:left;">content goes here</div>
    <div style="margin:2px; width:200px; height:200px; border:solid 10x #000; float:left;">content goes here</div>
    <div style="margin:2px; width:200px; height:200px; border:solid 10x #000; float:left;">content goes here</div>
    <div style="margin:2px; width:200px; height:200px; border:solid 10x #000; float:left;">content goes here</div>
    <div style="margin:2px; width:200px; height:200px; border:solid 10x #000; float:left;">content goes here</div>
    <div style="margin:2px; width:200px; height:200px; border:solid 10x #000; float:left;">content goes here</div>
    <div style="margin:2px; width:200px; height:200px; border:solid 10x #000; float:left;">content goes here</div>
    <div style="margin:2px; width:200px; height:200px; border:solid 10x #000; float:left;">content goes here</div>
    <div style="margin:2px; width:200px; height:200px; border:solid 10x #000; float:left;">content goes here</div>
</div>

</body>
</html>

ganginwpop

เขียน CSS เข้าไปก็น่าจะได้ละครับ
ประมาณนี้ครับ
<style>
#bigBox{
width:400px;
}
.mybox{
width:200px;
float:left;
}
</style>
<div id="bigBox">
<div class="mybox">text</div>
<div class="mybox">text</div>
<div class="mybox">text</div>
<div class="mybox">text</div>
</div>


ปล.ผมมั่ว
:wanwan004:
รับโม ปรับแต่ง ติดตั้ง แก้ไข [direct=http://www.simpleyoursite.com]บอร์ด SMF[/direct] ผลงาน [direct=http://www.simpleyoursite.com/portfolio.html]คลิกที่นี่[/direct]

อ่านการ์ตูนออนไลน์ ที่ MangaOnlines.com
Auto Pic Post to SMF from Mthai DEMO : MangaOnlines.com

[direct=http://www.simpleyoursite.com]รับทำเว็บไซต์เชียงใหม่[/direct] | [direct=http://www.simpleyoursite.com]รับทำเว็บไซต์[/direct]

comscizaa

ขอบคุณพี่ๆ ที่เข้ามาตอบนะครับ ตอนนี้ผมทำสำเร็จแล้วครับ
ลองเข้ามาดูกันนะครับ http://www.prakammatanputtoe.com

ganginwpop

ขอแนะนำนิดนึงครับ
ย่อรูปหน่อยก็ดีนะครับ
มันหน่วงเว็บ เอาแบบ thumb แสดงผล แ้ล้วคลิกเป็น link แสดงภาพใหญ่ดีกว่าครับ
:wanwan017:
รับโม ปรับแต่ง ติดตั้ง แก้ไข [direct=http://www.simpleyoursite.com]บอร์ด SMF[/direct] ผลงาน [direct=http://www.simpleyoursite.com/portfolio.html]คลิกที่นี่[/direct]

อ่านการ์ตูนออนไลน์ ที่ MangaOnlines.com
Auto Pic Post to SMF from Mthai DEMO : MangaOnlines.com

[direct=http://www.simpleyoursite.com]รับทำเว็บไซต์เชียงใหม่[/direct] | [direct=http://www.simpleyoursite.com]รับทำเว็บไซต์[/direct]

comscizaa

ขอคุณครับ สำหรับคำแนะนำ แต่ผมยังไม่ได้ทำ ฟังก์ชัน resize อ่ะครับ
ผมค่อยๆ พัฒนามาเรื่อยๆ อ่ะครับ อยากทำเหมือนกัน
แต่สินค้าที่ไม่ได้ resize มันมีเยอะเกินไปแล้วอ่ะครับ

ganginwpop

รูปสินค้าเก็บเป็น url ไว้ใน DB หรอครับ
......
จริงๆก็ทำได้อยู่นะ แต่วุ่นวายนิดนึง
สู้ๆครับ
:wanwan017:
รับโม ปรับแต่ง ติดตั้ง แก้ไข [direct=http://www.simpleyoursite.com]บอร์ด SMF[/direct] ผลงาน [direct=http://www.simpleyoursite.com/portfolio.html]คลิกที่นี่[/direct]

อ่านการ์ตูนออนไลน์ ที่ MangaOnlines.com
Auto Pic Post to SMF from Mthai DEMO : MangaOnlines.com

[direct=http://www.simpleyoursite.com]รับทำเว็บไซต์เชียงใหม่[/direct] | [direct=http://www.simpleyoursite.com]รับทำเว็บไซต์[/direct]

comscizaa

ครับ เก็บใน ชื่อรูปไว้ใน DB แล้ว copy ไว้ใน Folder อีกทีครับ
แล้วก็ดึงออกมาแสดงครับ แต่เสียอย่างลูกค้ามาเปิดร้านกับเว็บยังไม่มาก
ขนาดให้เปิดใช้บริการฟรีนะครับ อิอิ ธรรมดาครับ เว็บเปิดใหม่ ก็งี้แหละ

comscizaa