【发布时间】:2016-10-12 04:22:20
【问题描述】:
我编写了一个代码来在悬停链接时显示弹出 iframe。现在我想将链接值传递给弹出框上的那个 iframe 窗口。我怎样才能做到这一点? 这是我的代码
<a href="#" class="show-pop-iframe btn btn-default " data-placement="vertical" id="sample" value="email@domain.com">email@domain.com </a>
<a href="#" class="show-pop-iframe btn btn-default " data-placement="vertical" id="sample1" value="email1@domain1.com">email1@domain1.com </a>
<div id="auto"></div>
(function(){
var settings = {
trigger:'hover',
title:'Send Mail To User',
content:'<p>This is webui popover demo.</p><p>just enjoy it and have fun !</p>',
width:auto,
multi:true,
closeable:false,
style:'',
delay:300,
padding:true,
backdrop:false
};
function initPopover(){
var iframeSettings = {
width:500,
height:350,
closeable:true,
padding:false,
type:'iframe',
url:'http://localhost/live/liveuser.php'
};
$('a.show-pop-iframe').webuiPopover('destroy').webuiPopover(
$.extend({},settings,iframeSettings)
);
}
initPopover();
})();
【问题讨论】:
-
这个问题解决了吗?
-
没有。 @Parag Bhayani
-
好的,明天试试...如果我忘记了提醒我... ????
标签: javascript jquery html twitter-bootstrap iframe