BeachsidePaul
Apr-13-2009, 02:27 AM
Good morning all! John F. posted a javascript function to grab a PayPal button and move it to display in the altViews division of the page. Here's his original code:
YE.onContentReady("altViews", MovePaypalContent);
function MovePaypalContent()
{
var paypalObj = document.getElementById("paypalButtonSet");
var altViews = document.getElementById("altViews");
if (altViews && paypalObj)
{
var paypalSetObj = paypalObj.parentNode.removeChild(paypalObj);
altViews.appendChild(paypalSetObj);
paypalSetObj.style.display = "inline";
}
}
I modified this a bit to move the standard SM Buy and View Cart buttons to the same line as the style selector and slideshow buttons and thought all was well. (Thanks John!) Now I'm testing in IE7 and discovered that the Style and Slideshow buttons are floating to the left of the screen (above the breadcrumbs) for some reason. Everything is fine in Firefox and IE8 but obviously I missed, yet another, IE7 quirk.
here's a link to demonstrate my problem:
http://galleries.lightdynamicsphoto.com/gallery/7852712_cuSvB/1/510208110_sFjKC
Again, in firefox and IE8 all the buttons are on the right side of the display where they belong, the placement to the left is only on IE7.
Thanks for any help anyone my be able to give! Later, Paul
YE.onContentReady("altViews", MovePaypalContent);
function MovePaypalContent()
{
var paypalObj = document.getElementById("paypalButtonSet");
var altViews = document.getElementById("altViews");
if (altViews && paypalObj)
{
var paypalSetObj = paypalObj.parentNode.removeChild(paypalObj);
altViews.appendChild(paypalSetObj);
paypalSetObj.style.display = "inline";
}
}
I modified this a bit to move the standard SM Buy and View Cart buttons to the same line as the style selector and slideshow buttons and thought all was well. (Thanks John!) Now I'm testing in IE7 and discovered that the Style and Slideshow buttons are floating to the left of the screen (above the breadcrumbs) for some reason. Everything is fine in Firefox and IE8 but obviously I missed, yet another, IE7 quirk.
here's a link to demonstrate my problem:
http://galleries.lightdynamicsphoto.com/gallery/7852712_cuSvB/1/510208110_sFjKC
Again, in firefox and IE8 all the buttons are on the right side of the display where they belong, the placement to the left is only on IE7.
Thanks for any help anyone my be able to give! Later, Paul