Click to See Complete Forum and Search --> : javascript no right click


dominator69
12-28-2003, 05:48 PM
<script type="text/javascript">
//<![CDATA[
var w = window.open('', '', 'height=200,width=400');
with(w.document)
{
write('<body style="text-align: center; background-image: url(images/malsiamusicplayer.gif); margin-top: 70px;"><embed src="<:FILENAME:>" type="audio/video" hidden="false" autostart="true" loop="false" height="100" width="350"></embed></body>');
close();
}
//]]>
</script>

how to add no right click in this script thanx in advance

fredmv
12-28-2003, 05:51 PM
Absolutley no point in adding it, but...<body oncontextmenu="return false;"...

dominator69
12-28-2003, 05:58 PM
the point is to not open file in real one player

dominator69
12-28-2003, 05:59 PM
do you know any code i can put for that to not play file in real one player

dominator69
12-28-2003, 06:10 PM
when the new window open with player if i do right click on the player i have choice to play the file in real one player what i have to put in that script so i can block to play in real one player thanx in advance

Fod
12-28-2003, 06:40 PM
Why would you want to stop from people playing the file in Real One Player?:confused:

dominator69
12-28-2003, 06:48 PM
if i let them to play the file in real one player they could find out where is the file is located and they could download it ....

Paul Jr
12-28-2003, 06:51 PM
Originally posted by dominator69
if i let them to play the file in real one player they could find out where is the file is located and they could download it ....
They can download it anyway, whether it's opened in ROP or not.

dominator69
12-28-2003, 06:53 PM
i dont think so they can download it if i have the code

Fod
12-28-2003, 06:56 PM
what player do you want them to play it in?

and im pretty sure they can download it no matter what...

dominator69
12-28-2003, 06:57 PM
did you saw the javascript then you will know what i want

Fod
12-28-2003, 06:58 PM
I'm not to good with JS. But if thats what i think it is, all your doing is opening another page and play the file as the background???

dominator69
12-28-2003, 07:00 PM
when you click on the song on my website the new window opens with that javascript which one plays real audio files so in that window is a player so when you do right click u have options play, stop, mute, open in real one player i want to lock options play in real one player

Fod
12-28-2003, 07:03 PM
im pretty sure you can't do that....

and all they would have to do is look at your code get the url of the site that opens, open it in a brower and look at its code look for the src and download it.... then play it with whatever they want.... i think..:p

dominator69
12-28-2003, 07:13 PM
they cant play withever they want only with real audio player and when you are that smart try to resolve where the file is located here on this website http://muzika.albasoul.com/album.php?PHPSESSID=e08bfffb54d9c4e5efe127fe1b3aced2&id=1&PHPSESSID=e08bfffb54d9c4e5efe127fe1b3aced2
click on any song then try to open it in real one player and find where is the file located

Paul Jr
12-28-2003, 07:15 PM
Originally posted by dominator69
when you click on the song on my website the new window opens with that javascript which one plays real audio files so in that window is a player so when you do right click u have options play, stop, mute, open in real one player i want to lock options play in real one player
In other words, you want to emulate a media player, without actually using a real media player? I'm not sure this is possible, and might be a bad idea anyway.

But, lest we go through another few pages arguing this, if the file is on the internet, it is accessible. People can nab it if they know how. Plain and simple.

Fod
12-28-2003, 07:24 PM
but i dont have real one player....

....and i thought you were going about putting them in the page diffrently... no need to be rude...