jquery DomWindow for all links on webpage

前端 未结 2 1492
暖寄归人
暖寄归人 2021-01-28 13:01

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=\"absoluteIframeD

2条回答
  •  长情又很酷
    2021-01-28 13:16

    Yes, possible:

    $(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 
        }); 
    });
    

    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

提交回复
热议问题