Chrome extension go above a flash element - javascript

How do I make the extension above a flash element like on YouTube. Any help would be greatly appreciated, thanks!
See screenshot of bug:
http://twitpic.com/3egnxk

The only way to put something above flash is to set wmode embed parameter to opaque or transparent. You can't dynamically set it, flash object needs to be recreated:
$("embed").attr("wmode", "opaque").wrap("<div>");
You can run this right away on page load so user wouldn't notice.
The other disadvantage is that flash in this mode loses focus (you won't be able to play a flash game with keyboard for example).

Related

Remove All User Controls Facebook Video Embed

I'm aware this question exists, please don't mark this one as a duplicate as things have changed since it was originally posted.
I am looking to embed what's called a "secret" (aka private) Facebook video onto a sales page to serve as a video sales letter. The video needs to play automatically (for as many devices as possible, anyways) and needs to have all video control options removed.
Basically it's click to play, click to pause, and if they know to use the arrows to FF or rewind, then, so be it. But that'll be less than 1% I'm assuming.
In the old solution the person mentioned Facebook having the option data-controls="false".
When trying to use this parameter now the entire video locks up and suggests the user to reload the browser.
Is there a way I can get around this? I'm thinking building out a custom player and seeing if I can set the FB video as the source, but even then it seems like there will be a page name and share option overlay on the video.
Any ideas?

Scroll two PDFs embed on screen at the same time but individually with touchs

Actually I have two PDF on my web, displayed at the same time.
With a touch screen, I would like to be able to scroll each pdf at the same time, but touch gesture only capture the first finger.
Any clue?
Thx in advance
Tried using those tags: embed, object, iframe. with same resutl.
I was reading about touch capture evets but i cant find the solution.
Not even sure if the clue is coding or even something to disable on browser.
i.e. put first finger over first pdf, it scroll perfectly, but if you try to scroll second one, while first finger is still touching the screen, it becomes a zoom/move gesture.
EDIT: I was able to detect both touchs with touchstart, touchend etc. over a normal div, but not over those iframe, embed or object tag when displaying the pdf
Try this i hope it sloves your problem:
for this purpose you can use a set of scripts in ExtendScript (JavaScript):
Dokumente vergleichen (visuell) | InDesign FAQ
Use a translation tool to read about it (it's in German).
You could use keyboard shortcuts assigned for the scripts to scroll simultaniously all windows from different documents. Should work in InDesign CS4 and also above.
Direct download link for the scripts:
[http://indesign-faq.de/files/2009/01/split.zip]2

I need to use one href anchor for 2 actions

I may be asking this incorrectly. I'm not super familiar with the terminology of javascript or ajax. I've been able to get by just enough using html and javascript code from highslidejs to create most of our companies in-house web pages. Now I am stuck on how to go about this issue. Originally I built this page using simply html code. Then one of the higher ups requested that I use this template. :( So I am attempting to work with this template that has no functionality what so ever. Everything was going ok until I came to having to reveal the video content below each selection using the ajax code that I grabbed from hsjs. While I got it to show the videos onclick with each submenu item.. the problem is that the way the template is built it has each video positioned just under it's name when it is clicked. And it doesn't clear the previous video being played. I was thinking that I could have each video be targeted to play in a specific div with an iframe. That way each video will play in that same div and override the previous one selected thereby avoiding having several open at the same time. I have had that work before. However, I am running into a conflict with the href having two functions: "javascript:;" and "mymoviesource.mp4"
I apologize for the lengthy explanation of my problem. Here is my work in progress: http://www.foxsportsgraphics.com/Lab-presentation/index-6-7a.html
I'm currently only working with the first "Virtual Reality" menu tab. I had each movie opening in a separate web window but they would like for each to open as the first one does for "Big East Basketball (jeep)" in that same position. Here is my first web page that I used a target iframe to play each video in:
http://www.foxsportsgraphics.com/template/index-Lab-original.html It works great having each video play in the same spot. But I don't know how to have one href do both: javascript code to reveal the iframe below the selections and target the video URL's to play in the iframe . Would it be better to use an "onclick" behavior to reveal the iframe? And if so.. how would i get the positions of the iframe to be in the same place for each selection? Again, I apologize if this question is troublesome because of my lack of knowledge in this area. But I would so greatly appreciate any help at all to direct me in some way to be able to accomplish what I want to do. Thank you in advance!

Make the user leave his screensaver through a website

Weird question !
I was wondering if there was any action a website could do to make the user's screensaver disappear.
I wanted to create kind of an alarm-clock website, but with nice visual effects, and I wished I could make the user leave their screensaver.
Is there any action that wakes up the computer ? Like, I don't know, making the website fullscreen, moving the window around.. Or is the screensaver only and exclusively left through keyboard/mouse events ?
I've read that you can't interact with the screensaver with JS : javascript code to prevent screensaver from starting
But I was hoping something like putting the website fullscreen would wake the computer up.
Nope.
For security reasons, nothing running inside the browser has access to OS-level commands like that.
Simply popping up an alert box won't do it. Going full screen won't work either, and anyway, you can't go full screen on a timer. I just tried and and apparently there are browsers safeguards against it. If you request full screen as a direct result of user interaction like, for example, a click, it goes full screen no problem. But, put the exact same code inside a setTimeout() function and it just doesn't run.
You have two options for an alarm type application:
1) Just do it with sound. Set up an <audio> tag and set it to play on a setTimeout.
2) Chrome apps offer greater access to different things that require more security than a typical web page. I don't know if they allow enough access to do what you're wanting to do, but you can read about it here: http://developer.chrome.com/apps/first_app.html
Hope that helps.

Disable 'Download This Video' Real Player Button In Browser

Is there any way to disable the "Download This Video" button from RealPlayer. It seems that when users have RealPlayer installed on their machines, it automatically adds a "Download This Video" button to any SWF that loads an FLV.
Edit: My intention isn't to prevent someone from downloading the SWF or FLV, I would just like to remove the ugly button that RealPlayer adds on top of my Flash content.
This is a pointless attempt to control something that can easily be circumvented. This is the same argument as "how can I prevent people from saving the images off my site".
There's always a way.
For example: http://www.downloadhelper.net/
After you embed the Flash content, remove the following attribute from the embedding tag:
type="application/x-shockwave-flash"
You will notice that the download button will disappears because it can't tell what exactly the content is. But this is only a hack, not the best practice of getting the task done.
there is an easy way of removing that download video thing from chrome and I found it. Click on it, then click the wheel to open the settings for Real Player, then just turn it off.
it took me a while, as no one has ever answered that question before.

Categories