- SO Flirt - http://www.soflirt.com/en -

Left mouse anticlic on flash / swf objects

Hi there.

This post is mainly intended to webmasters who have basic notions in HTML and CSS and who are looking for a simple anti left mouse clic script for flash / swf objects.

The technic below may for exemple be used in order to disable a left clic on a flash affiliate banner. Imagine that you want to use easyflirt’s flash geoprofile promotional tool and redirect your potential members to a special registration page.

Well a little bit of scripting should help you. Or you should also use / download the exemple script detailed below !

coding [1]The anti / alternatve clic we present here as been tested on Internet Explorer, Firefox and also Safari.

Description of the script / what does the script do ?

The script below may be useful if you are looking for a simple script that allows you to cover flash (ie : swf) documents with an above ‘div’ / ‘mask’ element.

Here is a working demo of the script :

In this exemple, we use a div container wich has an higher z-position than the affiliate script called by a javascript line (that calls a flash / swf animation).

Script demonstration :

See the script in action [2]

The script was tested under Internet Explorer, Firefox, Opera, Chrome and Safari.

Notes :

We have control on the div element and therfore can decide to add a link to the destination of our choise : a registration page and why not another dating affiliate program (just kidding, such practices generally carry much more troubles than positive side effects :D) ?

Anyway, here is the zip of the files uses in this article. We hope that you’ll find the script usefull !

Download our anticlic scipt : download link [3]

VN:F [1.9.22_1171]
Rating: 10.0/10 (1 vote cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)