embed

How to use javascript to swap swf in html?

左心房为你撑大大i 提交于 2020-01-11 09:47:13
问题 I embedded a swf in my html page, but I would like it to swap to another swf when I clicked on a button in html. I used swfobject.js to embed the swf, and I use prototype to write the javascript. I thought I can just do this $('movie').value = 'swf/bhts.swf'; alert($('movie').value); the value did change to swf/bhts.swf, but it is still playing the original swf file... this is the code I use to embed swf <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="530" height="298" id=

在网页添加音乐(壹)

给你一囗甜甜゛ 提交于 2020-01-11 01:45:04
这个只是一个初步的实验,未涉及到js(因为我还只是个小白,还没看js),结合了网上各种教程。 1.使用<EMBED>标签,这个是HTML5的标签,定义嵌入的内容,比如插件。 在网上搜索大都弹出来这个,但是使用这个的话要显示播放器的话会出现一些问题,比如说, <embed src="music/walkingInTheRain.mp3" autostrat="true" loop="-1" controls="smallconsole/playbutton/pausebutton/stopbutton/volumelever" bgcolor="black" width="300" height="70" > 设置了高度为70。而现实的效果是这样的 你觉得想把下面那个黑色区域弄去,于是改变了高度,结果却是 我的解决办法是换一个标签,使用<audio>,这是html5里专门定义声音的…… <audio src="music/walkingInTheRain.mp3" autoplay="true" loop="-1" controls="smallconsole/playbutton/pausebutton/stopbutton/volumelever" bgcolor="while" width="300" height="70" ></audio> 总体和前面的<embed

Unsafe JavaScript attempt to access frame with URL

微笑、不失礼 提交于 2020-01-10 18:20:11
问题 I've incorporated Vimeo into a WordPress theme I'm building, and I get these errors: Unsafe JavaScript attempt to access frame with URL http://themes.ibrogram.com/beta/blog/ from frame with URL http://player.vimeo.com/video/4749536. Domains, protocols and ports must match. Unsafe JavaScript attempt to access frame with URL http://themes.ibrogram.com/beta/blog/ from frame with URL http://player.vimeo.com/video/28496744?title=0&byline=0&portrait=0. Domains, protocols and ports must match. It

How to embed PDF file with responsive width

南笙酒味 提交于 2020-01-10 07:52:09
问题 I'm embedding pdf files using something like this: <div class="graph-outline"> <object style="width:100%;" data="path/to/file.pdf?#zoom=85&scrollbar=0&toolbar=0&navpanes=0" type="application/pdf"> <embed src="path/to/file.pdf?#zoom=85&scrollbar=0&toolbar=0&navpanes=0" type="application/pdf" /> </object> </div> It works but I want to set the pdf width to match the width of the containing div. Currently it shows up like an iframe with scrollbars, so to view the entire pdf, you have to scroll

Embed browser in Java based desktop application [duplicate]

ぐ巨炮叔叔 提交于 2020-01-09 10:27:26
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: Is there a way to embed a browser in Java? How can I embed a browser in a Java based desktop application? Can I communicate with the embedded browser directly (not via localhost)... such as loading html text, capturing onclick events, getting form values? Thanks 回答1: check out Eclipse, it has an embedded browser which is configurable by the user (they support multiple browsers). you can probably embed their

html+mp3功能的简单实现

有些话、适合烂在心里 提交于 2020-01-08 16:00:56
首先引入一个文件 引入一个 mp3 文件到static/ mp3 文件夹下 然后在html里引入这个 mp3 文件,注意了,这里引入的时候,不要把html的音乐标签写成js嵌入html的形式,而是直接写入到html里面去, 因为html里面引用文件用的thymeleaf模板的th:src 只能引入静态的好像,不能引入动态的,我也是调试到html里面才成功播放音乐的 </div> <audio id='audioPlay' th:src='@{/mp3/user_download.mp3}' hidden='true'/> <embed name="embedPlay" th:src='@{mp3/user_download.mp3}' autostart="true" hidden="true" loop="false"></embed> </body> 类似于这样, 然后文件播放的js代码在如下 var playSound = function () { var borswer = window.navigator.userAgent.toLowerCase(); if ( borswer.indexOf( "ie" ) >= 0 ) { //IE内核浏览器 var embed = document.embedPlay; //浏览器不支持 audion,则使用 embed 播放

how to share a video from my website on facebook like youtube

我的未来我决定 提交于 2020-01-08 14:37:26
问题 I have a website that has a HTML5 video player. I want to share the link ( ex: http://site.com/video/example-2 ) on facebook and one the users click on the image of that post on the facebook it starts playing the video there. Just like youtube videos and vimeo videos. How can I do that? Thanks 回答1: I have a website that has a HTML5 video player. You want to find a good SWF (*.SWF) video player that can stream video from url={video_Hot_link} (pass URL parameter to the SWF player) Now after you

how to share a video from my website on facebook like youtube

核能气质少年 提交于 2020-01-08 14:37:14
问题 I have a website that has a HTML5 video player. I want to share the link ( ex: http://site.com/video/example-2 ) on facebook and one the users click on the image of that post on the facebook it starts playing the video there. Just like youtube videos and vimeo videos. How can I do that? Thanks 回答1: I have a website that has a HTML5 video player. You want to find a good SWF (*.SWF) video player that can stream video from url={video_Hot_link} (pass URL parameter to the SWF player) Now after you

HTML can't loop the music [duplicate]

爷,独闯天下 提交于 2020-01-06 15:39:24
问题 This question already has answers here : Playing sound on my website (6 answers) Closed 6 years ago . here is my code it seems that i cant loop the music, any idea? <embed name="lostmojo" src="music/Loving.mp3" loop="true" hidden="true" autostart="true"> Thanks in advance! 回答1: Does the music play at all? I had problems getting it to play using Firefox. If it doesn't play at all, the problem may be due to the hidden attribute, which has spotty support among browsers. If you remove the hidden=

get FACT_ADDRESS data type when get fact list from CLIPS

自闭症网瘾萝莉.ら 提交于 2020-01-06 08:18:13
问题 I embed CLIPS into C Language. and have code: main{ DATA_OBJECT factlist; int end,i; void *multifieldPtr; char *tempPtr; InitializeEnvironment(); Load("constructs.clp"); Reset(); GetFactList(&factlist,NULL);//send facts from clips to c application. end=GetDOEnd(factlist); printf("end=%d\n",end); printf("Lengthis%d\n",GetDOLength(factlist)); multifieldPtr=GetValue(factlist); printf("%d\n",end); for (i = GetDOBegin(factlist); i <= end; i++){ printf("i=%d\n",i); if (GetMFType(multifieldPtr,i) ==