Go Back   CodingForums.com > :: Client side development > General web building > Building for mobile devices

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-23-2012, 03:11 PM   PM User | #1
Tim@DIM
New Coder

 
Join Date: Dec 2011
Location: Detroit
Posts: 62
Thanks: 17
Thanked 0 Times in 0 Posts
Tim@DIM is an unknown quantity at this point
Question onclick for mobile drop menu?

i have multiple websites with drop-down menus using the jvascript onmouseover and css hover styles.

if i were to convert these menus to javascript onclick events, would they work on mobile devices?

Last edited by Tim@DIM; 05-23-2012 at 03:28 PM..
Tim@DIM is offline   Reply With Quote
Old 12-12-2012, 10:28 PM   PM User | #2
StevenHu
Regular Coder

 
Join Date: Jun 2011
Location: CA
Posts: 105
Thanks: 0
Thanked 10 Times in 10 Posts
StevenHu is an unknown quantity at this point
The mouseover will fail silently (nothing will happen), but the onclick events will be used based on the device. For instance, on an iPhone, the drop-down menu, wen first clicked, results in a scroller at the bottom of the device. The Android shows a popover of the list. You don't need any conversion of those parts of the site for mobile. Mobile knows what to do with HTML, CSS, JS.
__________________
Steve Husting
http://iphonedevlog.wordpress.com
StevenHu is offline   Reply With Quote
Reply

Bookmarks

Tags
css, hover, javascript, onclick, onmouseover

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:57 PM.


Advertisement
Log in to turn off these ads.