Showing posts with label webpage. Show all posts
Showing posts with label webpage. Show all posts

Jul 23, 2015

Javascript redirect for mobile devices

The best method to redirect for mobile that I found is following:


<script type="text/javascript">
if (screen.width < 1081) {
 var ref = document.referrer;
 var urls = new Array("http://www.mymainsite.com","http://m.mymobilesite.com");
 var n = ref.match(urls[0]);
 var m = ref.match(urls[1]);
 if ((m!==null) || (n!==null)) {
 stop;
 }
 else if (ref=='') {
 var r = confirm("Small Display is Detected.\nClick \"OK\" for MOBILE SITE.");
 if (r==true) {
  window.location = "http://m.mymobilesite.com";
  }
  else {
  stop ;
 }
 }
 else
 {
 window.location = "http://m.mymobilesite.com";
 } 
}
</script>

Aug 30, 2012

Aug 13, 2012

IE7 Preview for developers

Last 2 weeks I've tried to repair the css styles for a web app which must be opened with Internet Explorer 7.0

Now I use Windows 7 and IE10. So, for debug my webpage in IE7.0 I've used IETester.

Now, I founded a new app which is just trial for 60 days (unfortunatelly). This application is:
Microsoft Expression Web4 SuperPreview. I've downloaded from here:
http://www.microsoft.com/expression/try-it/Default.aspx

And looks like:



UPDATE: Now I can use this: http://browsershots.org/