Home
Getting Started
Solutions
Tutorials
Tips
SE Optimization
Customizing OL
Help and How To
Downloads
Services
Frequently Asked Question
Contact Us
 

Simple In-page Image Enlarging (3 state)

1.  Copy the following code into notepad and make the necessary changes.

 

<img src="/images/image.jpg" height="100" width="100" onmouseover="this.src='/images/enlargedimage.jpg';
this.height=
300;this.width=300" onmouseout="this.src='/images/image.jpg
';
this.height=
100;this.width=78" />

 

Parameters

- Image: src normalsrc enlarged, src normal

- height/width: height/width normal, height/width enlarged, height/width normal

- Eventhandler: to enlarge, to return, possibly values: onmouseover, ondblclick, onclick, onmousedown, onmouseup, onmouseout.

 

2.  Create a custom footer module and remove everything from and paste the following code below into the custom footer module.

 

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

<xsl:output method="html" />

<xsl:template match="/">

 

</xsl:template>

</xsl:stylesheet>

 

3.  Paste the modified from notepad into the custom footer module between the <template> tags.  

 

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

<xsl:output method="html" />

<xsl:template match="/">

<img src="/images/image.jpg" height="100" width="100" onmouseover="this.src='/images/enlargedimage.jpg';
this.height=300;this.width=300" onmouseout="this.src='/images/image.jpg';
this.height=100;this.width=78" />
 

</xsl:template>

</xsl:stylesheet>

 

 

Popup Image Enlarging

Provided by http://thexbanners.com

  

Good for displaying large images.
1. Upload your image to the Image Gallery or for better quality the documents.

    
2. Paste the following script into the HTML module modifying necessary parameters.

  

Parameters

Image src= image source

Width/Height= height and width of thumbnail

Enlarged Width/Height= Height and Widht of image in popup.

 
<script type="text/javascript">
/*********** DON'T EDIT ANYTHING BELOW - Only Advanced Users ************/
function enlargeImage(Url,width,height){
var enlarged = new Image(); enlarged.src = ''+Url+''
var prevW = window.open('"","newWin","width="+width+",height="+height+",top=140,left=200,toolbar=0,'
+'location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0"');
 
prevW.document.write('<html><head><title>Preview Image</title></head><body><img alt="Enlarged" style="border: 0px; padding: 0px;" src="'+Url+'" width="'+width+ '" height="'+height+'" /></body></html>');
}

</script>

<!-- Begin Editing Part. Just specify the enlarged image width, height & URL. -->

<!-- Using The enlarged image as thumbnail -->

<a href="javascript:">

<img alt="Click To Enlarge" src="/images/imagejpg" width="120px" height="100px" style="border: 0px" onclick="enlargeImage(this.src,'800','600');" />

</a>