Is there a JavaScript which will insert a variable into a URL having a placeholder for the variable?

As you might be able to tell from my question, I am not a programmer. I'm trying to put together a page in which "xxxx" would be the ID number of affiliates. I'm putting together promotional material in which there are links to images. In order for the affiliates to get credit for any sales, they need to have their affiliate number in the right place in the link.

I've attached an example of a software package output that accomplishes this, but for reasons way too long to get into, I'm going to need to manually enter the same URL (including the "xxxx" that will be different for each affiliate), on all resource pages. I would like to have the ability for the affiliate to enter their specific ID number (corresponding to the "xxxx" of the URL) into some type of initial master form input; and then the JavaScript would take all of the URL's that have "xxxx" in them, and substitute the affiliate ID number for the x's.

I don't know if there is a JavaScript that will accomplish this but I thought I would ask in case somebody knows of one, or something like it. Thank you for your help


expert-exchange.jpg
photoman11Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

leakim971PluritechnicianCommented:
    function gotoURL() {
        document.getElementById("<%= AffiliateLink.ClientID %>").value = "http://" + document.getElementById("<%= Textbox_ClickBank.ClientID %>").value + ".photoman1.hop.clickbank.net";
        return false;
    }

Open in new window


with the textbox :

Clickbank ID : <asp:TextBox runat="server" ID="Textbox_ClickBank" ></asp:TextBox><br />
Your affiliate link : <asp:TextBox runat="server" ID="AffiliateLink" Width="320px"></asp:TextBox><br />
<asp:Button runat="server" ID="Button1" onClientClick="return gotoURL();" Text="Submit" ></asp:Button>

Open in new window


Full page :
<%@ Page Title="Page d'accueil" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
<script language="javascript" type="text/javascript">
    function gotoURL() {
        document.getElementById("<%= AffiliateLink.ClientID %>").value = "http://" + document.getElementById("<%= Textbox_ClickBank.ClientID %>").value + ".photoman1.hop.clickbank.net";
        return false;
    }
</script>
</asp:Content>
<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="MainContent">
Clickbank ID : <asp:TextBox runat="server" ID="Textbox_ClickBank" ></asp:TextBox><br />
Your affiliate link : <asp:TextBox runat="server" ID="AffiliateLink" Width="320px"></asp:TextBox><br />
<asp:Button runat="server" ID="Button1" onClientClick="return gotoURL();" Text="Submit" ></asp:Button>
</asp:Content>

Open in new window

0
leakim971PluritechnicianCommented:
0
photoman11Author Commented:
leakim971,

Now I think I know what the first monkeys on earth felt like when they saw fire for the first time!

Unfortunately, the monkeys were better at programming than I am. I tried several different variations with the code you provided (all I did was copy and paste) and was unable to achieve anything that looked remotely like the video you supplied or the screenshot I supplied.

Part of the problem is that I am sure all the pieces are there, but not only don't I know the right order to put them together in, I am also not sure if I need to treat it as something other than HTML code. For example, the part the code you titled "full-page," - I loaded that in an HTML editor and did not see anything that worked like your video.

Obviously I am missing a lot here so, can you explain it as though I were a six-year-old aborigine (no offense to the aborigines in the audience)? Thanks for everything.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

leakim971PluritechnicianCommented:
I build the test page with the free Microsoft Visual Web Developer 2010 Express

Anyway, in your page you should have a head section, I mean a part starting by :
<head>

Open in new window

and finishing by :
</head>

Open in new window

Put the following inside this section :
<script language="javascript" type="text/javascript">
    function gotoURL() {
        document.getElementById("AffiliateLink").value = "http://" + document.getElementById("Textbox_ClickBank").value + ".photoman1.hop.clickbank.net";
        return false;
    }
</script>

Open in new window


Look like you did not use asp.net to build your page, sorry, it certainly confusing you.

So I see, two textboxes in your page : ClickBankID and the AffiliateLink
In my code the ID of theses two textboxes is respectively : AffiliateLink and Textbox_ClickBank

Check what we call ID in the following :
<input type="text" ID="AffiliateLink" />
<input type="text" ID="Textbox_ClickBank" />
You need to replace theses references with your own references in the javascript code OR update (set ?) the ID of your two textboxes

Good luck and have fun!
0
photoman11Author Commented:
I must admit that I chuckled a little at your "Good luck and have fun!" at the end. The mental image that came into my head was passing a death row inmate as he is walking to the gallows, and saying: "have a nice day."

After trying for an hour to get what I can only imagine is a relatively easy coding exercise for someone who knows what they're doing, before I throw in the towel, I'm enclosing an HTML document which has been created using the software I mentioned (in the bottom section of the page).

Before you ask, I cannot use the code as it is generated because of other issues which go way past the scope of this post. Since I have about a dozen pages to do, if it will not take much time (and I am truly clueless as to how much is involved, so if it's a lot – don't bother doing it): could you take any part of the attached HTML document and substitute your code where it should go? I could then use it as a template for everything I have to do (I hope).

And if you see an obvious way to fix the layout of the 2nd to the last banner, I would be interested in knowing what it is.

Sorry for the twists and turns of this one.
baby-masterpieces-affiliate-reso.html
0
leakim971PluritechnicianCommented:
OK Sir, the following code work fine for me, enjoy :

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Baby Masterpieces Affiliate Promotion Resources</title>
<!-- BEGINNING OF CSS -->
<style type="text/css">
#addSiteTo {
width:90%;
font-size:85%;
text-align:center;
padding:8px 0;
border:1px solid #000;
margin:12px auto;
background-color: #FFFFFF;
}

#addSiteTo p {
padding: 10px;
margin:0;
}

#addSiteTo img {
border:0;
padding: 10px;
}

#addSiteTo .questionMark {this is
 padding:10;
 margin:1px auto;
 text-align:center;
 width:75%;
 }

 #addSiteTo .questionMark img {
 margin:0 4px 4px 0;
 padding:10;
 }
