【发布时间】:2010-03-10 20:06:23
【问题描述】:
我是编程新手,也是这个网站的新手。我有一个关于使用thickbox和jquery在网站上显示叠加视频的快速问题。
我的问题是,当有人单击电子邮件中的链接时,我希望显示覆盖。所以链接应该是这样的:mywebsite.com/landingpage.html#playVideo,然后所有其他访问该网页的人都必须点击一个链接来激活覆盖。
我已经看到有关如何使用 js 为访问该网站的每个人播放覆盖的文档,但不适用于来自 html 链接的特定人员。
我对这方面的东西很陌生,主要是作为一名设计师,但我熟悉基本的编程,并且知道足以让自己在这种情况下陷入困境。我在截止日期前,任何人都可以做的任何帮助将不胜感激。我想您可以将其称为页面上厚框中显示的一段内容的永久链接。
提前谢谢你...
<head>
<script type="text/javascript" src="overlay_js/jquery.js"></script>
<script type="text/javascript" src="overlay_js/thickbox.js"></script>
<script type="text/javascript"> var tb_pathToImage = "images/loadingAnimation.gif";</script>
<style type="text/css" media="screen">@import "css/thickbox.css";</style>
</head>
<body>
<h2>Video Overlay Example</h2>
<div id="videoDisplay" style="display:none;">
<!– start embed code copied directly from youTube.com –>
<object width="425" height="355">
<param name="movie" value="http://cdn-static.viddler.com/flash/simple_publisher.swf?key=c28782d6&autoplay=t"></param>
<param name="wmode" value="transparent"></param>
<embed src="http://cdn-static.viddler.com/flash/simple_publisher.swf?key=c28782d6&autoplay=t" type="application/x-shockwave-flash" width="425" height="355"></embed>
</object>
<!– end embed code copied directly from youTube.com –>
</div>
<a href="#TB_inline?height=365&width=425&inlineId=videoDisplay"
class="thickbox" title="Bill Aulet">Click here to see my video</a>
</body>
</html>
【问题讨论】:
-
您应该突出显示所有 HTML,然后点击代码按钮以正确格式化它,以便我们可以看到代码。
标签: jquery html query-string thickbox