V
V
Vlad2016-02-01 12:07:14
JavaScript
Vlad, 2016-02-01 12:07:14

How to start downloading .swf on click?

Tell me, please .. if you place a .swf file on the site, it automatically starts when the page loads. How can I make it run only when the button is clicked?

<embed class='swfgame' src='/uploads/files/2016-02/1454280171_flashplayerru_32385.swf' width='100%' height='500px' allowScriptAccess='sameDomain' allownetworking='internal' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'></embed>

Answer the question

In order to leave comments, you need to log in

4 answer(s)
S
Stanislav Tretyakov, 2016-02-01
@Sc0undRel

We click on the Go button and your file is added to the div with id embed .

<div id="embed"></div>
<button id="go">Го</button>

document.getElementById('go').onclick = function() {
    document.getElementById('embed').innerHTML = "<embed class='swfgame' src='/uploads/files/2016-02/1454280171_flashplayerru_32385.swf' width='100%' height='500px' allowScriptAccess='sameDomain' allownetworking='internal' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'></embed>";
}

Y
Yuri Lobanov, 2014-09-14
@rushOneToster

If you want a shadow for a word, then use text-shadow
codepen.io/iiil/pen/zlmbd
Here you can play around sandbox.juan-i.com/longshadows
or look for other generators by the word long shadow generator

V
Volodymyr Godyak, 2014-09-14
@wmgodyak

css3gen.com/box-shadow

E
Evgeny Petrov, 2014-09-14
@Petroveg

It's probably about something like that .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question