</style>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=iso-8859-1">
<META Name="Description" Content="test">
<META Name="Keywords" Content="test">
<link href="/support-files/classic_footer.css" type="text/css" rel="stylesheet">
<meta name="SKYPE_TOOLBAR" content="SKYPE_TOOLBAR_PARSER_COMPATIBLE" />



<script language="JavaScript" type="text/javascript">
<!--

function MM_swapImgRestore() 
{
    var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() 
{
    var d=document; 
    if(d.images)
    { 
	if(!d.MM_p) d.MM_p=new Array();
	var i,j=d.MM_p.length,a=MM_preloadImages.arguments; 
	for(i=0; i<a.length; i++)
	    if (a[i].indexOf("#")!=0)
	    { 
		d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];
	    }
    }
}

function MM_swapImage() 
{
    var i,j=0,x,a=MM_swapImage.arguments; 
    document.MM_sr=new Array; 
    for(i=0;i<(a.length-2);i+=3)
	if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_openBrWindow(theURL,winName,features) 
{
    window.open(theURL,winName,features);
}

function MM_findObj(n, d) 
{
    var p,i,x;  
    if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) 
    {
	d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);
    }
    if(!(x=d[n])&&d.all) 
	x=d.all[n]; 
    for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
    for(i=0;!x&&d.layers&&i<d.layers.length;i++) 
	x=MM_findObj(n,d.layers[i].document);
    if(!x && d.getElementById) 
	x=d.getElementById(n); 
    return x;
			
}
//-->

</script>

<script language="JavaScript" type="text/JavaScript">
<!--
function MM_displayStatusMsg(msgStr) { //v1.0
  status=msgStr;
  document.MM_returnValue = true;
}
//-->
</script>
<script language="javascript" type="text/javascript">
    function createAffiliateLink() {
        document.getElementsByName("affiliatelinktext")[0].value = "http://" + document.getElementById("custom_clickbank").value + ".photoman1.hop.clickbank.net";
        return false;
    }
</script>


<style type="text/css" media="all">
body, td
{
	font:13px Verdana, Geneva, Arial, Helvetica, sans-serif;
	color:#000;
	margin: 10px;
	
	}
</style>
</head>
<!-- END OF CSS AND THE "HEAD" SECTION -->

												<!-- background color -->
<body style="background:#29CEF5;">

<!--<table width="725" border="0" cellspacing="0" cellpadding="0" align="Center">-->


<table width="880px"  style="border:2px solid #008083; background-color:#FFF;" cellspacing="0" cellpadding="0" align="Center">
<tr>
<td colspan="2">
<center>

<img style=" margin-top:0px;" src="http://www.photoebooks4u.com/ClickBank/img/Header_affiliate-resources-878.jpg" border="0">
</center>
</td>
</tr>

<tr>


<td valign="top" >
<table width="100%" border="0" style="  cellpadding="8" cellspacing="0">
<tr>

						<!-- The text before the tools -up 2 line #209 – this is the introduction and title of the e-book being promoted -->


<td style="padding:0 80px 0 80px;;">						
<p class="MsoNormal" align="center">
<font face="Arial"><font face="Arial">&nbsp;</font></font></p>

<p class="MsoNormal" style="text-align: left;" align="center"><font face="Arial"> <font face="Arial"><center><h3>Welcome to the "Digital Photography Tips" Affiliate Resources Page</h3><h3>For</h3>
<h1><font color="#0000CC"><i>Oh Baby! Turning Memories into Masterpieces</i></font></h1>
</center>
</font></font></p>
							<!-- THE END OF THE INTRODUCTION AND E-BOOK NAME SECTION – JUST BEFORE THE DESCRIPTION OF THE e-book PRODUCT -->

<br />
<br />
														<!-- START OF FIRST PARAGRAPH -->
														
<p class="MsoNormal" style="text-align: left; align:center; margin-top:-20px; "><font face="Arial"> <font face="Arial">On this page is EVERYTHING you need to maximize your profits and create an impressive revenue stream by selling <b><font color="#0000CC">Oh Baby! Turning Memories into Masterpieces</font></b>.</font></font></p>

<p class="MsoNormal" style="text-align: left;" align="center"><font face="Arial"> <font face="Arial">Even though we are constantly adding new affiliate promotional resources, you have everything you need to begin making money immediately. </font></font></p>

				<!-- THE START OF 4 IMPORTANT POINTS (THIS COULD BE 3 OR WHATEVER) -->

<p class="MsoNormal" style="text-align: left;" align="center"><font face="Arial"> <b>Before we get started, here's 3 important points about <font color="#990000">Taking Terrific Baby Pictures. </font></b></font></p>
<blockquote>
<p class="MsoNormal" style="text-align: left;" align="center"><font face="Arial"> <font face="Arial"><ol>
 <li><span style="background-color: #FFFF00"><b>The market for this product is HUGE!</b></span> Almost every parent, grandparent, and relative has a digital camera (and/or cell phone)... and they are constantly taking pictures of their babies. And if there's one subject people want to photograph well, it's their babies.<br><br>
 <li><span style="background-color: #FFFF00"><b>Customers love this e-book and the refund rate is significantly less than 00.6%.</b></span> <br><br>
 <li><span style="background-color: #FFFF00"><b>You get 60% of the purchase price</b></span> (after ClickBank takes their piece). And  our Marketing Department's TOP GOAL is to make it as easy as possible for you to make money with our products. </ol>     </font></font></p>

</blockquote>
									<!-- THE END OF THE SECTION WITH THE POINTS -->
									

<blockquote>
<p class="MsoNormal" style="text-align: left;" align="center"><font face="Arial">&nbsp;</font></p>
<p class="MsoNormal" align="center"><font face="Arial"><b>
<font face="Arial" size="5">Here's How It Works ...</font></b></font></p>

