ciao,ho un problema con questo script, non riesco a capire come funziona la parte in neretto che a me interessa,in quanto non c'è nessun richiamo allo script. riuscite a capire come funziona?
grazie
<script type="text/javascript" src="lib.js"></script>
<script type="text/javascript" src="popup.js"></script>
<script type="text/javascript" >
// redefining default features
var _POPUP_FEATURES = 'location=0,statusbar=0,menubar=0,width=190,height =140';
listen('load', window, function() {
listen('click', 'popup-listen', event_popup );
listen('click', 'popup-feat' , event_popup_features('location=0,statusbar=1,menub ar=1,width=190,height=300') );
mlisten('click', getElementsByClass('popup','a'), event_popup );
});
</script>
</head>
<body>
<ul>
[*]
<a
href="javascript:raw_popup('example_popup.html'); void(0)">
the wrong method.
test its accessibility downfalls</a>
[*]
<a
href="example_popup_nojs.html"
onclick="raw_popup('example_popup.html'); return false"
>
<code>raw_popup</code> using a different page for javascript disabled users
</a>
[*]
<a
href="example_popup.html"
onclick="link_popup(this); return false"
>
<code>link_popup</code>
</a>
[*]
<a
id="popup-listen"
href="example_popup.html" >
<code>event_popup</code>: using event listeners
</a>
[*]
<a
id="popup-feat"
href="example_popup.html" >
<code>event_popup_features</code>: specifying window features with event listeners
</a>
[*]
<a
href="example_popup.html?099" class="popup" target="a_popup_window">
named target windows
</a>
[*]
<a href="example_popup.html?009" class="popup" target="a_popup_window">
named target windows (same target)
</a>
[*]
<a
href="example_popup.html?909" class="popup" target="a_popup_window">
named target windows (same target)
</a>
[*]
<a
href="example_popup.html?990" class="popup" target="another_popup_window">
named target windows (different target)
</a>
[/list]