Note that there are some explanatory texts on larger screens.

plurals
  1. POCss onmouseover gallery with youtube video for ebay
    primarykey
    data
    text
    <p>I am trying to adjust a css galley that i created to include an "onmouseover" to show a youtube video as one of the galley options.</p> <p>To be specific i am crafting an ebay template, that will include an onmouseover gallery that will show 3 image thumbnails, and will show the image (bigger) on mouse over. I was requested to to change the 3'rd image so it will show an youtube video instead, meaning that when i "onmouseover" the 3'rd thumbnail the bigger image will change to and youtube object. (image of the intended design) Image url: <a href="http://store07.backmeup.co.il/pavel/onmouseover.jpg" rel="nofollow">http://store07.backmeup.co.il/pavel/onmouseover.jpg</a></p> <p>I created the following code for the gallery, but i have some issues with the youtube feature. When i pass the mouse over the youtube thumbnail it shows the image as a different block, and is not part of the total design, meaning it is not changing back when i move to a different thumbnail, also it disappears when i move the mouse out of the thumbnail.</p> <p>Here is the complete code of the gallery:</p> <pre><code>&lt;div class="content"&gt; &lt;table border="0"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;&lt;div id="myPicturesInsert"&gt;&lt;!-- myPicturesCode --&gt; &lt;table id="MOEtable" style="width: 570px;padding-right:0px;" cellspacing="0" cellpadding="0" align="center"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td align="center"&gt; &lt;table style="height: 310px; width: 570px;padding-right:0px;" cellspacing="0" cellpadding="0" align="center"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td style="padding-bottom: 28px; padding-left: 0px; padding-top:2px;" title="MouseOver Enlarge" valign="top" height="320"&gt; &lt;a class="415x314" style="display: inline-block; margin: 5px; margin-bottom: 10px; width: 120;" onclick="return false;" onmouseover="return FF2MOE.show(this);" href="{{IMAGE(ITEMIMAGEURL1)}}" target="_blank"&gt; &lt;img style="border: 1px solid #d6d6d6 ; border-radius: 10px; width: 100px; height: 88px; margin-left: 0px; margin-right: 0px;" title="" src="{{IMAGE(ITEMIMAGEURL1)}}" alt="" /&gt;&lt;/a&gt; &lt;a class="415x314" style="display: inline-block; margin: 5px; margin-bottom: 10px; width: 120;" onclick="return false;" onmouseover="return FF2MOE.show(this);" href="{{IMAGE(ITEMIMAGEURL2)}}" target="_blank"&gt; &lt;img style="border: 1px solid #d6d6d6; border-radius: 10px; width: 100px; height: 88px; margin-left: 0px; margin-right: 0px; padding-top: 8px;" title="" src="{{IMAGE(ITEMIMAGEURL2)}}" alt="" /&gt;&lt;/a&gt; &lt;a class="415x314" style="display: inline-block; margin: 5px; margin-bottom: 10px; width: 120;" onclick="return false;" onmouseover="document.getElementById('youtube1').style.display=(document.getElementById('youtube1'))" href="" target="_blank"&gt; &lt;img style="border: 1px solid #d6d6d6; border-radius: 10px; width: 100px; height: 88px; margin-left: 0px; margin-right: 0px; padding-top: 8px;" title="" src="{{IMAGE(ITEMIMAGEURL3)}}" alt="" /&gt;&lt;/a&gt; &lt;!-- Custom youtube element --&gt; &lt;div id='youtube1' style='display: none;'&gt; &lt;div style="position:absolute; left:500px; top:330px;"&gt; &lt;object width="415" height="314"&gt;&lt;param name="movie" value="http://www.youtube.com/v/JoV6_2rWV-s?version=3&amp;amp;hl=en_US&amp;amp;rel=0"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/JoV6_2rWV-s?version=3&amp;amp;hl=en_US&amp;amp;rel=0" type="application/x-shockwave-flash" width="415" height="314" allowscriptaccess="always" allowfullscreen="true"&gt;&lt;/embed&gt;&lt;/object&gt; &lt;/div&gt; &lt;/div&gt; &lt;td style="padding: 10px; padding-top: 6px; background-image: url('http://freeform2.robshelp.com/textures/processing.gif'); background-repeat: no-repeat; background-position: center 15px;" align="center" valign="top" width="500"&gt;&lt;img style="border: 1px solid #d6d6d6; border-radius: 10px; margin-left: -14px;margin-right:3px; width: 415px; height: 314px;" src="{{IMAGE(ITEMIMAGEURL2)}}" alt="" name="FF2MOEP" /&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;script type="text/javascript" language="JavaScript"&gt;// &lt;![CDATA[ var FFPparms = "MOE:94:540:1:420";var FF2MOE=new Object;FF2MOE.show = function(obj) { var widthxheight=obj.className; var pfp=document.images["FF2MOEP"]; pfp.src="http://freeform2.robshelp.com/textures/transparent.gif"; if (widthxheight &amp;&amp; widthxheight.indexOf("x")&gt;0) { var pw = +widthxheight.substring(0,widthxheight.indexOf("x")); var ph = +widthxheight.substring(widthxheight.indexOf("x")+1); pfp.style.width=pw+"px"; pfp.style.height=ph+"px"; pfp.src=obj.href; } else pfp.style.backgroundImage="url(" + obj.href + ")";}; // ]]&gt;&lt;/script&gt;&lt;!-- myPicturesCode --&gt; &lt;/div&gt; </code></pre> <p>I've changed one of the thumbnails codding: (regular image code)</p> <pre><code>a class="415x314" style="display: inline-block; margin: 5px; margin-bottom: 10px; width: 120;" onclick="return false;" onmouseover="return FF2MOE.show(this);" href="{{IMAGE(ITEMIMAGEURL2)}}" target="_blank"&gt; &lt;img style="border: 1px solid #d6d6d6; border-radius: 10px; width: 100px; height: 88px; margin-left: 0px; margin-right: 0px; padding-top: 8px;" title="" src="{{IMAGE(ITEMIMAGEURL2)}}" alt="" /&gt;&lt;/a&gt; </code></pre> <p>To show and youtube object instead of the image onmouseover:</p> <pre><code>&lt;a class="415x314" style="display: inline-block; margin: 5px; margin-bottom: 10px; width: 120;" onclick="return false;" onmouseover="document.getElementById('youtube1').style.display=(document.getElementById('youtube1'))" href="" target="_blank"&gt; &lt;img style="border: 1px solid #d6d6d6; border-radius: 10px; width: 100px; height: 88px; margin-left: 0px; margin-right: 0px; padding-top: 8px;" title="" src="{{IMAGE(ITEMIMAGEURL3)}}" alt="" /&gt;&lt;/a&gt; </code></pre> <p>But i still have some issues with the matter, as the "youtube1" DIV is not merging properly with the rest of the gallery:</p> <p>image url: <a href="http://store07.backmeup.co.il/pavel/onmouseover1.jpg" rel="nofollow">http://store07.backmeup.co.il/pavel/onmouseover1.jpg</a></p> <p>I am sure that the issue results from a wrong object definition in the code, I would use a simple Iframe instead of the old object youtube embed, but unfortunately ebay doesn't allow any iframe in their listings.</p> <p>I would appreciate a lot any help as i am stuck in this issue, and dont have sufficient knowledge so solve it. Thank you very much.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload