本帖最后由 tcmis 于 2013-10-23 11:50:28 编辑

解决方案 »

  1.   

    _img.css({
    width: width * gvImage.scale[parentType],
    height: height * gvImage.scale[parentType],
    top: heightOffset,
    left: widthOffset
    });
    _img.hide().css('visibility','visible');
    _img.remove().appendTo(parent).wrap('<a href="http://bbs.csdn.net/" target="_blank"></a>');
    找到类似的代码,增加红色部分
      

  2.   

    while (not ds.eof)
     response.Write("<img id='"&ds("pk")&"' src="&ds("head_img")&" />")
     response.Write("</li>")
    ds.movenext
    wend大侠, 如何获取这个img的属性id值,谢谢
      

  3.   

    给img增加href属性
    <ul id="myGallery">
    <li><img src="http://www.spaceforaname.com/galleryview/img/photos/bp1.jpg" alt="Lone Tree Yellowstone" href="1" />
    <li><img src="http://www.spaceforaname.com/galleryview/img/photos/bp2.jpg" alt="Is He Still There?!" href="2" />
    <li><img src="http://www.spaceforaname.com/galleryview/img/photos/bp4.jpg" alt="Noni Nectar For Green Gecko" href="3" />
    var gvImage = function (img) { this.src = { 
    panel: img.attr('src'),
    frame: img.data('frame') || img.attr('src')
    };
    this.scale = {
    panel: null,
    frame: null
    };
    this.height = 0;
    this.width = 0;
    this.attrs = {
    title: img.attr('title') || img.attr('alt'),
    description: img.data('description')
    };
    this.href = img.attr('href');
    this.dom_obj = null;

    return this;
    },//...........
    _img.remove().appendTo(parent).wrap('<a href="'+gvImage.href+'" target="_blank"></a>');