Display thumbnail image in iframe

匆匆过客 提交于 2019-12-07 13:17:26

iFrame tag has no href attribute. See: http://www.w3schools.com/tags/tag_iframe.asp

You could maybe build an iFrame which acts as a target for a link:

<iframe width="560" height="315" src="<%=video1[1]%>" frameborder="0" allowfullscreen> name="iframe_video1"></iframe>

<a href="<%=video1[2]%>" target="iframe_video1"><img src="<...>"></a>

BTW: Pay attention that in an iFrame's source attribute, there has to be a document (i.e. web page) referenced, no media/video directly. You could use YouTube links e.g. to be embedded....

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!