「カートに追加」という画像があり、それをクリックすると、jQuery はカートに追加されたことを示す div を表示します。問題は、画像のロールオーバーが機能するためのリンクである必要があるため、クリックするとページの上部にリンクすることです (
<div class="producttext"> Body Snatcher <!-- product name text --> <div class="pricetag"><img src="pricetags/1499.png" width="113" height="150" /> </div></div> <!-- pricetag, ending both the pricetag and text div -->
<div class="addtocart"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('cart','','cart-rollover.png',1)"><img onclick="document.getElementById('addedcartbg').style.display = 'block'" src="cart.png" width="200" height="80" id="cart" /></a> <br /></div>