close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

My website using generated JavaScript code has issue on mobile

Thread began 7/25/2018 2:14 pm by lr_leal239405 | Last modified 8/03/2018 2:42 pm by Ray Borduin | 106 views | 6 replies |

lr_leal239405

My website using generated JavaScript code has issue on mobile

For my dropdown I used (some years ago) probably something called 'Menu Builder" (?. sorry if I don't recall exactly), but on a Mobile, since there's no Hover function, it shows and hides on Click. I need to change the Hover function to Click but I can't pinpoint the JavaScript function.

Sign in to reply to this post

Ray BorduinWebAssist

In your menu.css file on line 194 you have a hover event for the sub-menu. I think you just have to put that into a media query so that it only applies to desktop widths and then the mobile device won't require two clicks once the hover css has been removed.

Sign in to reply to this post

lr_leal239405

Thanks much once again! that seems to work.

Sign in to reply to this post

lr_leal239405

It's doing it again. The code is still there. I'd like it to bring down the menu on click instead of hover. If it can't be easily changed. I'll recreate a dropdown with css. thanks.

Sign in to reply to this post

Ray BorduinWebAssist

It seems to be working for me still. What type of phone are you using to reproduce the problem?

Sign in to reply to this post

lr_leal239405

it's Samsung Galaxy 7. Android 8+. But even on the desktop I'd like it to come down on click instead of hover ?

Sign in to reply to this post

Ray BorduinWebAssist

The menu uses pure CSS... You can't really do click events without javascript.

The solution is probably to update all of your .css and anywhere it has a :hover event change it to using a .clicked class reference instead. Then add javascript to the page to toggle the .clicked class on click. There is no simple way to do this in the CSS directly without introducing javascript into the mix.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...