Lead: http://www.maycode.com/index.php/hotspot/39-joomla-inspect/376-joomla-mootools.html
In the previous article, I mentioned how to bring up a window in the extended component. However, the window popped up in the popupwindow is not in the mode. I studied how to send an upload image on the background interface, finally, we figured out that the most critical JS is in/Media/system/JS/modal. JS. Either of the following methods can be implemented: Modify the default. php.
Method 1:
<? Php jhtml: _ ('behavior. modal', 'a. modal');?>
<A rel = "{handler: 'iframe', size: {X: 570, Y: 400}" href = "/index. PHP "class =" Modal "> View </a>
This is easy to implement. Other things are joomla! All of them help you deal with it. Happy!
Method 2:
<SCRIPT src = "/Media/system/JS/modal. js"> </SCRIPT>
<LINK rel = "stylesheet" href = "/Media/system/CSS/modal.css" type = "text/CSS"/>
<A id = "aatest" onclick = "F ()"> View </a>
<SCRIPT>
Function f (){
Squeezebox. fromelement (null, {handler: 'iframe', size: {X: 570, Y: 400}, href: '/index. php '});
};
</SCRIPT>
Generally, the first method is better. If you want to study how modal. JS is implemented, the second method is an example of getting started.