473,549 Members | 2,862 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Only display an item if screen is pc size.

2 New Member
I need to show this only if the browser is on a pc screen, and not a mobile device.

Expand|Select|Wrap|Line Numbers
  1. <script language='JavaScript' src='js/menutop.js'></script>
I assume it would be something like
Expand|Select|Wrap|Line Numbers
  1. if (screen.width > 699) {
  2.  echo "<script language='JavaScript' src='js/menutop.js'>";
  3. }
  4.  
Aug 8 '14 #1
1 1284
Dormilich
8,658 Recognized Expert Moderator Expert
what if I shrink my PC screen window to have more space for other windows?
Aug 9 '14 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

13
5719
by: Erik | last post by:
I want to write a Server Side PHP program that generates a HTML page client side. How would I get at the clients' screen size, before serving the generated page ? Would it be a two-step process: first let the client execute a piece of JavaScript to generate Height and Width, and then send those values to the PHP server (FORM, PUT) ? Or can...
1
1714
by: Mudcat | last post by:
Hi all, I am writing a gui that expands depending on the number of interefaces a user decides to use with Win 2k, Tkinter, and Pmw. So with normal use the gui window will expand to the screen size and then clip without scrolling. If I use Pmw.ScrolledFrame, the clipping frame is set based on the size of the first child frame and never...
8
2093
by: csgraham74 | last post by:
Hi there, im building a web application in asp.net. i was wondering if there is a way to set the screen size automatically on the clients monitor to 1024*768 when they enter the application and return it to its original size on exiting the application. any ideas or advice appreciated. thanks
9
3386
by: Les Juby | last post by:
I understand that there are several ways to effectively control the browser delivery of HTML to make the most effective use of the different screen resolutions today. (And in the foreseeable future...) I have a client with a text based site (displays a lot of labour law) which is being read in a range of resolutions and he wants a rewrite...
2
1272
by: Dennis | last post by:
I have a form on which I have two controls, one docked to the left and the other docked to the right in a window that is Maximized. I developed the application on one computer which has a screen size of 1024 x 768. When I run it on the other with 800 x 640, the right control doesn't resize to the window maximized size but instead retains...
5
1144
by: kevininstructor | last post by:
My agency is purchasing laptops for some of our developers and I wanted to get others input if you have the time. I believe that working in the IDE the best physical screen size would be 17", anything below would not have enough screen area to comfortably work in. What do you think? Thanks for taking the time to chime in Kevin
5
4694
by: hayworth | last post by:
How do I get the color depth of the screen/display adapter with vb.net 2003? Background: We're having transparency problems (long side story and known Windows "bug") that requires our systems to have the Color Depth or "Color Quality" (bits per pixel) of the display adapter (screen) to be 16 bits (Called "Medium (16 bit)" in the Display...
7
2661
by: Simon Wigzell | last post by:
I am putting together a website for a photographer. There will be a section where his clients can select various sizes of picture to order. I would to be able to display the images the actual size depending on the clients screen size and resolution. Is this possible? I know that the server receives info on the resolution of the client...
2
6684
by: jamesnkk | last post by:
Hi I wonder is it possible for ms access form in full-screen size :? so that ms access application wouldn't display any ms access menu or toolbar and others who use it don't know we are develop it using ms access. and what is the best way or tips to prevent our application being modify by the end users? or made them unable to delete our query,...
24
2982
by: dE|_ | last post by:
I have started looking into scripts for screen size detect with the intention of using them to pick from a number of CSS style sheets tailored to the size. Is there a good reason why this is not so commonly done? IE am I wasting my time? ---dE|_---
0
7446
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7715
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7956
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7469
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7808
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5087
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3498
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3480
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1935
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.