Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  • Thread Tools
  • Rate This Thread
  1. #1
    New to the CF scene
    Join Date
    Mar 2016
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy 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:

    Code:
    <object type="application/x-shockwave-flash" data="img/intranet_banner.swf" width="820" height="240" wmode="opaque"></object>
    I've tried making wmode="transparent", and wrapping a blank div around the object like so:

    Code:
    <div class="cover"><object type="application/x-shockwave-flash" data="img/intranet_banner.swf" width="820" height="240" wmode="opaque"></object></div>
    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.

    If it matters, the page is a *.php file.


    Thanks for your help!

  2. #2
    The fat guy next door VIPStephan's Avatar
    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

  3. #3
    New to the CF scene
    Join Date
    Mar 2016
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by VIPStephan View Post
    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
    That worked great; thank you very much!


 

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •