Messaggio in Tagboard

« Older   Newer »
  Share  
GHOST-ITA
CAT_IMG Posted on 17/7/2011, 19:49     +1   -1




Ecco lo script che fa comparire qualsiasi messaggio voi volete in Tag Board

DA INSERIRE IN FONDO AL FORUM

CODICE
<script type="text/javascript">
//Generato con il FFMag FastScripts - Script by ~ DarkStyle
var tagMessage = "INSERISCI QUELLO CHE VUOI QUI";
var alertTagMessage = "Non puoi inviare il messaggio predefinito!";
var tagTextInput = document.tagboard ? document.tagboard.ffmsg : 0;
var tagInput = document.tagboard ? document.tagboard.elements : 0;

if(tagTextInput && tagMessage!="") {
function modifyvalue() {
if (tagTextInput.value == "") {
tagTextInput.style.fontWeight='bold';
tagTextInput.value=tagMessage;
} }

function resetvalue() { if (tagTextInput.value==tagMessage) {
tagTextInput.value='';
tagTextInput.style.fontWeight='normal';
} }

document.onload=modifyvalue();
tagTextInput.onfocus=resetvalue;
tagTextInput.onblur=modifyvalue;
for(i = 0; i < tagInput.length; i++) {
var ind = new function() {this.i = i;};
if(tagInput[ind.i].className == 'codebuttons' && tagInput[ind.i].type != 'submit') {tagInput[ind.i].onfocus = resetvalue;} }
for(j = 0; j < tagInput.length; j++) {
var ind1 = new function() {this.j = j;};
if(tagInput[ind1.j].type == 'submit' && tagInput[ind1.j].value != 'Aggiorna') {tagInput[ind1.j].onclick = function() {if(tagTextInput.value == tagMessage) {alertTagMessage ? alert(alertTagMessage) : void(0); return false;} } } }}</script>
 
Top
[TED]xCahx
CAT_IMG Posted on 30/8/2011, 21:04     +1   -1




Non capisco neanche una mezza lettera del linguaggio scripting xD
 
Top
ici4ever
CAT_IMG Posted on 30/8/2011, 22:46     +1   -1




si,GHOST,SI!!!! :blink:
 
Top
»Ðâ®klørê_99™«
CAT_IMG Posted on 4/1/2012, 00:24     +1   -1




Neanche io D:
 
Top
3 replies since 17/7/2011, 19:49   78 views
  Share