ngmanhmedia69
New Member
- Messages
- 7
- Reaction score
- 0
- Points
- 0
I want to my site automatically
switch interface when mobile
use and when to use
computer, how do?
switch interface when mobile
use and when to use
computer, how do?
<link rel="stylesheet" href="http://domain.tld/screen.css" type="text/css" media="Screen" />
<link rel="stylesheet" href="http://domain.tld/mobile.css" type="text/css" media="handheld" />
<script type="text/javascript"> // <![CDATA[
if ((navigator.userAgent.indexOf('iPhone') != -1) || (navigator.userAgent.indexOf('iPod') != -1)) {
document.location = "mobile/";
} // ]]>
</script>