Cerabox with advanced mode... box.addItems is not a function

46 views
Skip to first unread message

Criscd

unread,
Oct 2, 2012, 3:42:33 AM10/2/12
to cer...@googlegroups.com

I try with the code below...
but ffx debug console say
TypeError: box.addItems is not a function


...and "all_from_cerabox.js"
is this link in cerabox.net:
<script type="text/javascript" src="/download/js/mootools/mootools-core-1.4.5+mootools/mootools-more-1.4.0.1-assets+cerabox/cerabox.min+modernizr/modernizr-1.6.min?137"></script>

Where i wrong?
Thanks


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
<head profile="http://gmpg.org/xfn/11">

   <script type="text/javascript" src="/ew/ewmt/cerabox_r137/tmp/all_from_cerabox.js"></script>
   <link rel="stylesheet" href="/ew/ewmt/cerabox_r137/style/cerabox.css" media="screen" />

<script type="text/javascript">

var box = new CeraBox();

window.addEvent('domready', function(){  

   box.addItems('#example1 a', {  
      animation: 'ease',  
      loaderAtItem: true,  
      group: false  
   });

});
</script>
</head>
<body>

<div id="example1"> <a class="cerabox" href="/ew/ewmt/img/mountains.jpg"> <img src="/ew/ewmt/img/img2.jpg" /> </a> </div> </body> </html>

Reply all
Reply to author
Forward
0 new messages