คือไปดาวน์โหลด script lightbox มาจะเอามาใส่ใน shopping cart php
เวลาใช้ก็ เพิ่มคำสั่ง rel='lightbox' ที่ลิงค์
<a href=\"viewpic.php?category_type=$category_type&product_id=$product_id\" rel=\"lightbox\">
แต่พอคลิกที่รูปมันจะระบายสีจาง ๆ ที่หน้าเดิม แต่ไม่เปิดรูปใหญ่ให้
ต้องแก้ยังไงช่วยบอกวิธีให้หน่อย
ช่วยหน่อยเกี่ยวกับ lightbox
Moderator: mindphp
- mindphp
- ผู้ดูแลระบบ MindPHP
- โพสต์: 41410
- ลงทะเบียนเมื่อ: 22/09/2008 6:18 pm
- ติดต่อ:
โหลด มาจากไหน ง่ะครับ
lightbox นี่มันต้องใช้ javascript ไม่ใช่หรือครับ
lightbox นี่มันต้องใช้ javascript ไม่ใช่หรือครับ
ติดตาม VDO: http://www.youtube.com/c/MindphpVideoman
ติดตาม FB: https://www.facebook.com/pages/MindphpC ... 9517401606
หมวดแชร์ความรู้: https://www.mindphp.com/forums/viewforum.php?f=29
รับอบรม และพัฒนาระบบ: https://www.mindphp.com/forums/viewtopic.php?f=6&t=2042
ติดตาม FB: https://www.facebook.com/pages/MindphpC ... 9517401606
หมวดแชร์ความรู้: https://www.mindphp.com/forums/viewforum.php?f=29
รับอบรม และพัฒนาระบบ: https://www.mindphp.com/forums/viewtopic.php?f=6&t=2042
- atom48
- PHP Newbie
- โพสต์: 3
- ลงทะเบียนเมื่อ: 01/01/1970 7:00 am
โหลดจาก http://www.huddletogether.com/projects/lightbox2/ ใส่แล้วมันไม่ขึ้นรูปใหญ่อ่ะ
- mindphp
- ผู้ดูแลระบบ MindPHP
- โพสต์: 41410
- ลงทะเบียนเมื่อ: 22/09/2008 6:18 pm
- ติดต่อ:
ลองเช็ค ดู ว่าoutput ที่ออกมา ถูกต้อง ตามที่คู่ มือเค้าแนะนำมาหรือเปล่า
ติดตาม VDO: http://www.youtube.com/c/MindphpVideoman
ติดตาม FB: https://www.facebook.com/pages/MindphpC ... 9517401606
หมวดแชร์ความรู้: https://www.mindphp.com/forums/viewforum.php?f=29
รับอบรม และพัฒนาระบบ: https://www.mindphp.com/forums/viewtopic.php?f=6&t=2042
ติดตาม FB: https://www.facebook.com/pages/MindphpC ... 9517401606
หมวดแชร์ความรู้: https://www.mindphp.com/forums/viewforum.php?f=29
รับอบรม และพัฒนาระบบ: https://www.mindphp.com/forums/viewtopic.php?f=6&t=2042
- mindphp
- ผู้ดูแลระบบ MindPHP
- โพสต์: 41410
- ลงทะเบียนเมื่อ: 22/09/2008 6:18 pm
- ติดต่อ:
งง ตรงไหนครับ
คู่มือ ตัวอย่าง ที่หน้าเว็บ เค้าบอกไว้อย่างละเอียด แล้วนี่คับ
Lightbox v2.0 uses the Prototype Framework and Scriptaculous Effects Library. You will need to include these three Javascript files in your header.
<script type="text/javascript" src="js/prototype.js"></script>
<script type="text/javascript" src="js/scriptaculous.js?load=effects"></script>
<script type="text/javascript" src="js/lightbox.js"></script>
Include the Lightbox CSS file (or append your active stylesheet with the Lightbox styles).
<link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" />
Check the CSS and make sure the referenced prevlabel.gif and nextlabel.gif files are in the right location. Also, make sure the loading.gif and closelabel.gif files as referenced near the top of the lightbox.js file are in the right location.
Part 2 - Activate
Add a rel="lightbox" attribute to any link tag to activate the lightbox. For example:
<a href="images/image-1.jpg" rel="lightbox" title="my caption">image #1</a>
Optional: Use the title attribute if you want to show a caption.
If you have a set of related images that you would like to group, follow step one but additionally include a group name between square brackets in the rel attribute. For example:
<a href="images/image-1.jpg" rel="lightbox[roadtrip]">image #1</a>
<a href="images/image-2.jpg" rel="lightbox[roadtrip]">image #2</a>
<a href="images/image-3.jpg" rel="lightbox[roadtrip]">image #3</a>
No limits to the number of image sets per page or how many images are allowed in each set. Go nuts!
คู่มือ ตัวอย่าง ที่หน้าเว็บ เค้าบอกไว้อย่างละเอียด แล้วนี่คับ
Lightbox v2.0 uses the Prototype Framework and Scriptaculous Effects Library. You will need to include these three Javascript files in your header.
<script type="text/javascript" src="js/prototype.js"></script>
<script type="text/javascript" src="js/scriptaculous.js?load=effects"></script>
<script type="text/javascript" src="js/lightbox.js"></script>
Include the Lightbox CSS file (or append your active stylesheet with the Lightbox styles).
<link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" />
Check the CSS and make sure the referenced prevlabel.gif and nextlabel.gif files are in the right location. Also, make sure the loading.gif and closelabel.gif files as referenced near the top of the lightbox.js file are in the right location.
Part 2 - Activate
Add a rel="lightbox" attribute to any link tag to activate the lightbox. For example:
<a href="images/image-1.jpg" rel="lightbox" title="my caption">image #1</a>
Optional: Use the title attribute if you want to show a caption.
If you have a set of related images that you would like to group, follow step one but additionally include a group name between square brackets in the rel attribute. For example:
<a href="images/image-1.jpg" rel="lightbox[roadtrip]">image #1</a>
<a href="images/image-2.jpg" rel="lightbox[roadtrip]">image #2</a>
<a href="images/image-3.jpg" rel="lightbox[roadtrip]">image #3</a>
No limits to the number of image sets per page or how many images are allowed in each set. Go nuts!
ติดตาม VDO: http://www.youtube.com/c/MindphpVideoman
ติดตาม FB: https://www.facebook.com/pages/MindphpC ... 9517401606
หมวดแชร์ความรู้: https://www.mindphp.com/forums/viewforum.php?f=29
รับอบรม และพัฒนาระบบ: https://www.mindphp.com/forums/viewtopic.php?f=6&t=2042
ติดตาม FB: https://www.facebook.com/pages/MindphpC ... 9517401606
หมวดแชร์ความรู้: https://www.mindphp.com/forums/viewforum.php?f=29
รับอบรม และพัฒนาระบบ: https://www.mindphp.com/forums/viewtopic.php?f=6&t=2042
-
- Similar Topics
- ตอบกลับ
- แสดง
- โพสต์ล่าสุด
-
-
โพสต์ใหม่ Extension phpBB3.1.x]Lightbox ปรับขนาดภาพในโพสต์
โดย M034 » 19/04/2016 4:58 pm » ใน phpBB 3.1 Extension Review - 0 ตอบกลับ
- 875 แสดง
-
โพสต์ล่าสุด โดย M034
19/04/2016 4:58 pm
-
-
-
โพสต์ใหม่ [Review] Responsive Lightbox Plug in ส่วนเสริมการขยายรูป
โดย prakasit.bank » 08/06/2015 2:26 pm » ใน Wordpress user Guide Knowledge - 0 ตอบกลับ
- 1114 แสดง
-
โพสต์ล่าสุด โดย prakasit.bank
08/06/2015 2:26 pm
-
-
-
โพสต์ใหม่ [Extension phpBB3.1.1] Fancybox - A Lightbox Alternative Extension การแสดงของรูปภาพ
โดย จันนุสรณ์ ดีแก่ » 16/01/2019 10:29 am » ใน phpBB 3.1 Extension Review - 0 ตอบกลับ
- 1459 แสดง
-
โพสต์ล่าสุด โดย จันนุสรณ์ ดีแก่
16/01/2019 10:29 am
-
-
-
โพสต์ใหม่ OT Lightbox Login Module ช่วยในการตกแต่งตัว Login ของ Joomla
โดย mcmakdonal » 29/06/2015 10:51 am » ใน Joomla Extension Review - 0 ตอบกลับ
- 1715 แสดง
-
โพสต์ล่าสุด โดย mcmakdonal
29/06/2015 10:51 am
-
-
-
โพสต์ใหม่ [Extension phpBB3.1.x] Lightbox Extension เสริมการจัดการรูปภาพ
โดย prakasit.bank » 16/06/2015 10:35 am » ใน phpBB 3.1 Extension Review - 0 ตอบกลับ
- 859 แสดง
-
โพสต์ล่าสุด โดย prakasit.bank
16/06/2015 10:35 am
-
ผู้ใช้งานขณะนี้
สมาชิกกำลังดูบอร์ดนี้: ไม่มีสมาชิกใหม่ และบุคลทั่วไป 65