iframe

How Do I make an Iframe go to a random page every 5 seconds

匆匆过客 提交于 2019-12-25 09:26:45
问题 I need help with an iframe. So far, I have this code set up <iframe height="300px" width="100%" src="/vite" name="iframe_a"></iframe> <button><a href="/multi" target="iframe_a">MULTI</a></button> <button><a href="/facebook" target="iframe_a">Facebook</a></button> However, I don't want the buttons. I want the iframe to redirect in order of a list of web pages every five seconds because: Next to it, I have a slideshow, and when its logo appears, I would like the frame to redirect to the page of

How to write a script tag inside a javascript code?

柔情痞子 提交于 2019-12-25 09:19:21
问题 I have a javascript code which is called inside an iframe. I want to add a tag inside that javascript code and append the tag to the iframes parent body. This is my code to add the script tag and append to iframes parent body. setTimeout(function () { var scriptTag = "<script>alert(1)<"; scriptTag += "/script>"; $("#iframe").contents().find("body").append(scriptTag); }, 5000); the code isn't working it neither added the script tag nor showed any error 回答1: Your scriptTag is a string and not

PHP MYSQL event listener

送分小仙女□ 提交于 2019-12-25 09:19:18
问题 I need to build a solution for my supervision page. I have a system for many users and an office manager, and i created a supervision page in order to supervise the login and status of each user. When the user log-in to the system, ta row in the DB will be updated. same for his status in the system (Busy, Available, offline...). What i did that i created an iframe in which am checking those data from DB and refreshing the iframe each 5 seconds in order to check any update. Is there any

Passing values to iframe inside xul panel

末鹿安然 提交于 2019-12-25 08:58:15
问题 I am creating a firefox extension that has a button on the toolbar that will show below custom content that i will set. I was using a XUL file to create the structure of this content, and i was opening it like this: var config = { confirm: false , username:"", password:""}; window.openDialog( "chrome://myext/content/login.xul", "", "centerscreen=no,all=no,titlebar=no,chrome=yes, toolbar=no,dialog=no,resizable=no,modal=yes", config); Now i'm taking another approach, by using an iframe inside a

fancybox 3 iframe doesn't work

馋奶兔 提交于 2019-12-25 08:51:18
问题 I have a problem with FancyBox 3, probably images works perfectly but iframe doesn't. I've followed all instructions from their site http://fancyapps.com/fancybox/3/docs/#setup But video just cant work, whatever I do, I'm getting this error: http://imgur.com/a/3LUR6. I hope some one already had same problems and know answer :D. thx anyway 回答1: You have to move your code on some webserver or install something like apache on your computer to make it work. btw, ajax will not work for you

Youtube API, Muting Video (Iframe)

北城以北 提交于 2019-12-25 08:33:10
问题 Project -> http://codepen.io/urketadic/full/YpLgBX/ Problem -> Options -> Matrix Mode ( mute button appears, but doesn't work when pressed). Description -> I have iframe in the HTML with no src, its hidden (width,height=0). If Matrix Mode gets enabled however, this iframe gets attributed with URL: $('#iframe').attr("src","https://www.youtube.com/embed/videoseries?list=PLikZa7q0vpioApkXpyYxsrsng-nIsXBhv&autoplay=1&loop=1"); I have also added mute button that when pressed is suppose to change

jQuery iframe hide/show

笑着哭i 提交于 2019-12-25 07:59:36
问题 Well im coding a site, and now stuck at the jQuery part, which aint my strongest thing. The site contains a top-menu nav-bar: <a href="aboutus.html" target="iframe"><img class="tab1" src="#.png"></a> <a href="menu.html" target="iframe"><img class="tab2" src="#.png"></a> <a href="gallery.html" target="iframe"><img class="tab3" src="#.png"></a> <a href="shop.html" target="iframe"><img class="tab5" src="#.png"></a> <a href="links.html" target="iframe"><img class="tab6" src="#.png"></a> <a href=

Instructing browser cache to ignore certain URL params

北慕城南 提交于 2019-12-25 07:49:51
问题 I want the two iframes <iframe src="www.URL.com?name=benny&runtime=1231231> <iframe src="www.URL.com?name=benny&runtime=757847584> which are loaded at different times to be mapped to the same cached value in the browser. The server has nothing to do with this. Basically, is there a way to have chrome, firefox, etc... cache api ignore certain parameters (in this case 'runtime') when looking up a src. Passing a separate param or making a separate call for runtime will not work in the use case

Iframe not displaying some pages

流过昼夜 提交于 2019-12-25 07:48:10
问题 Having issues displaying some websites within iframes. Live example of code This one works. <article class='nobackground'> <iframe src='http://en.wikipedia.org/wiki/<?php echo $myid ?>'></iframe> </article> This one does not display. (neither will youtube, google or facebook, however static html seems to display fine) <article class='nobackground'> <iframe src='http://www.google.ie/search?tbm=isch&hl=en&source=hp&biw=1280&bih=679&q=<?php echo $myid ?>'></iframe> </article> CSS used: iframe {

YouTube API Not Muting in Safari (not iOS)

最后都变了- 提交于 2019-12-25 06:46:01
问题 I have initialized my player with the code below. It mutes fine in Chrome, FireFox, and IE, but not Safari. Any thoughts amigos? function onYouTubeIframeAPIReady() { player = new YT.Player('iframe-wrapper', { height: videoHeight, width: videoWidth, videoId: id, events: { 'onReady': onPlayerReady }, playerVars: { 'autoplay': 1, 'controls': 0, 'autohide': 1, 'wmode': 'opaque', 'showinfo': 0, 'loop': 1, 'mute': 1 } }); } function onPlayerReady() { player.mute(); player.playVideo(); } 回答1: Just