Have you tried this one ?
Change the screen size from 699 to something like 3000 to test in XaraCode:<script type="text/javascript"> <!-- if (screen.width <= 699) { document.location = "mobile.htm"; } //--> </script>
Have you tried this one ?
Change the screen size from 699 to something like 3000 to test in XaraCode:<script type="text/javascript"> <!-- if (screen.width <= 699) { document.location = "mobile.htm"; } //--> </script>
Tutorials: The Basics of Web Design - Tips and Tricks - Creating a Nav Bar - Video Tutorials - Stretchy Buttons - Manual Nav Bars
Hi Drwyd,
Yes, that was the first piece of code I tried, of course, deleting the comment out code. Don't understand how changing the screen size to test in Xara would do anything; doesn't it have to be tested with a mobile device to verify if working correctly?
Thanks for responding, really appreciate.
Pixelart
yes ideally it's best to test on a mobile device. In the absence of one the code can be tested in WD/DP by setting the triggering size to larger than your screen. With me now ?
Tutorials: The Basics of Web Design - Tips and Tricks - Creating a Nav Bar - Video Tutorials - Stretchy Buttons - Manual Nav Bars
Think so...kind of....
Hi again,
A little confused, I changed width, as you instructed, as so:
<!--redirect to mobile web code-->
<script type="text/javascript">
if (screen.width <=3000) {
document.location = "http://resumeidentity.com/mobile";
}
</script>
After doing this, opened the index.htm file for the classic site in a browser and it takes me to the mobile site in the browser. Great! When I put the dimension back to "less than 699" or: if (screen.width <=699) if reverts back to desktop site. I am feeling either easily confused or stupid. I'm not showing it working on my mobile phone at all.
Thanks for your patience! Pixelart
Is javascript enabled on your phone?
Android: ► http://timeread.hubpages.com/hub/How...-Android-phone
Which gives us proof that the code works and a working exampleAfter doing this, opened the index.htm file for the classic site in a browser and it takes me to the mobile site in the browser. Great! When I put the dimension back to "less than 699" or: if (screen.width <=699) if reverts back to desktop site
The next step is then to check that the code is executed properly on the mobile device and that JS is enabled on it. (see Sledger's link)
If this does not work on the device in its default setup then it's probably a non-starter.
http://resumeidentity.com/mobile seems to work OK
Tutorials: The Basics of Web Design - Tips and Tricks - Creating a Nav Bar - Video Tutorials - Stretchy Buttons - Manual Nav Bars
Bookmarks