Does anybody know how to make that?
many many thanks in advanced !I'm sure it's some sort of Javascript they have on that page - you probably could check it out by viewing source on the particular page in that frame
http://www.detiknews.com/js/noklik.js.html
from viewing source
wow... cool, is there anyway I can view the javascript code?
Did you try the link that Uncleb posted?
NC...
from that link
//Disable right click script III- By Renigade (renigade@.mediaone.net)//Disable select-text script (IE4+, NS6+)- By Andy Scott//Visit http://www.dynamicdrive.com var message="";function clickIE() {if (document.all) {(message);return false;}}function clickNS(e) {if (document.layers||(document.getElementById&&!document.all)) {if (e.which==2||e.which==3) {(message);return false;}}}if (document.layers) {document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}document.oncontextmenu=new Function("return false")function disableselect(e){return false}function reEnable(){return true}//if IE4+document.onselectstart=new Function ("return false")//if NS6if (window.sidebar){document.onmousedown=disableselectdocument.onclick=reEnable}//
yeah, I have tried. And I also find out couple things:
1. There one file, indexfr.php, that acts as a main file. If you useMaster Page in ASP.net 2.0, this file is just like the master pagefile. However, instead of master page, they use FRAME. So, this file isbasically just the frames. This is the link they have
http://www.detiknews.com/indexfr.php?url=http://www.detiknews.com/index.php/detik.read/tahun/2006/bulan/06/tgl/06/time/193030/idnews/610516/idkanal/10
notice they have query string and paste out the exact url. If we copyand paste to our browser, then it will show only the main page (themiddle frame)
2. I paste the link to my browser:
http://www.detiknews.com/index.php/detik.read/tahun/2006/bulan/06/tgl/06/time/193030/idnews/610516/idkanal/10
Then use view source to view the source of the page.
From there, I can view the javaScript and its code that UNCLEB say about.
i guess the java script is copyable... lol!
I never copy anything without permission - sometimes permission is granted in the script.
I would use the code as a learning tool, rewriting it to suit your needs.
Maybe you don't have to change much - but change something ( variable names, comments,etc..)
spoke too soon - part of this script is free......
http://www.dynamicdrive.com/dynamicindex9/noselect.htm
as long as you keep the notice...
/***********************************************
* Disable select-text script- ? Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/
http://www.dynamicdrive.com/dynamicindex9/noright.htm
seems to be the other script, or close enough
the link is very useful UNCLEB. They have NO RIGHT CLICK on picture too. cool...!
0 comments:
Post a Comment