链接jQnotice的消息 [英] Link in the message of jQnotice
本文介绍了链接jQnotice的消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何创建在以下脚本中有效的链接.我将其用作弹出窗口,并在商店中购买商品:
How can I make a link that works in the following script. I use it as a pop-up, with the purchase of goods in a shop:
$(document).ready(function() {
$('a.buy').click(function() {
jQnotice('Message..! - here i want to ad a url ex. "link go to shop" ');
});
});
推荐答案
在JQnotice插件中此行
In JQnotice plugin this line
$('<div></div>').attr('id', 'notice').css('left', (50-left)+'%').css('top', (0+top)+'px').appendTo('body').text(message);
应该是这样
$('<div></div>').attr('id', 'notice').css('left', (50-left)+'%').css('top', (0+top)+'px').appendTo('body').html(message);
这是链接
这篇关于链接jQnotice的消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文