homepage Welcome to WebmasterWorld Guest from 54.204.94.228
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
Video issue
hgerman

5+ Year Member



 
Msg#: 4397931 posted 6:58 pm on Dec 14, 2011 (gmt 0)

Hi, all. I have an issue that is kicking my butt. The code below works beautifully in Firefox and Safari. It opens up a video in a pop up window and only shows the video without Youtube branding. For whatever reason, it doesn't work in IE. You can test it easily by pasting

[youtube.com...]

into Firefox and in IE. Try it twice in IE, as it sometimes works the first time then no more afterwards. I believe it's a security setting issue with IE. Also, the finger pointer works in IE but not in Firefox. Ugh!

Here's the code:

<img class="s" src="http://www.my-websitesite.com//images/my-image.gif" width="280" height="196" alt="My alt image" span style="cursor: hand;" a href="http://www.youtube.com/v/hhOzGCEUNTg?version=3&amp;hl=en_US&amp;rel=0&autoplay=1" onClick="return popitup('http://www.youtube.com/v/hhOzGCEUNTg?version=3&amp;hl=en_US&amp;rel=0&autoplay=1')">

 

hgerman

5+ Year Member



 
Msg#: 4397931 posted 8:50 pm on Dec 14, 2011 (gmt 0)

Update: I've determined that it isn't a code issue but a Youtube URL issue that is causing the problem. For example:

<img class="s" src="http://www.my-websitesite.com//images/my-image.gif" width="280" height="196" alt="My alt image" span style="cursor: hand;" a href="http://youtu.be/hhOzGCEUNTg" onClick="return popitup('http://youtu.be/hhOzGCEUNTg')">

works fine on all browsers, but

<img class="s" src="http://www.my-websitesite.com//images/my-image.gif" width="280" height="196" alt="My alt image" span style="cursor: hand;" a href="http://www.youtube.com/v/hhOzGCEUNTg?version=3&amp;hl=en_US&amp;rel=0&autop lay=1" onClick="return popitup('http://www.youtube.com/v/hhOzGCEUNTg?version=3&amp;hl=en_US&amp;rel=0&autop lay=1')">

doesn't work on IE.

Simply copy the URL into your browsers and see what I'm talking about. Maybe IE has a problem with the /v/ folder? I like this code structure and URL because, as opposed to [youtu.be...] this URL plays without showing any Youtube branding and ends in a black screen (no additional videos), which is exactly what I want. Any ideas?

hgerman

5+ Year Member



 
Msg#: 4397931 posted 3:40 pm on Dec 15, 2011 (gmt 0)

This wound up being a Youtube URL issue. Funny how a simple change in the URL can cause that from one browser to another. The difference between

http://www.youtube.com/v/hhOzGCEUNTg?version=3&amp;hl=en_US&amp;rel=0&autop lay=1

and

http://youtu.be/hhOzGCEUNTg

[edited by: tedster at 8:54 pm (utc) on Dec 16, 2011]

hgerman

5+ Year Member



 
Msg#: 4397931 posted 2:19 am on Dec 21, 2011 (gmt 0)

found the correct link path to accomplish this: http://www.youtube.com/watch_popup?v=AVFAsN-_tpo

[edited by: tedster at 7:11 am (utc) on Dec 21, 2011]
[edit reason] display the full path [/edit]

tedster

WebmasterWorld Senior Member tedster us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 4397931 posted 7:19 am on Dec 21, 2011 (gmt 0)

Thank you for taking us along on your "adventure" - and documenting it here. I have never been up against this particular challenge, but I'm glad to have it recorded here for future reference.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved