Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

came across this video playing how do you do it

Featured Replies

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!

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.