添加“类似滑动”的鼠标事件

时间:2015-12-04 14:42:13

标签: javascript jquery magento slideshow

我在使用RWD base创建的新magento主题时出现问题。在我的页面中,我有很多小滑块显示产品。 所有这些滑块都使用magento提供的slideshow.js,它在桌面上滑动(鼠标点击上一个/下一个按钮)和移动(左右滑动)。 问题是因为我必须在桌面视图上左右滑动。 这是我现在正在使用的简单jquery函数

func main() {
        fp, err := os.Create("tst.bin")

        if err != nil {
                panic(err)
        }

        defer fp.Close()

        lineBuf := make([]byte, 10) //sized large enough to hold my two 4 byte ints and one 2 byte int

        binary.LittleEndian.PutUint32(lineBuf[0:4], 4) //packing into 4 bytes
        binary.LittleEndian.PutUint32(lineBuf[4:8], 185765) 
        binary.LittleEndian.PutUint16(lineBuf[8:10], 1020) //packing into 2 bytes

        binary.Write(fp, binary.LittleEndian, lineBuf)
}

0 个答案:

没有答案