Jump to content

Recommended Posts

i posted the code below.. i changed to test/javascript.. but still no change. i tried on a dummy page  it is working.

 

 

<SCRIPT type="text/javaScript">

 

{literal}

 

//Disable right click script

 

var message="no right click ";

 

///////////////////////////////////

 

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 setActivity(str,str1)

 

      {

 

 

 

          parent.frames[0].window.document.getElementById('activityName').innerHTML = str+"  "+str1;

 

alert ("hi");

 

 

 

          var cfrm=confirm("Are you sure to connect IP "+ str1);

 

          if(cfrm)

 

          {    sit1="http://"+str1+"/astgui/showsysyeminfo.php";

                site2="http://"+str1+"/astgui/general.php";

                 

                parent.frames[1].window.document.location= sit1;

 

                parent.frames[2].window.document.location= site2;

               

          }                     

 

           

 

       

 

      }

{/literal}

 

</SCRIPT>

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.