Welcome, Guest

How to – Hide the input value when mouse focus
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: How to – Hide the input value when mouse focus

How to – Hide the input value when mouse focus 1 year, 8 months ago #13793

Hi guys..

I'm trying to understand how to write a script which will clear to input value when mouse is on focus,
and the opposite (when onblur)

Please can anyone can write it down, how to do that… I'm sure someone did it before…

This is really simple option which needed to be as default option in the admin panel.

BTW i Tried this, but it didn't work!
function ff_email_action(element, action)
{
    switch (action) {
        case 'focus':
            if(this.value=='some content') this.value='';
        default:;
    } // switch
} // ff_email_action

Thanks!
  • uplink
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
  • Karma: 0

Re:How to – Hide the input value when mouse focus 1 year, 8 months ago #13813

Hello anyone ??

This so hard that no body did it before ??
  • uplink
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
  • Karma: 0

Re:How to – Hide the input value when mouse focus 1 year, 7 months ago #14594

Make a normal Breezing Forms / FacileForms textarea element.
On the Scripts Tab of the element insert this piece of code-


function ff_message_action(element, action){
switch (action) {
case 'click':
if (element.value=='Please write your message here.'){element.value=''};
break;

case 'blur':
if (element.value==''){element.value='Please write your message here.'};
break;
default:;
}
}


This is what a website I came across said, this darn forum Anti-Spam thing keeps blocking me from posting this, though if you notice the one new post it is totally SPAM, I think they got their thing backwards...block good people allow spam, hence the reason no one is responding to posts!
  • jucream
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
  • Karma: 0

Re:How to – Hide the input value when mouse focus 1 year, 6 months ago #14622

Thanks jucream!

(sorry for my bad English)

Its working perfect! This will really useful for another users...

Its really wrong that this Breezing official supporting forum is blocking people from help.
And why the forum admins wont help too ?!

Anyway Thank you.
  • uplink
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
  • Karma: 0

Re:How to – Hide the input value when mouse focus 1 year, 6 months ago #14625

Great! I'm glad it worked!!! I have found support helpful via the Support Desk, I just havent found many answers here. And the captcha's been giving me alot of trouble. But I am glad this is resolved for you
  • jucream
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
  • Karma: 0

Re: How to – Hide the input value when mouse focus 1 year, 1 month ago #23724

hi
i have the same problem.

your solution looks great but not working for me.

eny idea?

thanks
  • monimono
  • OFFLINE
  • Fresh Boarder
  • Posts: 12
  • Karma: 1
  • Page:
  • 1
Moderators: TheMuffinMan, ForumSupport
Time to create page: 0.37 seconds

About

Crosstec GmbH & Co. KG

Bergisch-Gladbacher-Str. 829

51069 Cologne, Germany