CPVLab Discount: Save $50!
  #1  
Old 02-24-2011, 06:54 PM
CPVDen Co-Owner
 
Join Date: Apr 2010
Location: Atlanta, GA
Posts: 804
Thanks: 41
Thanked 160 Times in 70 Posts
Default Welcome to the Landing Page Design forum!

We have listened to you and responded (sorry it took so long!). Here is a forum to post questions and examples regarding landing pages.

The most effective way to use this forum will be to post your landing pages and have us critique them. Don't be shy, post away!
__________________
$$$ $10 Off/Month For Life At Aff Playbook :: EXCLUSIVE to CPV Den $$$
Reply With Quote
  #2  
Old 04-15-2011, 01:37 PM
Member
 
Join Date: Apr 2011
Posts: 45
Thanks: 2
Thanked 16 Times in 5 Posts
Default Inserting my Php offer rotator code inside Resize Script

Hi - I've got a couple of LPs and I am rotating 6 offers on them - on my LPs i have the resize window script so that the offer opens up in full window when they click through from my LP.

However, I cant figure out how to put this piece of php code into the script because its not a php/html page as such - its the offer rotating code - this is it: <?php print getOffer(0); ?>

-------------------------------
<script language="JavaScript">
<!--
function movesizeandopen()
{
self.moveTo(0,0)
self.resizeTo(screen.width,screen.height)
window.location.href = "";
}
-->
</script>
<a href="javascript:movesizeandopen();"><img src="images/image.gif" border="0" alt="Click Here" width="745" height="360" /></a>
-------------------------------

I tried putting this code between the quotes on the window.location.href line but that doesn't work as that needs a specific URL, so I need to figure out how to do this, or do it some other way - all help appreciated.
Reply With Quote
  #3  
Old 04-15-2011, 01:48 PM
CPVDen Co-Owner
 
Join Date: Apr 2010
Location: hhi
Posts: 863
Thanks: 69
Thanked 63 Times in 50 Posts
Default

rename the file to asfsdaf.php

then try something like this....

<script language="JavaScript">
<!--
function movesizeandopen()
{
self.moveTo(0,0)
self.resizeTo(screen.width,screen.height)
window.location.href = "<?=getOffer(0);?>";
}
-->
</script>
<a href="javascript:movesizeandopen();"><img src="images/image.gif" border="0" alt="Click Here" width="745" height="360" /></a>

not sure what your rotator spits out, but the solution is going to be along the lines of this most likely.

- lucas
Reply With Quote
  #4  
Old 04-15-2011, 02:45 PM
Member
 
Join Date: Apr 2011
Posts: 45
Thanks: 2
Thanked 16 Times in 5 Posts
Default

hi lucas - my rotator spits out the code <?php print getOffer(0); ?> and I cant change this, so I need to incorporate this code somehow.

[btw, I dont know what you mean by renaming the file - what file are you talking about? as mentioned above i need to incorporate the php code above - i'm not a php or javascript expert obviously so maybe i'm just not getting what you mean here]?

and the only change you made to the code from what i can see is changing
<?php print getOffer(0); ?> to <?=getOffer(0);?> - Sorry if this sounds simple to you, but unfortunately, its not to me :-)

Maybe you could give me an example of how you do this with your rotator? Or with Prosper? (I dont use prosper at the moment, but may do in the future; also thinking of getting CPV Lab when i've made some better money).
Reply With Quote
  #5  
Old 04-18-2011, 11:18 AM
Member
 
Join Date: Apr 2011
Posts: 45
Thanks: 2
Thanked 16 Times in 5 Posts
Default

any other ideas for incorporating this php code into the resize script - perhaps someone knows an alternative resize script that this php code can be inserted into? or simply tell me how you guys do this

Last edited by seanchai; 04-18-2011 at 03:20 PM.
Reply With Quote
  #6  
Old 02-14-2018, 06:39 PM
Banned
 
Join Date: Jan 2018
Location: Switzerland
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Lindawex Send a message via Skype™ to Lindawex
Default Welcome to the Landing Page Design forum

Landing page is the page that you visit by clicking a link or an image from other websites. It can be either your home page or any inner page for that matter.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 05:08 AM.


Search Engine Optimization by vBSEO 3.6.0