<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Stone Studio&#187; popup window Archives</title>
	<atom:link href="http://wei-jiang.com/tag/popup-window/feed" rel="self" type="application/rss+xml" />
	<link>http://wei-jiang.com</link>
	<description></description>
	<lastBuildDate>Wed, 28 Apr 2010 08:35:07 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>An example of design a Popup Window in Joomla!</title>
		<link>http://wei-jiang.com/programming/an-example-of-design-a-popup-window-in-joomla</link>
		<comments>http://wei-jiang.com/programming/an-example-of-design-a-popup-window-in-joomla#comments</comments>
		<pubDate>Mon, 27 Jul 2009 21:44:09 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[popup window]]></category>

		<guid isPermaLink="false">http://wei-jiang.com/?p=396</guid>
		<description><![CDATA[写一个用于Joomla里的(超级简单的)pop up window程序。
Like the &#8220;lightbox&#8221; effect
[cc lang="php" line_numbers="true"]
defined( &#8216;_JEXEC&#8217; ) or die( &#8216;Restricted access&#8217; );
jimport(&#8217;joomla.application.component.controller&#8217;);
class JsController extends JController {
function modalBox()	{
JHTML::_(&#8217;behavior.modal&#8217;, &#8216;a.popup&#8217;);
?&#62;
Read the daily menu.
}
function insideModal()
{
?&#62;
Today&#8217;s Menu

Crispy chicken nuggets with ginger dressing
Swordfish in bean curd sauce
Stir-fried vegetables over white rice

}
}
$controller = new JsController();
$controller-&#62;execute(JRequest::getCmd(&#8217;task&#8217;));
[/cc]
Let&#8217;s try it by going to:
/index.php?option=com_js&#38;task=modalBox


如果我们修改一下 modalBox function,
[cc lang="php" line_numbers="true"]
function modalBox()	{
$params = array(
&#8217;size&#8217; =&#62; [...]]]></description>
		<wfw:commentRss>http://wei-jiang.com/programming/an-example-of-design-a-popup-window-in-joomla/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
