Fandt denne kodestump.
<%
If InStr(Request.ServerVariables("HTTP_USER_AGENT"), "Mozilla") Then
'<------begin content for internet explorer or netscape navigator----->
%>
<html>
<head>
<title>your title here!</title>
</head>
<body bgcolor="button">
<center>
<h1>your HTML content here!</h1>
</center>
</body>
</html>
<%
'-------end content for internet explorer or netscape navigator------->
else
'check what the user browser can accept
if instr(Request.ServerVariables("HTTP_ACCEPT"), "application/xhtml+xml")
Then
'the browser supports XHTML MP
'<-----begin xhtml content here------>
Response.Buffer = True
Response.ContentType ="application/xhtml+xml"
%>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN"
"
http://www.wapforum.org/DTD/xhtml-mobile10.dtd" >
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<title>Your title here</title>
<style>
q { font-face: arial; color: red; font-size: 18px }
code { font-face: courier; color: blue; font-size 10px }
cpy { font-face: arial; color: red; font-size 5px }
</style>
</head>
<body>
<p>
<q>HELLO HEADING!</q>
</p>
<p>
<code>your XHTML content here</code>
</p>
</body>
</html>
<%
'<-----end xhtml content here----->
else
if instr(Request.ServerVariables("HTTP_ACCEPT"), "text/vnd.wap.wml") Then
'the browser supports only wml
'<-----begin wml content----->
Response.Buffer = True
Response.ContentType ="text/vnd.wap.wml"
%>
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"
http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="p1" title="your title here">
<do type="prev" label="Back"><prev/></do>
<p align="center">
your wml content goes here....
</p>
</card></wml>
<%
'<-----end wml content------->
'for other mobile browsers that supports text/html
else
if instr(Request.ServerVariables("HTTP_ACCEPT"), "text/html") Then
'the browser supports text and html
'<-----begin text/html content----->
Response.Buffer = True
Response.ContentType ="text/html"
%>
<html>
<head>
<title>your title here!</title>
</head>
<body bgcolor="green">
<center>
<h1>your text/html content here!</h1>
</center>
</body>
</html>
<%
'<-----end text/html content------>
end if
end if
end if
End If
%>
"Thrane" <noreply@noreply.dk> skrev i en meddelelse
news:44203b55$0$919$edfadb0f@dread14.news.tele.dk...
>
> "Thrane" <noreply@noreply.dk> wrote in message
> news:44198c9e$0$46999$edfadb0f@dread15.news.tele.dk...
>> Hej
>>
>> Beklager hvis jeg er havnet det forkerte sted.
>> Jeg har ledt længe på nettet, men intet fundet...
>>
>> Jeg vil gerne kunne detecte om en bruger kommer ind på mit website via en
>> mobiltelefon og derefter sender ham til en ny side!?
>> Kan godt få det til at virke med PDA'er og andre enheder der benytter
>> Windows CE, men er der nogle der har nogle gode forslag?
>>
>> Hilsener
>> Thrane
>>
>
> Slet ingen gode forslag!?
>
> Thrane
>