You have a broken, broken template.
First, the correct shell should be:
$(document).ready(function() { ... });
But if you do, then Bubbles() and Bubbles2() not available from event handlers attached as HTML attributes.
So attach handlers in javascript:
$(function() { function Bubbles() { $(this).css("opacity", "0"); } function Bubbles2() { $(this).css("top": "400px", "opacity": "1"); } $(".bubble_cluster_one input") .on('mousedown', Bubbles) .on('mouseup', Bubbles2); });
Alternatively, send the bubble directly onto the screen, not confused with opacity:
$(document).ready(function() { $(".bubble_cluster_one input").on('mousedown', function() { $(this).css({ "top": "400px" }); }); });
Note. Both examples differ from the original in that event handlers are attached to the cluster shell, and not to the input element. You may need to tweak this aspect to achieve the desired effect.
Roamer-1888
source share