在我的程序中我使用了圖像彈出窗口。一些圖像在主頁上滾動。圖片點擊事件
雖然我點擊圖像的意義上彈出將打開並顯示彈出窗口中的特定圖像。如何在彈出窗口中顯示圖像。現在我彈出了窗口,但是我無法在彈出窗口中顯示圖像。
這是到目前爲止我的代碼:
$("img").click(function(){
var $dialog = $('<div></div>')
.html(' <img src="localhost:81/keprandemo/media/catalog/product/cache/1/…; width="200" height="200" alt="Milk(1 lit)">')
.dialog({ autoOpen: true, resizable: false, draggable: false, width: 600, height:600, modal: true, title: 'Create Your Own PopUp Window' }); });
您應該將img src傳遞給彈出窗口。 – vijaykumar
沒有代碼沒有人可以幫你 –
如果可以,請顯示一些代碼和jsfiddle。 – 2013-10-26 07:08:42