- 浏览: 38576 次
- 性别:
- 来自: 深圳
最新评论
文章列表
全局引进了jquery
文件路径:includes/application.php:dispatch函数内
$document->addScript("http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js");
$document->addScript(JURI::root(true)."/modules/mod_mainmenu/js/script_jquery.js");
加载Javascript代码:
$doc =& JFactory::getDocument();
$doc->addScript("http://www.example.com/js/myscript.js");
加载可见即所得编辑框
$editor=& JFactory::getEditor();
echo $editor->display( 'desc', '', '400', '400', '20', '20', false, $params);
$link = JRoute::_('index.php?option=com_content&view=article&id=69', false);
跳转的地址$link
$this->setRedirect($link, $msg);
实现跳转