</blockquote>


<blockquote>
<p class="MsoNormal" style="text-align: left;" align="center"><font face="Arial"> <font face="Arial">If you have registered with ClickBank and already have an affiliate ID, you are good to go. If you haven't, it is pretty painless, but you do need to get it out of the way. Your affiliate ID number is what "connects you" to the products you are promoting, so you will get paid.</font></font></p>
</blockquote>


<blockquote>
<p align="left"><font face="Arial"><font face="Arial">To sign up with ClickBank <b>FOR THE FIRST TIME</b> (and get your affiliate ID number): 
<!-- This is what Adrian suggested because standard one goes to a crappy page -->

<a href=http://www.clickbank.com/signup.html?reseller=photoman1 target='_new'><font color="#0000ff"><u>Sign up Here</u></font></a>.
 <br />
<br />
If you have any questions about Clickbank, you can review their 
<A href="http://www.clickbank.com/help/affiliate-help/" target="_blank"><span style="font-weight: 400;"> <font color="#0000ff">affiliate FAQs here</font></a>.
</blockquote> 

											<!-- GIVE A SUMMARY OF THE ACTUAL PRODUCT, PREFERABLY IN BULLETS/CHECKMARKS OF THE TABLE WITH THE CHECKMARK TO THE LEFT AND THE CONTENT OF THE RIGHT.-->

<!-- CHECK THE ACTUAL SALES PAGE FOR APPROPRIATE INFO. YOU DON'T NEED TO MAKE IT REAL LONG, JUST **HAVE A LINK TO THE ENTIRE SALES PAGE**, POSSIBLY ONE PHOTO. (BUT THAT WILL NEED TO BE DETERMINED) --> 
<br /><br />


<center><hr size="1" width="100%" align="Center" ></center>
<blockquote>
<p class="MsoNormal" style="text-align: left;" align="center"><font face="Arial">&nbsp;</font></p>
<p class="MsoNormal" align="center"><font face="Arial"><b>
<font face="Arial"><center><H3>Overview of: <font color="#0000CC"><i>Oh Baby! Turning Memories into Masterpieces</i></font></b></font></H3></center></p>
</blockquote>
<center><img src ="http://www.photoebooks4u.com/ClickBank/Oh_Baby_Book/images/StaticBabyBanner-small.jpg" align ="Center" title="Baby masterpieces"  alt="baby masterpieces"  border="2"></center>
<p class="MsoNormal" style="text-align: left;" align="center"><font face="Arial"> <font face="Arial">The sad truth of the matter is... when it comes to preserving their baby's memories, almost all parents are photographically unprepared. <b>Oh Baby! Turning Memories into Masterpieces</b> addresses AND SOLVES a huge problem faced by almost everyone who wants to take baby pictures... <br />
<br />
<b><i>How do you capture all those precious moments of your baby's first year when you can't afford a professional photographer all the time, but you don't know what to do yourself?</i></b>
<br />
<br />
With 86 pages that include over 475 sample photos, tips, guidelines, ideas, and posing secrets, <i>Oh Baby! Turning Memories into Masterpieces</i> explains (and shows) what is needed in order to capture the best possible baby pictures. <br />
<br />
Explained is ...
<blockquote>
<table border="0" cellpadding="0" cellspacing="3" width="95%">
  <tbody>
    
    <tr align="left">
      <td valign="center"><img src="http://www.photoebooks4u.com/ClickBank/Blink-Eradication-System/images/red-disk.png" alt="checkmark-box" border="0" align="left"></td>
      <td>&nbsp;&nbsp;</td>
      <td valign="center"><p><strong>How to avoid "first-time parent" mistakes</strong> that result in ruined photo opportunities that can never be re-captured</p></td>
    </tr>
    <tr align="left">
      <td valign="center"><img src="http://www.photoebooks4u.com/ClickBank/Blink-Eradication-System/images/red-disk.png" alt="checkmark-box" alt="checkmark- box" border="0" align="left"></td>
      <td>&nbsp;&nbsp;</td>
      <td valign="center"><p><strong>Where to find photographic gold</strong> in everyday activities such as sleeping and eating</p></td>
    </tr>
    <tr align="left">
      <td valign="center"><img src="http://www.photoebooks4u.com/ClickBank/Blink-Eradication-System/images/red-disk.png" alt="checkmark-box" alt="3" border="0" align="left"></td>
      <td>&nbsp;&nbsp;</td>
      <td valign="center"><p><strong>How to never be at a loss</strong> for how to pose your baby. Refer to hundreds of sample poses to create baby pictures that stand out from the crowd</p></td>
    </tr>
    <tr align="left">
      <td valign="center"><img src="http://www.photoebooks4u.com/ClickBank/Blink-Eradication-System/images/red-disk.png" alt="checkmark-box" alt="checkmark-box" border="0" align="left"></td>
      <td>&nbsp;&nbsp;</td>
      <td valign="center"><p><strong>What is necessary</strong> to obtain the best results, under all conditions, whether shooting inside or outside</p></td>
    </tr>
    <tr align="left">
      <td valign="center"><img src="http://www.photoebooks4u.com/ClickBank/Blink-Eradication-System/images/red-disk.png" alt="checkmark-box" alt="checkmark-box" border="0" align="left"></td>
      <td>&nbsp;&nbsp;</td>
      <td valign="center"><p><strong>A simple but  effective technique</strong> for saving hundreds of dollars when framing your baby's pictures</p></td>
    </tr>
  </tbody>
</table>
</font></font></p>
</blockquote>

Feel free to review the entire Sales Page <A href="http://www.photoebooks4u.com/ClickBank/Oh_Baby_Book/baby-poses-book-description.html" target="_blank">here</a>.
<br />
<br />
<!-- THE END OF THE DESCRIPTION OF THE PRODUCT BEING SOLD -->





<font face="Arial"> <hr color="#000000" size="2">
</font>


