Jump to content

Search the Community

Showing results for tags 'Change after click'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • W3Schools
    • General
    • Suggestions
    • Critiques
  • HTML Forums
    • HTML/XHTML
    • CSS
  • Browser Scripting
    • JavaScript
    • VBScript
  • Server Scripting
    • Web Servers
    • Version Control
    • SQL
    • ASP
    • PHP
    • .NET
    • ColdFusion
    • Java/JSP/J2EE
    • CGI
  • XML Forums
    • XML
    • XSLT/XSL-FO
    • Schema
    • Web Services
  • Multimedia
    • Multimedia
    • FLASH

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Languages

Found 1 result

  1. Nuimi

    Tic Tac Toe

    Can you help me with function zmen. I need change picture after click. (click one x.jpg, click two o.jpg, click three x.jpg, click four o.jpg, ...) <script type="text/javascript"> hodnoty = ['img/nic.png','img/x.jpg','img/o.jpg']; hrac = 2; hrac1 = hrac ? 1 : 2; function zmen(img,hrac) { if(hrac < 1) { img.src = (img.src!=hodnoty[0]) ? hodnoty[hrac] : hodnoty[0]; } else { img.src = (img.src!=hodnoty[0]) ? hodnoty[hrac1] : hodnoty[0]; } } function reset(img,hrac) { var im, ob, i; ob = document.getElementById('pole'); im = ob.getElementsByTagName('img'); for(i=0;i<im.length;i++) { zmen(im[i],0); } } </script>
×
×
  • Create New...