View Single Post
  #3  
Old 08-28-2013, 06:49 AM
TG Data Service's Avatar
TG Data Service TG Data Service is offline
 
Join Date: May 2013
Posts: 6
Default

I can actually see the button image appear for a hot second then it disappears

function addCustomBtn() {
elements = getElementsByClassName("ecwid-productBrowser-cart-checkoutButton");
if (elements.length == 1) {
checkoutBtn = elements[0];
para=document.createElement("div");
checkoutBtn.parentNode.insertBefore(para, checkoutBtn.parentNode.firstChild);
para.innerHTML = '<a href=\"ship\"><img src=\"newbutton.png\"/></a>';
}
}

Please help! Thanks!!!