jQuery的DomWindow的网页上的所有链接 [英] jquery DomWindow for all links on webpage
本文介绍了jQuery的DomWindow的网页上的所有链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以在此页面上创建示例3: http://swip.codylindley.com/DOMWindowDemo.html 是否可用于网页上的所有链接(不仅仅是具有class ="absoluteIframeDOMWindow"元素的链接)?
Is it possible to make the Example 3 on this page: http://swip.codylindley.com/DOMWindowDemo.html work for all links on a webpage (not only the ones with class="absoluteIframeDOMWindow" element)?
推荐答案
是的,可能的话:
$(function(){
$('a').openDOMWindow({
height:400,
width:700,
positionType:'absolute',
positionTop:50,
eventType:'click',
positionLeft:50,
windowSource:'iframe',
windowPadding:0,
loader:1,
loaderImagePath:'animationProcessing.gif',
loaderHeight:16,
loaderWidth:17
});
});
要通过JQuery调用方法,运行查询或更改某些特定节点的属性,您应该查看 jQuery选择器
To call a method, run a query or change a property of some specific nodes via JQuery, you should have a look at JQuery Selectors
这篇关于jQuery的DomWindow的网页上的所有链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文