Author Topic: what is his scripts ?  (Read 3304 times)

0 Members and 1 Guest are viewing this topic.

Offline satine88

  • Sr. Member
  • ****
  • Posts: 265
    • View Profile
what is his scripts ?
« on: July 07, 2010, 12:29:26 AM »
Hello
I'm currently reviewing the contents of files, I found two codes:

what are they?


Code: [Select]
<script type="text/javascript">
function highlight(field) {
        field.focus();
        field.select();
}
</script>

and, Is this the form of comments (and the captcha)?

Code: [Select]
<script language="javascript" type="text/javascript">

<!--



  var captcha_reload_count = 0;

var captcha_image_url = "{url_captcha_image}";

  function new_captcha_image() {

    if (captcha_image_url.indexOf('?') == -1) {

  document.getElementById('captcha_image').src= captcha_image_url+'?c='+captcha_reload_count;

} else {

  document.getElementById('captcha_image').src= captcha_image_url+'&c='+captcha_reload_count;

}



    document.getElementById('captcha_input').value="";

    document.getElementById('captcha_input').focus();

    captcha_reload_count++;

  }



function opendetailwindow() {

    window.open('','detailwindow','toolbar=no, resizable=yes, directories=no, menubar=yes, scrollbars=yes,width=680,height=480');

  }



  if (document.layers){

    document.captureEvents(Event.MOUSEDOWN);

    document.onmousedown = right;

  }

  else if (document.all && !document.getElementById){

    document.onmousedown = right;

  }







// -->

</script>


Thanks ! :)

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: what is his scripts ?
« Reply #1 on: July 07, 2010, 12:57:24 AM »
The first code is some sort of text highlighting function

The second code is related to captcha. When you click on captcha image, that code loads new captcha image. Plus some additional code for right click protection and popup function when used {thumbnail_openwindow} in thumbnai_bit.html template.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline satine88

  • Sr. Member
  • ****
  • Posts: 265
    • View Profile
Re: what is his scripts ?
« Reply #2 on: July 07, 2010, 11:44:10 AM »
Thank you for your help

Quote
The second code is related to captcha. When you click on captcha image, that code loads new captcha image. Plus some additional code for right click protection and popup function when used {thumbnail_openwindow} in thumbnai_bit.html template.

I can delete the header files for the home, the categories? (I have a header file for each page, index, category, details)