View Full Version : Mouse Roll Over Not Working

06-07-2008, 06:13 AM

I'm working on my "Add To Shopping Cart" pages on my T-shirt site. I'm using my "Pick Your Size" buttons to add that shirt directly to a Paypal shop cart.

I had already set up roll over jpegs within Dreamweaver (which work fine), but I couldn't get them to work with the Paypal cart/form code I got from Paypal.

So I got a roll over code from a Paypal developer. The cart link works fine, my jpeg urls link to the jpegs fine if tested alone, but the mouse roll over doesn't work.

Here's just the isolated cart/button/mouseover code on an otherwise blank page.
Does anything jump out at anyone, that looks like it's wrong? Or if you know how I can use the Dreamweaver roll over code with the Paypal form/cart code, that would be fine too. I just don't know what I've done wrong to keep this from working.

Thanks a lot for any help anyone can provide.......................Pete

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="add" value="1">
<input type="hidden" name="business" value="youremail@youremail.com">
<input type="hidden" name="amount" value="17.00">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="item_name" value="Knife Thrower-ASH-Beefy T ">
<input type="hidden" name="no_shipping" value="2">
<input type="hidden" name="return" value="http://www.frankenmouse.com/thankyou.html">
<input type="hidden" name="cancel_return" value="http://www.frankenmouse.com/cancel.html">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="bn" value="PP-ShopCartBF">
<!-- Start mouse over -->
<input type="image" src="http://www.frankenmouse.com/stuffforgenericpages/size_buttons/pickasizebutton141wx64hsmall.jpg" border="0" onmouseover="this.src="http://www.frankenmouse.com/stuffforgenericpages/size_buttons/PickASizeButton141wx64hSMALLroll.jpghttp://www.frankenmouse.com/stuffforgenericpages/size_buttons/PickASizeButton141wx64hSMALLroll.jpg" onmouseout="this.src="http://www.frankenmouse.com/stuffforgenericpages/size_buttons/pickasizebutton141wx64hsmall.jpg" border=0 name="submit">
<!-- src="http://www.frankenmouse.com/stuffforgenericpages/size_buttons/pickasizebutton141wx64hsmall.jpg" border="0" onmouseover="this.src="http://www.frankenmouse.com/stuffforgenericpages/size_buttons/PickASizeButton141wx64hSMALLroll.jpghttp://www.frankenmouse.com/stuffforgenericpages/size_buttons/PickASizeButton141wx64hSMALLroll.jpghttp://www.frankenmouse.com/stuffforgenericpages/size_buttons/PickASizeButton141wx64hSMALLroll.jpghttp://www.frankenmouse.com/stuffforgenericpages/size_buttons/PickASizeButton141wx64hSMALLroll.jpg" onmouseout="this.src="http://www.frankenmouse.com/stuffforgenericpages/size_buttons/pickasizebutton141wx64hsmall.jpg" -->
<!-- End mouse over -->
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">


Below is a link to an actual page the above code is used on (just the "size SMALL" button is using it). The other buttons are using the Dreamweaver roll over code.

http://frankenmouse.com//a_knifethrower_pages/CARTtestB%20knifethrower3_beefyt_h_ash_pickyoursiz epage4xl.htm

06-07-2008, 10:25 AM
Any reason why ...


...has the image link listed 4 times ?

06-09-2008, 05:35 AM
Hi Rob,

Your right, the Paypal developer that sent me the cart code sent me that code as is. I didn't know enough about it to question the "doubling", I just replaced his generic jpegs with mine. There are two sets of the "mouse over, mouse out" sections of code. I'll try taking one out and see if it works...........
I'll try this Monday and let you know how it goes.

Thanks for the reply!...................Pete

06-09-2008, 05:48 AM
where you have

onmouseout="this.src="http://www.frankenmouse.com/stuffforgenericpages/size_buttons/pickasizebutton141wx64hsmall.jpg" border=0 name="submit">

you have 4 double quotes in this line

06-09-2008, 06:09 AM
Hi David,

