Enjoy an ad free experience by logging in. Not a member yet? Register.
|
|
Results 1 to 3 of 3
Thread: Making an SWF NON-Clickable
-
03-08-2016, 03:24 AM #1New to the CF scene
- Join Date
- Mar 2016
- Posts
- 2
- Thanks
- 0
- Thanked 0 Times in 0 Posts
Making an SWF NON-Clickable
Hi Guys,
I've done a search and could only find answers to making an SWF clickable, not the exact opposite which I desperately need help with (making an SWF file non-clickable). Here is the code I'm using:
I've tried making wmode="transparent", and wrapping a blank div around the object like so:Code:<object type="application/x-shockwave-flash" data="img/intranet_banner.swf" width="820" height="240" wmode="opaque"></object>
Whenever I upload the file, if I mouseover and click the SWF file I get dumped at the root directory's homepage. Even if I wrap the code in a <a href=""> it will ignore that link and go to the root directory file.Code:<div class="cover"><object type="application/x-shockwave-flash" data="img/intranet_banner.swf" width="820" height="240" wmode="opaque"></object></div>
If it matters, the page is a *.php file.
Thanks for your help!
-
03-08-2016, 08:31 AM #2The fat guy next door
- Join Date
- Jan 2006
- Location
- Halle (Saale), Germany
- Posts
- 9,808
- Thanks
- 6
- Thanked 1,159 Times in 1,130 Posts
Hm, I have no experience with SWF in that regard but it works with SVG objects, so I assume the same should work with SWF: Try setting the CSS property
pointer-events: none;on the object. That should make it unclickable.
Source: https://developer.mozilla.org/en/doc...pointer-events
-
03-08-2016, 10:06 AM #3New to the CF scene
- Join Date
- Mar 2016
- Posts
- 2
- Thanks
- 0
- Thanked 0 Times in 0 Posts



Reply With Quote
