Jump to content

javascript with php smarty


php1

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>

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.