网页二维码制作

第一步先去制作一个网页页面:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh-CN" xml:lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta name="keywords" content="网站名字" />
<meta name="description" content="网站名字" />
<title>网站名字</title>
<script type="text/javascript">
function checkmobile(){var ua=navigator.userAgent.toLowerCase();var bIsIpad=ua.match(/ipad/i)=="ipad";var bIsIphoneOs=ua.match(/iphone os/i)=="iphone os";var bIsAndroid=ua.match(/android/i)=="android";var bIsWM=ua.match(/windows mobile/i)=="windows mobile";if(bIsIphoneOs){window.location.href="http://d.91.com/Soft/iPhone/com.sj.91.gods.html"}if(bIsAndroid){window.location.href="http://d.91.com/Soft/Android/com.nd.Gods-8.html"}

}
checkmobile();
</script>
<link href="icon的路径" rel="Shortcut Icon"/>
</head>
<body>
</body>
</html>

上面红色背景分别代码ios和安卓的两个下载路径。

做好这个页面,就是把这个网址拷到网页去生成二维码就行了。

 

posted on 2013-02-28 14:21  仙梦之飘  阅读(589)  评论(0编辑  收藏  举报