单击选取框时如何显示弹出窗口。 [英] How show Popup window when click the marquee.
本文介绍了单击选取框时如何显示弹出窗口。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在页面顶部显示新闻和公告。我正在使用选框。我想显示当我点击该特定新闻或公告将作为弹出窗口查看。请分享您的想法。
Hi,
I want to show news and announcement in top of the page. I am using marquee for this. i want to show when i click that particular news or announcement will view as popup window. please share your ideas.
推荐答案
试试这样
Try like this
<marquee id="mq" direction="right" loop="true" onmouseover="this.stop();" önmouseout="this.start();">
<input type="text" id="txt" value="Click here" runat="server" önclick="window.open('http://www.google.com');" />
</marquee>
使用如下的JQuery:
Use JQuery like follows:
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
('marquee')。on('click',function(){
alert(你的消息);
});
('marquee').on('click',function(){ alert(your message); });
这篇关于单击选取框时如何显示弹出窗口。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文