I took out the redundant code that Rob mentioned. (that alone, didn't make a difference yet).

As far as the extra double quotes, I don't know which ones should be there and which ones shouldn't. The code came that way from Paypal's developer guy, and I was just assuming it was right (I know better now).

Which ones do you think I should remove?


Here's the URL to the sample button page showing this code;

http://frankenmouse.com//a_knifethrower_pages/CARTtestC%20knifethrower3_beefyt_h_ash_pickyoursiz epage4xl.htm


06-09-2008, 06:13 AM
i would fire this back to them

if this script is from a paypal developer then you need to use their support features.

its no good changing quotes if the script is wrong in the first place

06-09-2008, 06:22 AM
OK, I'll try the developer again. The past few times I've contacted him, he mentioned he writes his own code and doesn't use Dreamweaver. Yet he doesn't seem to be able to tell me why what should be a really simple code, still isn't working.

I really need the mouse over function to work so the customer is sure what size button they're picking. I had the button's mouse over functions working with Dreamweaver's code, but Paypal's developer couldn't tell me how to integrate their cart code with the way Dreamweaver wrote the mouse over code.

Thanks for the replies...................Pete

06-09-2008, 07:22 AM
The past few times I've contacted him, he mentioned he writes his own code and doesn't use Dreamweaver.

Everyone assumes that if you use Dreamweaver you use the drag-n-drop wizards

I use Dreamweaver and write my own code in a professional environment

I hand code everything.

If he has wrote shite code and is trying to mask it by blaming it on an IDE then he is as much use as tits on a fish. Ask him why his script doesn't work. Explain the problems and don't mention Dreamweaver as it has nothing to do with the tool which you use to write code in.

Is this guy part of a development team or is he just doing this on his own?

06-10-2008, 02:31 AM
Hi David,

The guy from the Paypal forum is what they call a developer, but from what I can tell it's just a way for Paypal to have other people do their customer service for them.

They have online "developer" courses you can take that will lead to a non-paying "job", the incentive being commissions on new customers they can bring in and possibly other benefits for them too.

It's either deal with them or their Pakistan / Indian email or phone support, in which case 99% of those guys/gals are reading ready made answers from manuals, and there are plenty of other ways I can frustrate myself without dealing with them.

If I can't get any further progress with the Paypal guy, I'll try going back to what I had in the begining, a working roll over button from Dreamweaver, and try to get that to work with their "add to shopping cart" code.


06-10-2008, 12:50 PM
Hi Pete, I understand the frustration of not achieving your simple goals. Your mouseover effect is separated from Paypal though. I'm sure we could find a solution for you.
The guy from the Paypal forum is what they call a developer, but from what I can tell it's just a way for Paypal to have other people do their customer service for them. Paypal is not required to build you a system for your site. This is not customer service, this is a developer job. Paypal has no duty to build your application, they just provide the framework.

If I can't get any further progress with the Paypal guy, I'll try going back to what I had in the begining, a working roll over button from Dreamweaver, and try to get that to work with their "add to shopping cart" code. If the developer is not providing you the service that was agreed upon, get your money back and try fo find a more reliable one.

06-11-2008, 11:18 PM

I know PayPal isn't required to build anything for my site, and I appreciate the effort of the guy that has been trying to help me. The forum I'm talking about isn't an independent one, it is a forum sponsored by PayPal with the intention of helping people like myself get their ecommerce sites up and running.

The guy helping me said, "they do have a mouse roll over I could use", and offered to send it to me after I mentioned the trouble I was having trying to use my Dreamweaver mouseover code with their cart code.

The developer was not hired by me. I'm having another go with the code the PayPal developer sent me, with some changes, and I'll see how it goes.

Thanks, and I'll post if I get it working..................Pete

06-13-2008, 09:32 AM
I just wanted to post an update, I was able to get the mouseover to work with the PayPal "add to cart" form.

It seems as though the problem may have been changing
apostrophe marks (see in RED below, as an example) into quote marks in a couple of locations. DavidJ mentioned there were double quotes in there, but I had tried just taking them out instead of changing them into apostrophe marks.

I don't know for sure if that was it, but it was the only thing done differently this last time before the mouseover function began to work.


Thank you to those that posted replies here, DavidJ and especially to Ed, the PayPal developer that didn't get pissed at all the back and forth emails we sent each other while trying to get the mouseover to work.

.................................................. ...Pete

06-13-2008, 11:05 AM
I don't know for sure if that was it Yes that was it. Putting a double quote in there will end the attribute, and it will all be jibberish for the browser ;)
Funny how DJ pointed out the error to you in his first post, you could have saved yourself some time there.