$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>plugins - myStickymenu hide on scroll up to certain Y values|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

plugins - myStickymenu hide on scroll up to certain Y values

matteradmin9PV0评论

I am trying to implement this feature in plugin myStickymenu, so that the specific pane displays at scrolling down 500px (which works) and then hides again when scrolling back up to 1000px.

I understand this could probably be done by:

  • Extending functionality using the custom CSS features. I have tried stuff such as

    #mysticky-nav .myfixed { margin:0 auto; float:none; border:0px;background:none; max-width:100%; }
    #mysticky-nav.wrapfixed.down {
        visibility:visible
    }
    #mysticky-nav.wrapfixed.up {
        visibility:hidden
    }
    
  • Editing the plugin to add another option for disable on scroll up length (this is what I'm trying to work on now, but I have no experience editing WordPress plugins) This is what I have come up with so far, here. Pretty much just added the option so far and looking to how I would implement it in the scroll up code. I have left all original credits, comments and headers in as this will just be for my own personal use.

If anybody could assist it would be greatly appreciated!

Again, thank you.

Post a comment

comment list (0)

  1. No comments so far