0

Sorry if this question repeats, but I couldn't find solution for my problem. I have something like this:

<p><a href="#inlineContent" class="defaultDOMWindow">Open DOM Window</a></p> 
<script type="text/javascript"> 
$('.defaultDOMWindow').openDOMWindow({ 
eventType:'click', 
loader:1, 
loaderImagePath:'animationProcessing.gif', 
loaderHeight:16, 
loaderWidth:17  
}); 
</script> 
<div id="inlineContent" style=" display:none;"> 
<p>Inline Content</p> 
<p>Click overlay to close window</p> 
<p>Consequat ea Investigationes in enim congue. Option velit volutpat quod blandit ex.</p> 
<p>Erat usus lorem adipiscing non in. Nobis claram iusto et dolore facilisis. Claritatem decima velit decima ipsum wisi. Quinta ullamcorper sollemnes usus aliquip in. Ut aliquip velit tempor facit putamus. Habent duis et option quod facer. Delenit facer consequat seacula molestie notare. Qui tincidunt nobis lectores eleifend eorum. Decima usus facer id parum legere. Nonummy nonummy facilisis sit qui eodem. </p> 
</div>

And I want to change it to show dom window on page load. So I want to remove this link and set function to load dom window on page load. How can I do this? Thanks in advance for your answers.

4

1 回答 1

0

也许试试这个解决方法:

 $('.defaultDOMWindow').openDOMWindow({
     eventType: 'click',
     loader: 1,
     loaderImagePath: 'animationProcessing.gif',
     loaderHeight: 16,
     loaderWidth: 17
 })
 $(window).load(function () {
     $('.defaultDOMWindow').trigger('click');
 });
于 2013-05-28T08:48:22.820 回答