http://www.phatfusion.net/plugins/multibox/
I'd like to use that to display HTML elements on my product pages. But I can't get it to work...
I have the needed files placed in includes/modules/pages/product_info
- jscript_multibox.js
- jscript_Assets.js
- jscript_overlay.js
- jscript_mootools.js
- jscript_multibox.php
the jscript_multibox.php file contains the following:
Code:
<script type="text/javascript">
//<![CDATA[
window.addEvent('domready', function(){
var box = new multiBox('mb', {
overlay: new overlay()
});
});
//]]>
</script>
and in my product description, I have a "read more" link, like that:
HTML Code:
<a href="http://mystore.com/store/index.php?main_page=product_info&cPath=2&products_id=6#htmlElement" rel="type:element" class="mb" title="Read more...">read more</a>
<div id="htmlElement">
<p>This is a test</p>
</div>
What happens is that the div gets displayed inline ("normally") and no box magic is happening at all.
In case someone gets tickled by the crazy href link above, well, I tried just a href="#htmlElement" but when clicked it throws you back to the homepage.
Any suggestions guys?