170
Views
7
Comments
Solved
how to use JavaScript to hover a container?
Question

Hi there,

I need to know, how can i do to when the user move mouse over a container and up it.
i tried use JavaScript, but i' not sure that.

In the container, you can use in extend property :

Script = document.getElementById("myBtn").onclick = displayDate;

with the logic you want!

you can use JavaScritp to do that, follow the link bellow and see this post:


https://www.outsystems.com/forums/discussion/32992/javascript-on-button/


Tiago Venancio wrote:

In the container, you can use in extend property :

Script = document.getElementById("myBtn").onclick = displayDate;

with the logic you want!

you can use JavaScritp to do that, follow the link bellow and see this post:


https://www.outsystems.com/forums/discussion/32992/javascript-on-button/


Thank you!!


I'm not sure, if I get your question. 

Is it how to do mouseover using javascript?

Swatantra Kumar wrote:

I'm not sure, if I get your question. 

Is it how to do mouseover using javascript?

Yes! 


In the container, you can use in extend property :

Script = document.getElementById("myBtn").onclick = displayDate;

with the logic you want!

you can use JavaScritp to do that, follow the link bellow and see this post:


https://www.outsystems.com/forums/discussion/32992/javascript-on-button/


Tiago Venancio wrote:

In the container, you can use in extend property :

Script = document.getElementById("myBtn").onclick = displayDate;

with the logic you want!

you can use JavaScritp to do that, follow the link bellow and see this post:


https://www.outsystems.com/forums/discussion/32992/javascript-on-button/


Thank you!!


mvp_badge
MVP

ELLEGANCE MANAGE wrote:

Hi there,

I need to know, how can i do to when the user move mouse over a container and up it.
i tried use JavaScript, but i' not sure that.

Hi Ellegance,

I created a small demo app using jQuery - more specific to what you asked for. See below link

Sample Demo Link: Sample App


jQuery Sample Code:

SyntaxEditor Code Snippet

"<script>
    $('#' + '" + MagicCntr.Id + "').hover(function() {
        $(this).css('background', 'yellow');
    }, function() {
    $(this).css('background', 'pink');
});
</script>"


Prototype: Calling $(selector).hover(handlerIn, handlerOut)


Regards,

Benjith Sam

can you share demo for these

mvp_badge
MVP

Hi Andrew,

This topic is 1,5 years old, and already has an answer. Please don't reply to such old topics, thanks.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.