The Joomla implementation component pops up a mode window method, joomlamodal
This article describes how to bring up a mode window in the Joomla implementation component. We will share this with you for your reference. The details are as follows:
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.