var name = "#floatMenu";
var menuYloc = null;
$(document).ready(function() {
menuYloc = parseInt($(name).css("top").substring(0, $(name).css("top").indexOf("px")))
$(window).scroll(function() {
var offset = menuYloc + $(document).scrollTop() + "px";
$(name).animate({ top: offset }, { duration: 500, queue: false });
});
Come posso creare un pulsante mobile utilizzando jQuery e CSS?Come posso creare un Floating Button usando jQuery e CSS?
puoi fornire un esempio? –
Intendi come 'float: left;' o 'float: right;' o come una finestra modale con un pulsante? O forse "fluttuare" nel senso che è OVERTOP di qualcosa? – Jakub
https://d2o0t5hpnwv4c1.cloudfront.net/018_Floating_Menu/demo/dhtml_float_menu_final_nettut.html. Chek questo link. sono menu fluttuanti. Voglio aggiungere il floating a un pulsante in aspx – user1240045