Try the Demo

Magento

eCommerce Software for Online Growth

Magento Forum

Our new hosted solution for small & emerging businesses
   
Add Page Peel ad in Magento home page - How to ? 
 
simpass
Member
 
Total Posts:  34
Joined:  2008-05-09
Bangkok
 

Thanks to all for reading. I am using Morern theme ..I just love it and I think it should be the default theme.

Anyway I just found a page peel ad here

http://www.donalyza.com/how-to-add-a-free-page-peel-corner-ad-script-in-wordpress-theme/

Download link:

http://www.ziddu.com/download/1826590/pagepeel.zip.html

Basically have to load a javascript inside the body tag otherwise it would not work and the can be located in any directory which can be added in JavaScript ..for example:

ONLY EDIT THE SELECTIONS WITH A "//" NOTE AFTER IT

var pagepeel = new Object();

pagepeel.ad_url escape('Type your link here'); // Link Address when ad is clicked on

pagepeel.small_path './pagepeel/small.swf'// Path where you placed the small.swf
pagepeel.small_image escape('./pagepeel/images/small.jpg'); // Small Image before hover (.jpg, .gif, .png, .swf) - 75X75
pagepeel.small_width '100';
pagepeel.small_height '100';
pagepeel.small_params 'ico=' pagepeel.small_image;

pagepeel.big_path './pagepeel/big.swf'// Path where you placed the big.swf
pagepeel.big_image escape('./pagepeel/images/big.jpg'); // Large Image after hover (.jpg, .gif, .png, .swf) - 500X500
pagepeel.big_width '650';
pagepeel.big_height '650';
pagepeel.big_params 'big=' pagepeel.big_image '&ad;_url=' pagepeel.ad_url;

function 
sizeup987(){
    document
.getElementById('PagePeelBig').style.top '0px';
    
document.getElementById('PagePeelSmall').style.top '-1000px';
}

function sizedown987(){
    document
.getElementById("PagePeelSmall").style.top "0px";
    
document.getElementById("PagePeelBig").style.top "-1000px";
}

pagepeel
.putObjects = function () {
// <PagePeelSmall>
[removed]('<div id="PagePeelSmall" style="position:absolute;width:'pagepeel.small_width +'px;height:'pagepeel.small_height +'px;z-index:9999;right:0px;top:0px;">');
// object
[removed]('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
[removed](' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"');
[removed](' id="PagePeelSmallObject" width="'+pagepeel.small_width+'" height="'+pagepeel.small_height+'">');
// object params
[removed](' <param name="allowScriptAccess" value="always"/> ');
[removed](' <param name="movie" value="'pagepeel.small_path +'?'pagepeel.small_params +'"/>');
[removed](' <param name="wmode" value="transparent" />');
[removed](' <param name="quality" value="high" /> ');
[removed](' <param name="FlashVars" value="'+pagepeel.small_params+'"/>');
// embed
[removed]('<embed src="'pagepeel.small_path '?' pagepeel.small_params +'" name="PagePeelSmallObject" wmode="transparent" quality="high" width="'pagepeel.small_width +'" height="'pagepeel.small_height +'" flashvars="'pagepeel.small_params +'" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
[removed]('</object></div>');
[removed]('</script>');
// </PagePeelSmall>
// <PagePeelBig>
[removed]('<div id="PagePeelBig" style="position:absolute;width:'pagepeel.big_width +'px;height:'pagepeel.big_height +'px;z-index:9999;right:0px;top:0px;">');
// object
[removed]('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
[removed](' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"');
[removed](' id="PagePeelBigObject" width="'pagepeel.big_width +'" height="'pagepeel.big_height +'">');
// object params
[removed](' <param name="allowScriptAccess" value="always"/> ');
[removed](' <param name="movie" value="'pagepeel.big_path +'?'pagepeel.big_params +'"/>');
[removed](' <param name="wmode" value="transparent"/>');
[removed](' <param name="quality" value="high" /> ');
[removed](' <param name="FlashVars" value="'pagepeel.big_params +'"/>');
// embed
[removed]('<embed src="'pagepeel.big_path '?' pagepeel.big_params +'" id="PagePeelBigEmbed" name="PagePeelBigObject" wmode="transparent" quality="high" width="'pagepeel.big_width +'" height="'pagepeel.big_height +'" flashvars="'pagepeel.big_params +'" swliveconnect="true" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
[removed]('</object></div>');
// </PagePeelBig>
setTimeout('document.getElementById("PagePeelBig").style.top = "-1000px";',1000);
}
pagepeel
.putObjects();

How do I do that ? Please help

Thanks

Roy

 
Magento Community Magento Community
Magento Community
Magento Community
 
CirTap
Jr. Member
 
Avatar
Total Posts:  30
Joined:  2008-02-16
 

Hi,
copy the file into the /js/ root folder
open “modern/layout/page.xml”
locate <block type="page/html_head" name="head" as="head"> (you should find that easily smile
and add another
<action method="addJs"> ... </action>
where you think it’s appropriate.
save and done.

CirTap

 Signature 

You can have programs written fast, well, and cheap, but you only get to pick 2 ...

 
Magento Community Magento Community
Magento Community
Magento Community
 
jara
Member
 
Total Posts:  38
Joined:  2009-06-03
 

Hi CirTap,

Thanks, I followed your steps,it works great.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
 
© Copyright 2012 Magento Inc.
Privacy Policy|Terms of Service
Magento Community Count
713669 users|775 users currently online|495354 forum posts