Unable to open SWF file in CeraBox

22 views
Skip to first unread message

Daniel Davis

unread,
Jun 10, 2013, 4:59:26 PM6/10/13
to cer...@googlegroups.com
If anyone can help me spot what I've got wrong here I would really appreciate it.
 
 
<head>
  <link rel="stylesheet" href="style/cerabox.css" media="screen" />
  <script type="text/javascript" src="mootools/mootools-core-1.4.5-full-compat.js"></script>
  <script type="text/javascript"  src="mootools/mootools-more-1.4.0.1-assets.js"></script>
  <script type="text/javascript"  src="cerabox.min.js"></script>
 </head>

<body>
<script type="text/javascript">
 window.addEvent('domready', function () {
 // Add items to the CeraBox
$$('button-holder clearfix, a').cerabox({
  group: false,
  displayTitle: false,
   swf: {
   method: 'post',
   data: 'mydata=test&q=more&vars=true'
  }
 });
</script>

Create the elements you want to add to the CeraBox.

<div class="gallery">

 <div class="button-holder clearfix">
  <a id="mySwfButton" data-type="swf" href="http://www.adobe.com/jp/events/cs3_web_edition_tour/swfs/perform.swf" class="internal swf" title="LingaDore Magazine">Magazine</a>
 </div>

</div>

 

 

 
 
 

 

 

 

 

HTMLPage3.htm

Daniel Davis

unread,
Jun 10, 2013, 5:02:04 PM6/10/13
to cer...@googlegroups.com
...I forgot to add that when I click on the link the SWF opens - but in a new page - not in a CeraBox.

Cera media

unread,
Jun 12, 2013, 3:46:05 AM6/12/13
to cer...@googlegroups.com
Hi Daniel,

It seems to me you got the selector part wrong. $$('button-holder clearfix, a') should be $$('.button-holder a') , hope this helps you out. Good luck!

Cheers


Op maandag 10 juni 2013 22:59:26 UTC+2 schreef Daniel Davis het volgende:
Reply all
Reply to author
Forward
0 new messages