使用javascript而不是iframe源代码? [英] Using javascript instead Iframe source?

查看:128
本文介绍了使用javascript而不是iframe源代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道我无法隐藏来自浏览器的iframe源(检查元素),但我想通过使用javascript作为源URL来使他们难以窃取网址(iframe)。

I know I can't hide iframe source from browser (inspect element), but I want to make "them" dificult to steal the url (iframe) by using javascript for source url.

如果我有:

<iframe width="420" height="315" src="//www.youtube.com/embed/xxxxxxx" frameborder="0" allowfullscreen></iframe>

我可以更改 // www.youtube.com/embed/xxxxxxx 使用javascript?

Can I change //www.youtube.com/embed/xxxxxxx with javascript?

推荐答案

要隐藏YouTube视频源,您可以使用JWPlayer或其他类似应用程序。 JW将直接从YouTube上播放视频并通过Flash播放器播放,该播放器充当用户和YouTube之间的中间人。

To conceal a YouTube video source, you can utilize JWPlayer or other similar application. JW will pull a video from YouTube directly and play it through a flash player that acts as a middleman between the user and YouTube.

http://www.jwplayer.com/about-jwplayer/

想想看,就像他们在一个焦点小组并观看视频,但他们无法见到背后的人。

Think about it like they're in a focus group and watching the video but they don't get to meet the people behind the glass.

对于演示,请访问< a href =http://www.wimp.com =nofollow> http://www.wimp.com 并试图找出视频上的YouTube地址(那些不是'将它方便地列在下面)。

For a demonstration, visit http://www.wimp.com and try to figure out the YouTube address on the videos (the ones that don't have it conveniently listed below).

这篇关于使用javascript而不是iframe源代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