April 18, 200818 yr http://search.yahoo.com/search?ei=UTF-8&am...&fr2=sp-top at the bottom of the search page there is a utube video that you can play befor clicking on the site,is this done by the search engines or do you need some kind of Script thank you
April 18, 200818 yr http://search.yahoo.com/search?ei=UTF-8&am...&fr2=sp-top at the bottom of the search page there is a utube video that you can play befor clicking on the site,is this done by the search engines or do you need some kind of Script thank you Yahoo have used a script to do this - when you click on the play video link, it moves the content underneath down to allow room to load in the youtube video. I can't imagine it's that hard to do, but then again I'm a coding noob - I expect some more knowledgable folks will be along to help shortly. You may be able to achieve a similar effect with CSS visibility attribute, but I'm no expert on that either!
April 19, 200818 yr http://search.yahoo.com/search?ei=UTF-8&am...&fr2=sp-top at the bottom of the search page there is a utube video that you can play befor clicking on the site,is this done by the search engines or do you need some kind of Script thank you This effect is done by using javascript, Its very easy stuff only with a simple script you can do it. What we do is by using on click event of an element or a link we make the other element (which contains the video) to display and hide. See below an example var refer=true; function showHide() { if (refer) { document.getElementById('video').style.display=''; refer=false; } else { document.getElementById('video').style.display='none'; refer=true; } } here refer is used as a global variable, this is used as we are clicking on a single element and we have to catch each instance when it is clicked. So, once we click the link refer=true; and again when we click then refer=false;. this goes on randomly.
Create an account or sign in to comment