bunglebrown
New Member
- Messages
- 157
- Reaction score
- 0
- Points
- 0
hope everyone is well. . .
a relatively simple one here possibly: I am looking to replace the default text that users enter in an input box using flash. This is what I have found whilst sniffing around but cannot make any of it work of course - sorry I have a long way to catch up.
a relatively simple one here possibly: I am looking to replace the default text that users enter in an input box using flash. This is what I have found whilst sniffing around but cannot make any of it work of course - sorry I have a long way to catch up.
Code:
var clearInputValue = Array();
function clearInput(from_addr){
if(!clearInputValue[from_addr]){
clearInputValue[from_addr] = from_addr.value;
from_addr.value = "";
from_addr.style.color = "black";
}
}
function replaceInput(from_addr){
if(from_addr.value == ""){
from_addr.value = clearInputValue[from_addr];
from_addr.style.color = "#999999";
clearInputValue[from_addr]= false;
}
}