Adding a popup form to best-ppc.info URL shortener script13 Nov
I am going to briefly explain you how to add a popup submit form to your destination URLs. You may quickly generate a customized form here:
http://www.phpform.org/
Just make sure you replace the paths to images with absolute URLs, according to the example provided below. Same for the form action that should point to the destination script on your server.
A sample form code (you may use it as it is just by adding your form action):
<!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”>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=UTF-8″>
<title>Get Our Latest Offers!</title>
<link rel=”stylesheet” type=”text/css” href=”http://best-ppc.info/form/view.css” media=”all”>
<script type=”text/javascript” src=”http://best-ppc.info/form/view.js”></script>
</head>
<body id=”main_body” >
<img id=”top” src=”http://best-ppc.info/form/top.png” alt=”">
<div id=”form_container”>
<h1><a>Get Our Latest Offers!</a></h1>
<form id=”form_289368″ class=”appnitro” method=”post” action=”">
<div class=”form_description”>
<h2>Get Our Latest Offers!</h2>
<p>Stay tuned and save money</p>
</div>
<ul >
<li id=”li_1″ >
<label class=”description” for=”element_1″>Name </label>
<span>
<input id=”element_1_1″ name= “element_1_1″ class=”element text” maxlength=”255″ size=”8″ value=”"/>
<label>First</label>
</span>
<span>
<input id=”element_1_2″ name= “element_1_2″ class=”element text” maxlength=”255″ size=”14″ value=”"/>
<label>Last</label>
</span>
</li> <li id=”li_2″ >
<label class=”description” for=”element_2″>Email </label>
<div>
<input id=”element_2″ name=”element_2″ class=”element text medium” type=”text” maxlength=”255″ value=”"/>
</div>
</li>
<li class=”buttons”>
<input type=”hidden” name=”form_id” value=”289368″ />
<input id=”saveForm” class=”button_text” type=”submit” name=”submit” value=”Submit” />
</li>
</ul>
</form>
<div id=”footer”>
Generated by <a href=”http://www.phpform.org”>pForm</a>
</div>
</div>
<img id=”bottom” src=”http://best-ppc.info/form/bottom.png” alt=”">
</body>
</html>
You may find a php script that inserts data into your database or mail it directly you you.
Please let me know if you need help in installing the script on your server or building your database, free advice provided
PART 2, AN iFRAMED POPUP THAT CANNOT BE BLOCKED
OK, you need 2 JS files:
jsone:
var ie=document.all var dom=document.getElementById var ns4=document.layers var bouncelimit=32 //(must be divisible byvar direction="up" function initbox(){ if (!dom&&!ie&&!ns4) return crossobj=(dom)?document.getElementById("dropin").style : ie? document.all.dropin : document.dropin scroll_top=(ie)? document.body.scrollTop : window.pageYOffset crossobj.top=scroll_top-250 crossobj.visibility=(dom||ie)? "visible" : "show" dropstart=setInterval("dropin()",50) } function bouncein(){ crossobj.top=parseInt(crossobj.top)-bouncelimit if (bouncelimit<0) bouncelimit+=8 bouncelimit=bouncelimit*-1 if (bouncelimit==0){ clearInterval(bouncestart) } } function dismissbox(){ if (window.bouncestart) clearInterval(bouncestart) crossobj.visibility="hidden" } //window.onload=initbox function getexpirydate( nodays){ var UTCstring; Today = new Date(); nomilli=Date.parse(Today); Today.setTime(nomilli+nodays*24*60*60*1000); UTCstring = Today.toUTCString(); return UTCstring; } function getcookie(cookiename) { var cookiestring=""+document.cookie; var index1=cookiestring.indexOf(cookiename); if (index1==-1 || cookiename=="") return ""; var index2=cookiestring.indexOf(';',index1); if (index2==-1) index2=cookiestring.length; return unescape(cookiestring.substring(index1+cookiename.length+1,index2)); } function setcookie(name,value,duration){ cookiestring=name+"="+escape(value)+";EXPIRES="+getexpirydate(duration); document.cookie=cookiestring; //document.write("Saved"); if(!getcookie(name)){ return false; } else{ return true; } } function date1(){ now = new Date(); then = new Date(" Jan 01 1970 00:00:00"); seconds=now-then/1000; month=1+now.getMonth(); day=now.getDate(); year=now.getFullYear(); document.write( day+"-"+month+"-"+year+""); } function checkout(){ if(getcookie('buy')=="yes") { return true; } else { window.location.href = "default.htm"; openIT('mc.htm',410,410,null,null,'mywinname01'); } };
and jstwo:
var ie=document.all
var dom = document.getElementById
var ns4 = document.layers
var bouncelimit = 32
var direction = "up"
function initbox(){
if (!dom&&!ie&&!ns4)
return
crossobj=(dom)?document.getElementById("dropin").style : ie? document.all.dropin : document.dropin
scroll_top=(ie)? document.body.scrollTop : window.pageYOffset
crossobj.top = scroll_top - 250
crossobj.visibility=(dom||ie)? "visible" : "show"
dropstart = setInterval("dropin()", 50)
}
function dropin(){
scroll_top=(ie)? document.body.scrollTop : window.pageYOffset
if (parseInt(crossobj.top)
The css file:
#inside {
text-align: right;
}
.clz {
color: #000000;
}
#dropin {
position: absolute;
left: 250px;
top: 200px;
width: 550px;
height: 340px;
visibility: hidden;
border: 3px solid #000080;
background-color: #FFFFFF;
}
and the example file:
<blockquote>
<pre>
<head>
<script language=”javascript” src=”DropPopOver.js”></script>
<script language=”javascript” src=”trigger.js”></script>
<link href=”style.css” rel=”stylesheet” type=”text/css” />
</head>
<body onLoad=”setTimeout(‘initbox()’,1500);”>
this is a test
<div id=”dropin”>
<font face=Arial size=1>
<div align=right>
<a href=# onClick=”dismissbox();return false”>[Close]</a></font>
</div>
<iframe src=”your_iframed_content.php” width=550 height=340 frameborder=0 scrolling=no></iframe>
</div>
</body>
</pre>
<blockquote>
Please let me know if there is anything you don’t get it, I will respond for sure.