<br />


			<!-- END OF Nasir's SOURCE CODE -->

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
																			<!-- Leave the title the same for all pages (Grab Your Promotional Resources below ...) -->

<title>Grab Your Affiliate Links below ... </title>
<style type="text/css">

				<!-- THE BEGINNING OF THE ACTUAL AFFILIATE TOOL'S CODE -->

.style16 {font-family: Tahoma;
	font-size: 24px;
	font-weight: bold;
}
.style17 {font-size: 14px}
.style2 {font-family: Arial, Helvetica, sans-serif}
.style24 {color: #006600}
.style28 {font-size: 24px;
	font-weight: bold;
}
.style29 {font-size: 24px; font-weight: bold; font-family: Arial, Helvetica, sans-serif; }
.style33 {font-size: 12px; font-weight: bold; }
.style7 {color: #0000FF}
.style35 {font-size: 18px}
-->
</style><script type="text/javascript">
<!--

function readCookie(name) {

 var s = '' + document.cookie;

 var i1 = s.indexOf(name);

 if (i1 == -1 || name == '') return ''; 

 var i2 = s.indexOf(';', i1);

 if (i2 == -1) i2 = s.length; 

 return unescape(s.substring(i1 + name.length + 1, i2));
}

var mycontent = '';
var myname = '';
var myfrom = '';
var mycbid = '';

function getCBID() {

  var mc = document.getElementById("mainContent");

  if (mc) {

    mycontent = mc.innerHTML;
  }

  myname = readCookie('myname');
  myfrom = readCookie('myfrom');
  mycbid = readCookie('mycbid');

 // if(mycbid.length - 5 < 0 || mycbid.length - 10 > 0 ){

  //}
  //else {

    var f = document.forms['myform'];

    f.elements['custom_clickbank'].value = mycbid;

    applyCBID(mycbid);
  //}
}

function getAndApplyCBID() {

  var err = '';

  var f = document.forms['myform'];

  var mycbid = f.elements['custom_clickbank'].value;

  if (!mycbid){

    err += 'Please, input Clickbank ID.' + "\n";
  }
  else {

   // if(mycbid.length - 5 < 0 || mycbid.length - 10 > 0 ){

     // err += 'The ClickbankID must be between 5-10 characters.' + "\n";
    //}
  }

  if (err){

    alert (err);
    return false;

  }else{

    applyCBID(mycbid)
    return false;
  }

}

function applyCBID(cbid) {

  //alert(cbid)

  var mc = document.getElementById("mainContent")

  if (mc && mycontent) {

    var s = '' + mycontent;

    s = s.replace(/x{4,10}/gi, cbid);
    s = s.replace(/\[\[firstname\]\]/gi, myname);

    mc.innerHTML = s
  }
  else {

    alert("Can't find 'mainContent'.");
  }
}

//-->
</script> 

<style>
.highlighttext{
background-color:yellow;
font-weight:bold;
}
.style38 {font-size: 10px}
.style39 {font-size: 12px}
</style>

<script language="Javascript">
<!--

/*
Select and Copy form element script- By Dynamicdrive.com
For full source, Terms of service, and 100s DTHML scripts
Visit http://www.dynamicdrive.com
*/

//specify whether contents should be auto copied to clipboard (memory)
//Applies only to IE 4+
//0=no, 1=yes
var copytoclip=1

function HighlightAll(theField) {
var tempval=eval("document."+theField)
tempval.focus()
tempval.select()
if (document.all&&copytoclip==1){
therange=tempval.createTextRange()
therange.execCommand("Copy")
window.status="Contents highlighted and copied to clipboard!"
setTimeout("window.status=''",1800)
}
}
//-->
</script>

</head>
<body onLoad="getCBID()" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" text="#000000">
<table border=0 align="center" bgcolor="#FFFFFF">
  <tr>
    <td width="620" height="107" valign="top"><div align="center"><h2>Grab Your Affiliate Links below ...</h2>  
            <table border=0 style="border-collapse: collapse;" border="0" bordercolor="#0000FF" cellpadding="10" cellspacing="0" width="592">
              <tbody>
      <tr>
                  <td style="border: 1px solid rgb(204, 204, 204);" bgcolor="#f3f3f3" width="572">
                  <p align="center"> <strong style="font-weight: 400;"> <font style="font-size: 9pt;" face="Verdana"><a href="#affiliatelink">Affiliate Link</a> | <a href="#linktext">Text Link</a> | <a href="#emailcopy" target="_self">Email Copy</a> | <a href="#sig" target="_self">Signature Ads</a> | <a href="#banners" target="_self">Banners</a> </font></strong></p></td>
        </tr>
              </tbody>
</table>


            
           
       <br />
<br />

            <p align="center" class="style2"><strong>Type your Clickbank ID in the box below &amp; click "Submit"</strong></p>
            <p align="center" class="style2">    
            <form onSubmit="return false" method="post" name="myform">
              <div align="center">
                <table border="0" width="319" height="106" align="center" cellspacing="0" bgcolor="#F9F9F9">
                  <tr>
                    <td width="207" height="26" bordercolor="#CCCCCC"><p class="style2">Enter Your ClickBank ID: <br>
                      (<strong>Need a ClickBank ID?</strong><br>
                      <a href=http://www.clickbank.com/signup.html?reseller=photoman1 target="_blank"><font color="#0000ff"><u>Sign up Here</u></font></a>  to get one in 60 seconds.)</span> </p></td>
                    <td width="108" bordercolor="#FFFFFF"><div align="center"><font face="Arial, Helvetica, sans-serif">
                        <input name="custom_clickbank" type="text" id="custom_clickbank" value="">
                    </font></div></td>
                  </tr>
                  <tr>
                    <td height="26" colspan="2">
                      <div align="right">
                        <input name="btnsubmit" type="submit" id="btnsubmit" value="Submit" onClick="getAndApplyCBID();return createAffiliateLink();">
                    </div></td>
                  </tr>
                </table>
              </div>
            </form>
      </div>
			<br />
<br />

        <div align="center">
          <div id="mainContent" style="width: 500px;">
            <table width="500" border="0" align="center" cellpadding="10" cellspacing="0" bordercolor="#111111" style="border-collapse: collapse;">
              <tbody>
                <tr>
                  <td taking better picturesstyle="border: 1px solid rgb(204, 204, 204);" bgcolor="#f3f3f3" width="572"><div align="center">

  
													<!-- 	BEGINNING OF "YOUR AFFILIATE LINK:"  -->
                      <p align="center"><strong>Your Affiliate Link:</strong><a name="affiliatelink"></a><br>
                          <br>
                      <form name="affiliatelink">
                        <div align="center">
                          <textarea name="affiliatelinktext" cols="50" rows="1">http://xxxx.photoman1.hop.clickbank.net</textarea>
                          <a class="highlighttext" href="javascript:HighlightAll('affiliatelink.affiliatelinktext')"><br>
                            Select All</a></div>
                      </form>
                  </div></td>
                </tr>
              </tbody>
            </table>
		   
            <p>&nbsp;</p>
			 <!-- BEGINNING OF THE THE FIRST LINK TEXT BOX --> 
              <table width="500" border="0" align="center" cellpadding="10" cellspacing="0" bordercolor="#111111" style="border-collapse: collapse;">
                <tbody>
                  <tr>
                    <td style="border: 1px solid rgb(204, 204, 204);" bgcolor="#f3f3f3" width="572">
                      <p align="center"><strong>Link Text:<a name="linktext" id="linktext"></a></strong>
                      <p align="center"><a href="http://xxxx.photoman1.hop.clickbank.net">Find out how easy it is to take strikingly better baby pictures!<br>
                            <br>
                        </a>
												
												<br />
<br />
 	
                      <form name="linktextform">
                        <div align="center">
                          <textarea name="linktext" cols="50" rows="2" id="value3">&lt;a href="http://xxxx.photoman1.hop.clickbank.net"&gt;Find out how easy it is to take strikingly better baby pictures!&lt;/a&gt;
                      </textarea>
                          <a class="highlighttext" href="javascript:HighlightAll('linkform.linktext')"><br>
                        Select All</a></div>
                    </form></td>
                  </tr>
                </tbody>
              </table>
							<p>&nbsp;</p>  
															<!-- THIS IS THE BEGINNING OF THE 2ND link text BOX -->
							
							 <p><table width="500" border="0" align="center" cellpadding="10" cellspacing="0" bordercolor="#111111" style="border-collapse: collapse;">
                <tbody>
                  <tr>
                    <td style="border: 1px solid rgb(204, 204, 204);" bgcolor="#f3f3f3" width="572">
                      <p align="center"><strong>Link Text:<a name="linktext" id="linktext"></a></strong>
                      <p align="center"><a href="http://xxxx.photoman1.hop.clickbank.net">Create Captivating Pictures of Your Baby That Will Amaze Your Family!<br>
                            <br>
                        </a>
                      <form name="linktextform">
                        <div align="center">
                          <textarea name="linktext" cols="50" rows="2" id="value3">&lt;a href="http://xxxx.photoman1.hop.clickbank.net"&gt;Create Captivating Pictures of Your Baby That Will Amaze Your Family! &lt;/a&gt;
                      </textarea>
                          <a class="highlighttext" href="javascript:HighlightAll('linkform.linktext')"><br>
                        Select All</a></div>
                    </form></td>
                  </tr>
                </tbody>
              </table>
           <p>&nbsp;</p>  
					 
							<!-- NEXT TEXT BOX -->
							
							 <p><table width="500" border="0" align="center" cellpadding="10" cellspacing="0" bordercolor="#111111" style="border-collapse: collapse;">
                <tbody>
                  <tr>
                    <td style="border: 1px solid rgb(204, 204, 204);" bgcolor="#f3f3f3" width="572">
                      <p align="center"><strong>Link Text:<a name="linktext" id="linktext"></a></strong>
                      <p align="center"><a href="http://xxxx.photoman1.hop.clickbank.net">Do You Want Better Pictures Of Your Baby? <br>
                            <br>
                        </a>
                      <form name="linktextform">
                        <div align="center">
                          <textarea name="linktext" cols="50" rows="2" id="value3">&lt;a href="http://xxxx.photoman1.hop.clickbank.net"&gt;Do You Want Better Pictures Of Your Baby?  &lt;/a&gt;
                      </textarea>
                          <a class="highlighttext" href="javascript:HighlightAll('linkform.linktext')"><br>
                        Select All</a></div>
                    </form></td>
                  </tr>
                </tbody>
              </table>
           <p>&nbsp;</p>  
					 
					 <!-- NEW TEXT BOX -->
					 
							 <p><table width="500" border="0" align="center" cellpadding="10" cellspacing="0" bordercolor="#111111" style="border-collapse: collapse;">
                <tbody>
                  <tr>
                    <td style="border: 1px solid rgb(204, 204, 204);" bgcolor="#f3f3f3" width="572">
                      <p align="center"><strong>Link Text:<a name="linktext" id="linktext"></a></strong>
                      <p align="center"><a href="http://xxxx.photoman1.hop.clickbank.net">Save $$ By Taking Your Own Professional Baby Pictures! <br>
                            <br>
                        </a>
                      <form name="linktextform">
                        <div align="center">
                          <textarea name="linktext" cols="50" rows="2" id="value3">&lt;a href="http://xxxx.photoman1.hop.clickbank.net"&gt;Save $$ By Taking Your Own Professional Baby Pictures! &lt;/a&gt;
                      </textarea>
                          <a class="highlighttext" href="javascript:HighlightAll('linkform.linktext')"><br>
                        Select All</a></div>
                    </form></td>
                  </tr>
                </tbody>
              </table>
           <p>&nbsp;</p>  
					 
					 <!-- new text box -->
					 
					  <p><table width="500" border="0" align="center" cellpadding="10" cellspacing="0" bordercolor="#111111" style="border-collapse: collapse;">
                <tbody>
                  <tr>
                    <td style="border: 1px solid rgb(204, 204, 204);" bgcolor="#f3f3f3" width="572">
                      <p align="center"><strong>Link Text:<a name="linktext" id="linktext"></a></strong>
                      <p align="center"><a href="http://xxxx.photoman1.hop.clickbank.net">Do You Want Better Pictures Of Your Baby? <br>
                            <br>
                        </a>
                      <form name="linktextform">
                        <div align="center">
                          <textarea name="linktext" cols="50" rows="2" id="value3">&lt;a href="http://xxxx.photoman1.hop.clickbank.net"&gt;Do You Want Better Pictures Of Your Baby? &lt;/a&gt;
                      </textarea>
                          <a class="highlighttext" href="javascript:HighlightAll('linkform.linktext')"><br>
                        Select All</a></div>
                    </form></td>
                  </tr>
                </tbody>
              </table>
           <p>&nbsp;</p>  
					 
					 <!-- new text box -->
							
            <p><table width="500" border="0" align="center" cellpadding="10" cellspacing="0" bordercolor="#111111" style="border-collapse: collapse;">
                <tbody>
                  <tr>
                    <td style="border: 1px solid rgb(204, 204, 204);" bgcolor="#f3f3f3" width="572">
                      <p align="center"><strong>Link Text:<a name="linktext" id="linktext"></a></strong>
                      <p align="center"><a href="http://xxxx.photoman1.hop.clickbank.net">Use Over 475 Sample Photos, Tips, Guidelines, Ideas, and Posing Secrets to Take Fantastic Baby Pictures! <br>
                            <br>
                        </a>
                      <form name="linktextform">
                        <div align="center">
                          <textarea name="linktext" cols="50" rows="2" id="value3">&lt;a href="http://xxxx.photoman1.hop.clickbank.net"&gt;Use Over 475 Sample Photos, Tips, Guidelines, Ideas, and Posing Secrets to Take Fantastic Baby Pictures! &lt;/a&gt;
                      </textarea>
                          <a class="highlighttext" href="javascript:HighlightAll('linkform.linktext')"><br>
                        Select All</a></div>
                    </form></td>
                  </tr>
                </tbody>
              </table>
            <p>  
			
            <div align="center">
              <p>&nbsp;</p>  
							
			<!-- THIS IS BEGINNING OF THE "E-MAIL COPY"-->  
			          
<table width="500" border="0" align="center" cellpadding="10" cellspacing="0" bordercolor="#111111" style="border-collapse: collapse;">
                <tbody>
                  <tr>
                    <td style="border: 1px solid rgb(204, 204, 204);" bgcolor="#f3f3f3" width="572">
                      <p align="center"><strong>Email Copy:<a name="emailcopy" id="emailcopy"></a></strong> <br>
                      <form name="emailcopyform">
                        <div align="center">
                          <textarea name="emailcopytext" rows="10"
													
											
													
													 cols="60">Hi [Firstname],
<br><br>
Every parent WANTS better baby pictures. But who can afford to go to photography studios all the time? Now you don't have to!
 <br><br>
I just stumbled upon the answer to every parent's dream...
 <br><br>
An 85 page ebook by a professional photographer that is filled with advice that everyone can actually benefit from; even if you've never held a camera before.
 <br><br>
For me, the best part was I didn't have to stop every 5 minutes to look up a confusing photography term. There are more than 475 tips, sample photos, ideas, and posing secrets that are simple to understand and use.
 <br><br>
If you have a new baby, do yourself a huge favor and discover how to capture their true essence, YOURSELF.<br><br>Simply click <a href="http://.photoman1.hop.clickbank.net">here</a> and get this ebook before you're kicking yourself because your baby is too old! </textarea>
                          <a class="highlighttext" href="javascript:HighlightAll('emailcopyform.emailcopytext')"><br>
                        Select All</a></div>
                    </form></td>
                  </tr>
                </tbody>
              </table>
<p>&nbsp;</p>


														<!-- BEGINNING OF THE "SIGNATURE TITLE" SECTION -->

  
<table width="500" border="0" align="center" cellpadding="10" cellspacing="0" bordercolor="#111111" style="border-collapse: collapse;">
                <tbody>
                  <tr>
                    <td style="border: 1px solid rgb(204, 204, 204);" bgcolor="#f3f3f3" width="572">
                      <p align="center"><strong>Signature Title<a name="sig" id="sig"></a></strong> <br>
                      <form name="sigform">
                        <div align="center">
   	                       <textarea name="sigtext" rows="10" cols="60">

Take <A href="http://xxxx.photoman1.hop.clickbank.net">Discover How To Capture Stunning Pictures of Your Baby </textarea>
                          <a class="highlighttext" href="javascript:HighlightAll('sigform.sigtext')"><br>
                        Select All</a></div>
                    </form></td>
                  </tr>
                </tbody>
              </table>
			

			  
			  			  
													<!-- [I MAY HAVE TO ASK SBI OR A FRIEND TO DO A SANITY CHECK CHARACTER PPC AD SHOWING UP EVEN] -->
 

                  			               
              <div align="center">
                <p>&nbsp;&nbsp;</p>
                   				
                <br>              
                <p>
				

				
                <table width=500 border=0 align=center cellpadding=10 cellspacing=0 bordercolor=#111111 style="border-collapse: collapse;">
<tbody><tr><td style="border: 1px solid rgb(204, 204, 204);" bgcolor=#f3f3f3 width=572><div align=center>
<p align=center><strong>Banner</strong><a name=banners id=banners>
</a><br><br><a href="http://xxxx.photoman1.hop.clickbank.net"><img src="http://www.photoebooks4u.com/ClickBank/Oh_Baby_Book/images/Oh_Baby-e-book_cover-sm.gif" border=0><br>
</a><span class=style33><!--[Image Name]--></span><form name=bannersform><div align=center>
<textarea name=bannerstext cols=50 rows=3><a href="http://xxxx.photoman1.hop.clickbank.net">
<img src="http://www.photoebooks4u.com/ClickBank/Oh_Baby_Book/images/Oh_Baby-e-book_cover-sm.gif" border=0></a></textarea>
<a class="highlighttext" href="javascript:HighlightAll('bannersform.bannerstext')">
<br>Select All</a></div></form></div></td></tr></tbody></table>
                <p/><table width=500 border=0 align=center cellpadding=10 cellspacing=0 bordercolor=#111111 style="border-collapse: collapse;">
<tbody><tr><td style="border: 1px solid rgb(204, 204, 204);" bgcolor=#f3f3f3 width=572><div align=center>
<p align=center><strong>Banner</strong><a name=banners id=banners>
</a><br><br><a href="http://xxxx.photoman1.hop.clickbank.net"><img src="http://www.photoebooks4u.com/ClickBank/Oh_Baby_Book/images/Baby-e-book_cover-small.gif" border=0><br>
</a><span class=style33><!--[Image Name]--></span><form name=bannersform><div align=center>
<textarea name=bannerstext cols=50 rows=3><a href="http://xxxx.photoman1.hop.clickbank.net">
<img src="http://www.photoebooks4u.com/ClickBank/Oh_Baby_Book/images/Baby-e-book_cover-small.gif" border=0></a></textarea>
<a class="highlighttext" href="javascript:HighlightAll('bannersform.bannerstext')">
<br>Select All</a></div></form></div></td></tr></tbody></table>
                <p></p><table width=500 border=0 align=center cellpadding=10 cellspacing=0 bordercolor=#111111 style="border-collapse: collapse;">
<tbody><tr><td style="border: 1px solid rgb(204, 204, 204);" bgcolor=#f3f3f3 width=572><div align=center>
<p align=center><strong>Banner</strong><a name=banners id=banners>
</a><br><br><a href="http://xxxx.photoman1.hop.clickbank.net"><img src="http://www.photoebooks4u.com/ClickBank/Oh_Baby_Book/images/baby-banner120x600.jpg" alt="baby e-book" border=0><br>
</a><span class=style33><!--[Image Name]--></span><form name=bannersform><div align=center>
<textarea name=bannerstext cols=50 rows=3><a href="http://xxxx.photoman1.hop.clickbank.net">
<img src="http://www.photoebooks4u.com/ClickBank/Oh_Baby_Book/images/baby-banner120x600.jpg" border=0></a></textarea>
<a class="highlighttext" href="javascript:HighlightAll('bannersform.bannerstext')">
<br>Select All</a></div></form></div></td></tr></tbody></table>
                <p></p><table width=500 border=0 align=center cellpadding=10 cellspacing=0 bordercolor=#111111 style="border-collapse: collapse;">
<tbody><tr><td style="border: 1px solid rgb(204, 204, 204);" bgcolor=#f3f3f3 width=572><div align=center>
<p align=center><strong>Banner</strong><a name=banners id=banners>
</a><br><br><a href="http://xxxx.photoman1.hop.clickbank.net"><img src="http://www.photoebooks4u.com/ClickBank/Oh_Baby_Book/images/baby-banner360x280.jpg" border=1><br>
</a><span class=style33><!--[Image Name]--></span><form name=bannersform><div align=center>
<textarea name=bannerstext cols=50 rows=3><a href="http://xxxx.photoman1.hop.clickbank.net">
<img src="http://www.photoebooks4u.com/ClickBank/resources_Group-Poses/taking_group_photos_suck.png" border=0></a></textarea>
<a class="highlighttext" href="javascript:HighlightAll('bannersform.bannerstext')">
<br>Select All</a></div></form></div></td></tr></tbody></table>
                <p></p><table width=500 border=0 align=center cellpadding=10 cellspacing=0 bordercolor=#111111 style="border-collapse: collapse;">
<tbody><tr><td style="border: 1px solid rgb(204, 204, 204);" bgcolor=#f3f3f3 width=572><div align=center>
<p align=center><strong>Banner</strong><a name=banners id=banners>
</a><br><br><a href="http://xxxx.photoman1.hop.clickbank.net"><img src="http://www.photoebooks4u.com/ClickBank/Oh_Baby_Book/images/baby-banner_250x250.jpg" border=0><br>
</a><span class=style33><!--[Image Name]--></span><form name=bannersform><div align=center>
<textarea name=bannerstext cols=50 rows=3><a href="http://xxxx.photoman1.hop.clickbank.net">
<img src="http://www.photoebooks4u.com/ClickBank/Oh_Baby_Book/images/baby-banner_250x250.jpg" border=0></a></textarea>
<a class="highlighttext" href="javascript:HighlightAll('bannersform.bannerstext')">
<br>Select All</a></div></form></div></td></tr></tbody></table>
                <p></p>
								
								
								
								<table width=500 border=0 align=center cellpadding=10 cellspacing=0 bordercolor=#111111 style="border-collapse: collapse;">
<tbody><tr><td style="border: 1px solid rgb(204, 204, 204);" bgcolor=#f3f3f3 width=572><div align=center>
<p align=center><strong>Banner</strong><a name=banners id=banners>
</a><br><br><a href="http://xxxx.photoman1.hop.clickbank.net"><img src="http://www.photoebooks4u.com/ClickBank/Oh_Baby_Book/images/baby-banner_728x90.jpg" border=1><br>
</a><span class=style33><!--[Image Name]--></span><form name=bannersform><div align=center>
<textarea name=bannerstext cols=50 rows=3><a href="http://xxxx.photoman1.hop.clickbank.net">
<img src="http://www.photoebooks4u.com/ClickBank/Oh_Baby_Book/images/baby-banner_728x90.jpg" border=1></a></textarea>
<a class="highlighttext" href="javascript:HighlightAll('bannersform.bannerstext')">
<br>Select All</a></div></form></div></td></tr></tbody></table>


                <p></p><table width=500 border=0 align=center cellpadding=10 cellspacing=0 bordercolor=#111111 style="border-collapse: collapse;">
<tbody><tr><td style="border: 1px solid rgb(204, 204, 204);" bgcolor=#f3f3f3 width=572><div align=center>
<p align=center><strong>Banner</strong><a name=banners id=banners>
</a><br><br><a href="http://xxxx.photoman1.hop.clickbank.net"><img src="http://www.photoebooks4u.com/ClickBank/Oh_Baby_Book/images/baby_banner-120x240.jpg" border="1"><br>
</a><span class=style33><!--[Image Name]--></span><form name=bannersform><div align=center>
<textarea name=bannerstext cols=50 rows=3><a href="http://xxxx.photoman1.hop.clickbank.net">
<img src="http://www.photoebooks4u.com/ClickBank/Oh_Baby_Book/images/baby_banner-120x240.jpg" border=1></a></textarea>
<a class="highlighttext" href="javascript:HighlightAll('bannersform.bannerstext')">
<br>Select All</a></div></form></div></td></tr></tbody></table>
               
              </div>
              <div align="center">
                <div id="mainContent" style="width: 500px;" align="center"></div>
              </div>
            
            </div>
          
          </div>
      </div></td>
  </tr>
</table>
</body>
</html>
        
              </div>
              <div align="center">
                <div id="mainContent" style="width: 500px;" align="center"></div>
              </div>
             
  </div>
          <p align="center">&nbsp;</p>
          </div>          
      </div></td>
  </tr>
</table>
</body>
</html>

<center>Thank you for joining our Affiliate Program. We will email you additional promotional materials as they become available.</center> <br />
<br />


<!-- Probably use some type of footer banner -->




</td>
</tr>
</table>
</td>
</tr>
</table>


</body>
</html>

Open in new window

0
leakim971PluritechnicianCommented:
save your time, money and head :) go to a more appropriate site for your needs : https://www.odesk.com/

for half of a coffee, someone can do what you want!
0
photoman11Author Commented:
Thank you for that.

Did you incorporate in your code or did you check the page that I sent, to see if it worked? The problem with the current page is-it does seem to work, however for reasons I alluded to (but did not go into the details for), it doesn't function as desired because of OTHER issues. I realize you would not be aware of that, but that's why I was looking for the kind of code you produced, so I could use it to work for my situation.

If you did incorporate your code into the page, could you tell me where, because I could not find it and I could not find any comments tags either.

Interestingly enough, I have been using contractors from oDesk for over a year. The problem that I run into sometimes, which this question/post would be a good example of, is because I know so little about technical coding – I would not know what to properly call this job and I would not know which is the proper category to list the job under. By the way, do you do work through oDesk?

Thanks again for spending the time with me.
0
leakim971PluritechnicianCommented:
>Did you incorporate in your code or did you check the page that I sent, to see if it worked?
Yes, I updated the page you sent

>The problem with the current page is-it does seem to work, however for reasons I alluded to (but did not go into the details for), it doesn't function as desired because of OTHER issues. I realize you would not be aware of that, but that's why I was looking for the kind of code you produced, so I could use it to work for my situation.
Hmmmm.... smell bad :o(

>If you did incorporate your code into the page, could you tell me where, because I could not find it and I could not find any comments tags either.
Of course check my previous POST (ID:37349711)
I add line 113 to 118
I updated line 491 (onclick event of the button)

>The problem that I run into sometimes, which this question/post would be a good example of, is because I know so little about technical coding – I would not know what to properly call this job and I would not know which is the proper category to list the job under
You may start by finding someone able to fully understand your needs and able to find the right person(s) for you; I think it's the main part of a project

>By the way, do you do work through oDesk?
Sometimes, but currently I don't have a lot of energy. You've good programmer arround ready to work for you
I like the "style" of this one : http://www.experts-exchange.com/M_5091320.html

See you soon
 
leakim971-536425.flv
0
photoman11Author Commented:
Thank you very much. I don't see a way to discover the profile or a way to contact http://www.experts-exchange.com/M_5091320.html - am I missing it or does everybody not include that information?
0
leakim971PluritechnicianCommented:
Check this one too : http://www.experts-exchange.com/M_52537.html
Very good and cool

Look like gurv removed the [HIRE ME] button...
0
photoman11Author Commented:
Is there supposed to be a [HIRE ME] button for the last link, because I can't find that one either?
0
leakim971PluritechnicianCommented:
no but you can find its email address
0
photoman11Author Commented:
I foolishly thought I could figure out where in your code, I should go to replace the "http://xxxx.photoman1.hop.clickbank.net" with the following template: http://www.photoebooks4u.com/go.php?offer=xxxx&pid=Z (where "Z" is 1 through 9; each one representing a different product).

After spending an embarrassingly long time trying to do so (without success), I am reluctantly bothering you again for the answer. Thanks for everything.
0
leakim971PluritechnicianCommented:
I think you want to update line 115, check the end of the line, but I see new problem coming... so again, save your time Sir, hire a developer
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
photoman11Author Commented:
I assume that what you mean is even if I make the change, it won't solve the problem. Right?

As far as a developer, oDesk asks for skills that I am looking for in the developer. What categories besides HTML, JavaScript, and web design should I indicate?

Thank you again.
0
leakim971PluritechnicianCommented:
Mainly JavaScript (and for sure you get someone knowing HTML)

0
photoman11Author Commented:
thank you so much for everything.
0
photoman11Author Commented:
Very helpful expert
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JavaScript

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.