forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 plugins => Topic started by: donsenilo on June 16, 2014, 08:30:45 am

Title: iScroll on an external site ?
Post by: donsenilo on June 16, 2014, 08:30:45 am
hello

iScroll 2.1 works perfectly on my site http://www.mediahosting.at/cpg15x/index.php (http://www.mediahosting.at/cpg15x/index.php), but my Question is:
is it possible to use it on an external website (maybe inside an iFrame) ?

Thank you !
Title: Re: iScroll on an external site ?
Post by: flapane on February 12, 2015, 10:09:51 pm
Maybe you're still looking for a solution, or maybe others are, so it's worth answering after so many months.
You can use "flow link", which is an-iScroll-like old plugin that can run standalone.
Indeed, I've been using it on my site for years.

Unzip root.zip in the root of cpg.

Then, put this code wherever you want, and change www.yourwebsite.com according to your website address:
Code: [Select]
<script type="text/javascript">
if (AC_FL_RunContent == 0) {
alert("This page requires AC_RunActiveContent.js.");
} else {
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
'width', '100%', <!-- era 560px -->
'height', '260',
'src', 'flow_link',
            'FlashVars', 'xmlPath=http://www.yourwebsite.com/gallery/flow_link.php', <!--Absolute path to 'flow.php'-->
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'transparent',
'devicefont', 'false',
'id', 'flow_link',
'bgcolor', '#F7F6F2',
'name', 'flow_link',
'menu', 'true',
'allowFullScreen', 'false',
'allowScriptAccess','sameDomain',
'movie', '/gallery/flow_link',
'salign', ''
); //end AC code
}
</script>