Flash Image Enhancer Support Product Page
This topic was archived
Use with templates or include
Asked 08 Mar 2009 19:02:14
1
has this question
08 Mar 2009 19:02:14 Denis Hoffmann posted:
Hi,how to use the image enhancer with include pages, templates (DW) or library?
Thanks
denis
Replies
Replied 11 Mar 2009 18:48:57
11 Mar 2009 18:48:57 Miroslav Zografski replied:
Hi Denis,
You must create a template with editable region in the head tag as well as in body, so the extension can put its script links there. If that is done you are free to add EImage Enhancer on new from template page.
Here an example page from template code:
Regards,
You must create a template with editable region in the head tag as well as in body, so the extension can put its script links there. If that is done you are free to add EImage Enhancer on new from template page.
Here an example page from template code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/untitled.dwt.php" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- InstanceBeginEditable name="doctitle" -->
<title>Untitled Document</title>
<!-- InstanceEndEditable -->
<!-- InstanceBeginEditable name="head" -->
<script src="ScriptLibrary/dmxFlashImageEnhancer.js" type="text/javascript"></script>
<!-- InstanceEndEditable -->
</head>
<body>
<!-- InstanceBeginEditable name="image" --><span id="dv_flashImage1">[img]myFile_flashLogo.jpg" width="100" height="100" /></span>
<script type="text/javascript">
// <![CDATA[
var flashImage1 = new dmxFlashImageEnhancer("myFile_flashLogo.jpg", "fl_flashImage1", "100", "100");
flashImage1.setScriptLibrary("ScriptLibrary");
flashImage1.write("dv_flashImage1");
// ]]>
</script> <!-- InstanceEndEditable -->
</body>
<!-- InstanceEnd --></html>
Regards,

