問候大家..有人可以指導我請就如何落實我的自定義mootools..in的Joomla 1.5自定義生成Mootools的實施中的Joomla 1.5
我有以下
php文件
-
這些文件
- promocode.php
CSS(我的js)
個- sexyalertbox.css
Javascript角
- mootools1.js
- mootools的-more.js
- sexyalertbox.v1.js
- sexyalertbox.packed.js
- jquery
我設法把PHP文件中的我的組件之一的Joomla這是ignite_gallery並顯示它像我想這是..但缺少我是唯一的事情就是我的MooTools是不工作根本不像當我從Joomla外的根文件運行它時。
我使用的Joomla 1.5.22和我的mootools的版本是1.2,我使用的rhuk_milkyway模板
的解決方案,我已經嘗試已經在我的PHP文件如下聲明這個代碼
<?php
$document =& JFactory::getDocument();
$document->addStyleSheet("/Joomla/media/system/css/sexyalertbox.css");
$document->addScript("/Joomla/media/system/js/mootools1.js");
$document->addScript("/Joomla/media/system/js/sexyalertbox.v1.js");
/////// i cut some lines and i just point out where i used the javascript////
if(!empty($promocode)){
$message= "<font color='#FF0000'></br> <b>Successfully Save!</b> </font> <script type='text/javascript'>
window.addEvent('domready', function() {
Sexy = new SexyAlertBox();
Sexy.info('<h1>Company Inc.</h1></br></br><b>Successfully Save!<b></br>');
});
</script>";
}
?>
我也嘗試用C把這些腳本:\ XAMPP \ htdocs中\的Joomla \模板\ rhuk_milkyway \的index.php
<head>
<jdoc:include type="head" />
<script type="text/javascript" src="<?php echo $this->baseurl ? >/media/system/js/mootools1.js"> </script>
<script type="text/javascript" src="<?php echo $this->baseurl ?>/media/system/js/sexyalertbox.v1.js"> </script>
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/media/system/css/sexyalertbox.css" type="text/css" />
</head>
突然沒有運氣..它仍然沒有工作..幫助我請..
任何建議或意見是備受追捧..上帝保佑,有一個愉快的一天..