Author Topic: Code on header.html  (Read 3328 times)

0 Members and 1 Guest are viewing this topic.

Offline son_gokou

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Code on header.html
« on: November 11, 2008, 08:03:44 PM »
What is this code?

<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,scrollbars=yes,resizable=no,width=680,height=480');
  }

 -->
</script>


What does it do?

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: Code on header.html
« Reply #1 on: November 11, 2008, 08:40:36 PM »
hi,

Quote
function new_captcha_image
rotate catcha images if you can not read them well

Quote
function opendetailwindow

if you are using following in the thumbnail_bit html
Quote
<!-- you wish detail page in a small javascript open window, use {thumbnail_openwindow} -->
cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi

Offline son_gokou

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Re: Code on header.html
« Reply #2 on: November 18, 2008, 02:28:27 AM »
That's fine.
So I'll keep the code...