Home
Getting Started
Solutions
AddThis Bookmark
Audio/Video
Bravenet Services
Custom Site
Forms: Allforms
Forms: Bravenet
Google Adsense
Google Analytics
Google Webmaster
Image Enlarging
Links in New Window
Redirect
Popup Generator
Site Search
Slideshow Generator
Webpage Translation
Tutorials
Tips
SE Optimization
Customizing OL
Help and How To
Downloads
Services
Office Live Video
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>

 

 

 In-Page Image Enlarging (3 state)

provided by http://thexbanners.com

 

1.   Copy the following code into notepad and modify the necessary parameters.  To prevent the image from being blurry or pixilated upload the image to the document gallery and don't enlarge the image more that what it's meant to be.  You can enlarge as many images on page as you want.

   

<img src="/Documents/image.jpg" style="width: 150px; height: 110px" class="enlarge[150,110,600,400,onmouseover]" />

   

Parameters

Image src= image scource

Width/Height= width and height of normal image in pixels

- Normal Width/Height= width and height of normal image in pixels, should be the same as widht/height above, write without "px".

-  Enlarged Width/Height= width and height or enlarged image in pixels, write without "px".

- Event handler= Onmouseover (mouseover to enlarge); Onclick (click to enlarge).

   

2.  Create a 1x1 table where you want the image in the Page Editor.

   

3.  Copy the modified code from notepad and paste it directly into the 1x1 table, you should see your image appear.

   

4.  Download the script file and upload it to the documents on your site.  Click Here to download.

 

5.  Paste the following code into the HTML module anywhere on the page editor.  Unless you change the name or upload the file somewhere other than your documents you don't need to modify the code.  You only have to do this once even if you have multiple images on a page.

 

<script type="text/javascript" src="/Documents/OSWC-ImageEnlarger.jsx" defer="defer">
/*
OSWC image enlarger made by
OSWC (Open Source Webmaster Center)
@ http://TheXbanners.com
*/

</script> 

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>