<span onclick="if (this.innerHTML != 'Shfaq Tekstin') { this.innerHTML = 'Shfaq Tekstin' } else { this.innerHTML = 'Fshih Tekstin<br />{TEXT}'}">Shfaq Tekstin</span>
p.s. All "Shfaq Tekstin" texts need to be Colored.
<span onclick="if (this.innerHTML != 'Shfaq Tekstin') { this.innerHTML = 'Shfaq Tekstin' } else { this.innerHTML = 'Fshih Tekstin<br />{TEXT}'}">Shfaq Tekstin</span>
|
|
|
<span onclick="if (this.innerHTML != '<font color='#0000FF'>Shfaq Tekstin</font>') { this.innerHTML = '<font color='#0000FF'>Shfaq Tekstin</font>' } else { this.innerHTML = 'Fshih Tekstin<br />{TEXT}'}"><font color='#0000FF'>Shfaq Tekstin</font></span>
<span class="green" onclick="if (this.textContent != 'Shfaq Tekstin') { this.textContent = 'Shfaq Tekstin'; this.className = 'red' } else { this.textContent = 'Fshih Tekstin<br />{TEXT}'; this.className = 'blue';}">Shfaq Tekstin</span>But it has to be supported by a CSS:<style type="text/css">
.red{
color:red;
}
.blue{
color:blue;
}
.green{
color:green;
}
</style>and incompatible with IE :c-thumbdown:
0 members, 1 guests, 0 anonymous users