mootools effects in component view - Joomla! Forum - community, help and support
hi. sorry double posting this, seems more appropriate area question.
i'm developing first component scratch, , having problems using mootools accordion in view. can't make work, , don't know i'm missing.
here's code in default view template:
simple enough... seems should work, doesn't. doesn't @ all, or give error. can tell me i'm missing here can on this?
thanks in advance...
i'm developing first component scratch, , having problems using mootools accordion in view. can't make work, , don't know i'm missing.
here's code in default view template:
code: select all
<?php
// no direct access
defined( '_jexec' ) or die( 'restricted access' );
?>
<script type="text/javascript" src="includes/js/mootools.js"/>
<script language="javascript" type="text/javascript">
window.onload = function(){
var title = document.getelementbyclassname('boxtitle');
var body = document.getelementbyclassname('boxbody');
var accordioneffect = new fx.accordion(title, body, {});
};
</script>
<div id="cartitemdetail">
<?php $imagepath = 'components'.ds.'com_catalog'.ds.'images'.ds.'cartitemlayout'.ds; ?>
<img src="<?php echo $imagepath; ?>details.png"/>
<div id="accordion">
<h3 class="boxtitle">colors , sizes</h3>
<div class="boxbody">
<img src="<?php echo $imagepath; ?>colors.png"/>
</div>
<h3 class="boxtitle">art configuration</h3>
<div class="boxbody">
<img src="<?php echo $imagepath; ?>artconfig.png"/>
</div>
</div>
<img src="<?php echo $imagepath; ?>savebar.png"/>
</div>
simple enough... seems should work, doesn't. doesn't @ all, or give error. can tell me i'm missing here can on this?
thanks in advance...
ok, got working... hadn't closed
Comments
Post a Comment