有谁用过GalleryView控件,如何给图片添加链接地址 本帖最后由 tcmis 于 2013-10-23 11:50:28 编辑 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 _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>');找到类似的代码,增加红色部分 while (not ds.eof) response.Write("<img id='"&ds("pk")&"' src="&ds("head_img")&" />") response.Write("</li>")ds.movenextwend大侠, 如何获取这个img的属性id值,谢谢 给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>'); JS解密还原 【Javascript】js截取字符串 取<tr>的innerHTML的总和,谢谢 请问firefox中有没有像IE中的offsetx、offsety中的方法 怎样动态加载JS文件 Email收件人的值如何获取,请各位大神帮忙 加急 javascript嵌入网页时发生的问题? 怎么利用JavaScript设置某个表单中的所有触发事件 innerHTML的用途是什么?name与id属性有什么区别? 关于动态加载层和从server加载数据的问题 为什么火狐下window.location.reload(true);不刷新页面? 一个简单的jquery的问题,求大神帮忙看一下
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>');
找到类似的代码,增加红色部分
response.Write("<img id='"&ds("pk")&"' src="&ds("head_img")&" />")
response.Write("</li>")
ds.movenext
wend大侠, 如何获取这个img的属性id值,谢谢
<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>');