External Flash Movie behind an HTML Overlay Div [duplicate] - html

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
Div Z-Index issue with Flash movie
Okay, is there a way to have an external flash movie that I have iframed in from another server show up behind an overlay div? Currently when I open my overlay, the flash movie shows through it.

You need to make sure you either have the param wmode set to transparent or opaque - using the default setting (window) will place it above any other content (think: infinite z-index).
edit: if you are not able to embed the flash yourself, you may have issues - that param needs to be set. Is it something that you can embed yourself just by moving the embed code to your site?

Related

How to have your mouse point at one point when you load a webpage? [duplicate]

This question already has answers here:
Move mouse cursor using javascript in Chrome or Firefox using any method (Plugin, GreaseMonkey?)
(3 answers)
Closed 8 years ago.
So I am making a hover game for my webpage. I just want my mouse to automatically point at a point say a button or a box i create with css when that page loads.
is there any way to do this?
No. There's no way for a web page to control the position of the mouse cursor.

How to draw a line linking two elements on HTML page? [duplicate]

This question already has answers here:
Drawing arrows on an HTML page to visualize semantic links between textual spans
(10 answers)
Closed 9 years ago.
I want to draw a line on HTML web page dynamically to connect two html elements, which can move on html page.
This action is something like connect two Rectangle's angle, like this:
Is there any way to achieve this?
You may want to look at this tutorial. This tutorial teach you how to draw lines by HTML Canvas API.
HTML5 Canvas Line Tutorial
To draw a line using HTML5 Canvas, we can use the beginPath(),
moveTo(), lineTo(), and stroke() methods.
First, we can use the beginPath() method to declare that we are about
to draw a new path. Next, we can use the moveTo() method to position
the context point (i.e. drawing cursor), and then use the lineTo()
method to draw a straight line from the starting position to a new
position. Finally, to make the line visible, we can apply a stroke to
the line using stroke(). Unless otherwise specified, the stroke color
is defaulted to black.
http://www.html5canvastutorials.com/tutorials/html5-canvas-lines/
You could use the HTML5 canvas but you will have to be more specific with your question so we can help you further.

Multiple stage sizes in Actionscript 3/Flash CS5 [duplicate]

This question already has answers here:
Flash dynamic stage size control
(2 answers)
Closed 9 years ago.
I'm building a downloadable flash app that appears as a window on a computer rather than a window in a browser. However, certain parts of the program will play YouTube videos, still within the program, not in a browser. That part is working fine.
However, I would like to change the size of the stage when it is running a Youtube video. Is that possible, or do I have to have the same size window showing for everything?
You can change the size of the stage by accessing the Document's Class, like this: this.width and this.height
UPDATE
It turns out only the embedding application can change the state, and changing the size through actionscript will not work, so throughout the player you'd have to probably access the NativeApplication through adobe air as you can see here: http://www.actionscript.org/forums/showthread.php3?t=222865 and as you can see here: http://www.actionscript.org/forums/showthread.php3?t=242042 - this shows you can only set the stage size during compile time.

Is there a way to access the main graphics context of the HTML page? [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Using HTML5/Canvas/Javascript to take screenshots
Is there a way to copy the main graphics context of the HTML page into a canvas?
From Javascript, I'd like to grab a "screen shot" of the current visible HTML page and copy it to a thumbnail image or canvas. (Not from a separate "screen capture" app, but from within the javascript page itself)
You can't do it.
But If you using google chrome you can write a chrome extension, this give you new javascript functions for capturing images, for example:
chrome.tab.captureVisibleTab( ....)
For example, you can check the source code Webpage Screenshot Extesnion:
https://chrome.google.com/webstore/detail/webpage-webcam-screenshot/ckibcdccnfeookdmbahgiakhnjcddpki

How to stop a GIF from animating after a certain amount of time (on a web page)? [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Stopping GIF Animation Programmatically
When I have a page open with an animated GIF in it, and the tab is active in the window, it uses up CPU.
I'm wondering if there's a way to mark up the HTML so that a GIF will play for a specified amount of time or number of loops.
Or perhaps I am best served by using a static image and setting its source to the GIF on hover (which I believe most mobile browsers patch by allowing hover to be set on tap).
I don't believe HTML or the DOM provides any control over GIF animation, but you can exercise a limited amount of control from your image generation tool over the number of loops.
For example, in Photoshop:
IE9 and Chrome respect the loop count; I imagine that all browsers do, though I can't find a mention in the spec for how looping is supposed to behave.
GIF89a Spec
If you can't modify the images, or want to stop them at different times, perhaps just replace the animated GIF with a static GIF using a bit of JavaScript.
I use Fireworks to make animated gifs and from within fireworks you can adjust those settings without having to do anything to the html.