ยินดีต้อนรับคุณ, บุคคลทั่วไป กรุณา เข้าสู่ระบบ หรือ ลงทะเบียน

เข้าสู่ระบบด้วยชื่อผู้ใช้ รหัสผ่าน และระยะเวลาในเซสชั่น

หน้า: [1]   ลงล่าง
พิมพ์
ผู้เขียน หัวข้อ: ถามเซียน JAVA SCRIPT .  (อ่าน 869 ครั้ง)
0 สมาชิก และ 1 บุคคลทั่วไป กำลังดูหัวข้อนี้
เป็นติ่งไรเนี่ย
หัวหน้าแก๊งเสียว
*

พลังน้ำใจ: 66
ออฟไลน์ ออฟไลน์

กระทู้: 1,210



ดูรายละเอียด
« เมื่อ: 04 ตุลาคม 2009, 08:37:32 »

อ้างถึง
addnavbuttons:function($, config, currentpanel){
      config.$leftnavbutton=$('<img src="'+config.defaultbuttons.leftnav[0]+'">').css({zIndex:50, position:'absolute', left:config.offsets.left+config.defaultbuttons.leftnav[1]+'px', top:config.offsets.top+config.defaultbuttons.leftnav[2]+'px', cursor:'hand', cursor:'pointer'}).attr({title:'Back '+config.defaultbuttons.moveby+' panels'}).appendTo('body')
      config.$rightnavbutton=$('<img src="'+config.defaultbuttons.rightnav[0]+'">').css({zIndex:50, position:'absolute', left:config.offsets.left+config.$gallery.get(0).offsetWidth+config.defaultbuttons.rightnav[1]+'px', top:config.offsets.top+config.defaultbuttons.rightnav[2]+'px', cursor:'hand', cursor:'pointer'}).attr({title:'Forward '+config.defaultbuttons.moveby+' panels'}).appendTo('body')
      config.$leftnavbutton.bind('click', function(){ //assign nav button event handlers
............
............

โค๊ดทําภาพสไลด์ ผมอยากเปลี่ยนลูกศรใหม่ ไม่รู้ไปเปลี่ยนตรงไหน หาไม่เจอ
ตัดมาบางตอน ตรงสีเเดง คิดว่าคงเป็นไฟล์ภาพลูกศร
ตัวอย่างสคริปและลูกศร prev next ที่ว่า อยู่เว็บนี้ครับ
http://www.dynamicdrive.com/dynamicindex4/stepcarousel.htm
บันทึกการเข้า
navico
Verified Seller
หัวหน้าแก๊งเสียว
*

พลังน้ำใจ: 108
ออฟไลน์ ออฟไลน์

กระทู้: 2,315



ดูรายละเอียด เว็บไซต์
« ตอบ #1 เมื่อ: 04 ตุลาคม 2009, 13:07:06 »

arrowl.gif
arrowr.gif
น่าจะใช่มั๊งครับ
บันทึกการเข้า
Tee++;
โปรแกรมเมอร์ จอหงวน
หัวหน้าแก๊งเสียว
*

พลังน้ำใจ: 79
ออฟไลน์ ออฟไลน์

กระทู้: 1,861



ดูรายละเอียด เว็บไซต์
« ตอบ #2 เมื่อ: 04 ตุลาคม 2009, 23:22:22 »

<script type="text/javascript">

stepcarousel.setup({
   galleryid: 'mygallery', //id of carousel DIV
   beltclass: 'belt', //class of inner "belt" DIV containing all the panel DIVs
   panelclass: 'panel', //class of panel DIVs each holding content
   autostep: {enable:true, moveby:1, pause:3000},
   panelbehavior: {speed:500, wraparound:false, persist:true},
   defaultbuttons: {enable: true, moveby: 1, leftnav: ['http://i34.tinypic.com/317e0s5.gif', -5, 80], rightnav: ['http://i38.tinypic.com/33o7di8.gif', -20, 80]},
   statusvars: ['statusA', 'statusB', 'statusC'], //register 3 variables that contain current panel (start), current panel (last), and total panels
   contenttype: ['inline'] //content setting ['inline'] or ['ajax', 'path_to_external_file']
})

</script>
บันทึกการเข้า

หน้า: [1]   ขึ้นบน
พิมพ์