Hi,
I am in the process of creating a website, and as I am teaching myself PHP decided that it would be a good idea to try a few things like resizing the text, changing colour schemes, all of the usual accessibility stuff.
I have a php file called menu.php, (code below) which holds the menu option and also the screen resize options.
They both work, but I am looking for a way to not display the screen resize options if the page is viewed on a mobile device, ie. a PDA or mobile 'phone.
It's the bits in red that I don't want to appear, and I am getting accessing the file using the include function, if that makes any difference.
I would like it to be decided by the screen resolution, ie. if the screen is less than 800 pixels wide don't show the options, but I'm a bit stuck...
Can anyone help please?
Thanks in advance,
John.
I am in the process of creating a website, and as I am teaching myself PHP decided that it would be a good idea to try a few things like resizing the text, changing colour schemes, all of the usual accessibility stuff.
I have a php file called menu.php, (code below) which holds the menu option and also the screen resize options.
They both work, but I am looking for a way to not display the screen resize options if the page is viewed on a mobile device, ie. a PDA or mobile 'phone.
It's the bits in red that I don't want to appear, and I am getting accessing the file using the include function, if that makes any difference.
I would like it to be decided by the screen resolution, ie. if the screen is less than 800 pixels wide don't show the options, but I'm a bit stuck...
Can anyone help please?
Thanks in advance,
John.
Code:
[FONT="Courier New"]<ul id="Navigation">
<li><a href="index.php">Home </a></li> <img src="images/seperator.png" border=0>
<li><a href="about.php">About </a></li> <img src="images/seperator.png" border=0>
<li><a href="news.php">News </a></li> <img src="images/seperator.png" border=0>
<li><a href="photos.php">Photos </a></li> <img src="images/seperator.png" border=0>
<li><a href="projects.php">Projects </a></li> <img src="images/seperator.png" border=0>
<li><a href="weblinks.php">Web Links </a></li> <img src="images/seperator.png" border=0>
<li><a href="forums.php">Forums </a></li> <img src="images/seperator.png" border=0>
<li class="last"><a href="index.php">Contact Me </a></li>
[COLOR="Red"]<br />
<hr />
<a href="javascript:fsize(textsize,'px','content');" onclick="changetextsize(0);">[Reduce font size]</a>
<img src="images/seperator.png" width="20px" border=0>
<a href="javascript:fsize(textsize,'px','content');" onclick="changetextsize(1);">[Increase font size]</a>[/COLOR]
</ul>[/FONT]