20 lines
805 B
JavaScript
20 lines
805 B
JavaScript
$(function () {
|
|
$(".item img").click(function () {
|
|
var thisEle = $(this).parent();
|
|
var tag = thisEle.attr("tag");
|
|
var type = thisEle.attr("type");
|
|
var width = parseInt(thisEle.attr("wd"));
|
|
var height = parseInt(thisEle.attr("hg"));
|
|
//
|
|
//当前页面的上级路径,因为子页面没有写路径,默认与本页面同路径
|
|
var url = String(window.document.location.href);
|
|
url = url.substring(0, url.lastIndexOf("/") + 1);
|
|
var boxUrl = url + "List_View.aspx?tag=" + tag + "&type=" + type;
|
|
new top.PageBox("模板信息", boxUrl, width, height).Open();
|
|
});
|
|
$(".item").hover(function () {
|
|
$(this).addClass("itemOver");
|
|
}, function () {
|
|
$(this).removeClass("itemOver");
|
|
});
|
|
}); |