/    Sign up×
Community /Pin to ProfileBookmark

Block left-clicking!

GDVning,
I have an embedded video on my page. The source of this video is from a video-sharing website, not youtube, but MotionBox.
The video has a logo on the corner, and a link to MB website at the end, and in addition to that, every click on the video area leads to another window that shows the video on their website.
Is there a way to block this specific clicking?
I tried a simple leftclick-blocking that puts an alert on every click, but it doesn’t influence the embedded flash object.
How can I apply the blocking to the flash object too??
Is there another way to block this? Iframe thing + javascript?

THANK U!

πŸ™‚

to post a comment
JavaScript

9 Comments(s) ↴

Copy linkTweet thisAlerts:
@Sterling_IsfineAug 19.2009 β€”Β So you want to deny self-promotion to the website that allows you to use its bandwidth to display your content?

The T&Cs require a prominent link back to the site on all pages containing their embedded player, so they're unlikely to approve of what you hope to do.

Is it a non-commercial site as they require?
Copy linkTweet thisAlerts:
@multimediocrityAug 19.2009 β€”Β Sterling IsFine makes some good points.

However, if you want to block a left click, you might be able to apply the JavaScript to an embed tag or object tag. If that does not work, affix a transparent div over the video. You may need to increase the z-index for this. Applying the no-click JavaScript to this box should prevent actions on the window.

Does this help?
Copy linkTweet thisAlerts:
@GuntoauthorAug 19.2009 β€”Β This site is non commercial, and I completely respect their credit and the place they provide me.

They have many kinds of commercials that apear on this embedded,

I don't want to use one of them. that's it.
Copy linkTweet thisAlerts:
@GuntoauthorAug 19.2009 β€”Β Sterling IsFine makes some good points.

However, if you want to block a left click, you might be able to apply the JavaScript to an embed tag or object tag. If that does not work, affix a transparent div over the video. You may need to increase the z-index for this. Applying the no-click JavaScript to this box should prevent actions on the window.

Does this help?[/QUOTE]



I agree.

Now tell me, how do I apply javascript code to an embed tag??
Copy linkTweet thisAlerts:
@criterion9Aug 19.2009 β€”Β This seems very questionable to me and I will not contribute. I would advise others to do the same.
Copy linkTweet thisAlerts:
@multimediocrityAug 19.2009 β€”Β affix a transparent div over the video[/QUOTE]

You may also be able to make a clickable area using the area tag, now that I think of it.

This seems very questionable to me[/QUOTE]

You should certainly read the terms for that video site and make sure what you're doing is in line with their rules. Otherwise, you should leave it alone. You could host the video on your own web space, correct?
Copy linkTweet thisAlerts:
@GuntoauthorAug 19.2009 β€”Β Listen.

I only gave an example of one case that this solution is needed in.

if you can explain me how to apply the left-click blocker to the Object it will be good.

that's all.
Copy linkTweet thisAlerts:
@multimediocrityAug 20.2009 β€”Β Understandable.

You may be able to stop right click by doing this:
[CODE]<body onclick="alert('No clicking.'); return false">[/CODE]

Of course, you can change the action and put it in almost any tag you'd like.

To prevent against right-clicking, Google for some prebuilt JavaScript code.

You can also check here: http://www.astahost.com/info.php/Javascript-Disable-Mouse-click-Browser_t825.html.

Good luck!
Copy linkTweet thisAlerts:
@Y_LessAug 21.2009 β€”Β Let me get this straight - you want to use free content from another website while removing the features which pay for that content? If you want the movie without the links or adverts - HOST IT YOURSELF!
Γ—

Success!

Help @Gunto spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 β€” BETA 5.27,
whats_new: community page,
up_next: more Davinciβ€’003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinciβ€’003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...