Mrrrr's Forum (VIEW ONLY)
Un forum care ofera solutii pentru unele probleme legate in general de PC. Pe langa solutii, aici puteti gasi si alte lucruri interesante // A forum that offers solutions to some PC related issues. Besides these, here you can find more interesting stuff.
Lista Forumurilor Pe Tematici
Mrrrr's Forum (VIEW ONLY) | Reguli | Inregistrare | Login

POZE MRRRR'S FORUM (VIEW ONLY)

Nu sunteti logat.
Nou pe simpatie:
Kalifa pe Simpatie
Femeie
19 ani
Ialomita
cauta Barbat
19 - 32 ani
Mrrrr's Forum (VIEW ONLY) / Tutoriale si Ghiduri Utile // Tutorials and useful guides / [PDF] CheckBox Checked Fill Color Completely [JavaScript] Moderat de TRaP, TonyTzu
Autor
Mesaj Pagini: 1
Mrrrr
AdMiN

Inregistrat: acum 17 ani
Postari: 2186
To make a checked checkbox even more visible, I wanted to fill it completely in blue instead of just adding a cross or square.

1. Right click on your checkbox and select Properties.

2. Under Actions - select Mouse Up - Run a JavaScript

3. Insert the following line:


event.target.fillColor = (color.equal(color.blue, event.target.fillColor)) ? color.white : color.blue;
// after the ? character:
// - color.white is for unchecked checkbox
// - color.blue is for checked checkbox


4. Confirm the code.

5. Enjoy!

Even though the question from the source link is about coloring a button, it also works for checkbox.

Source:


_______________________________________


pus acum 3 ani
   
Pagini: 1  

Mergi la