Quote:
Originally Posted by Kolbi
Is it possible that this doesn?t work?
Code:
<script type="text/javascript">
if ((navigator.userAgent.indexOf('iPhone') != -1) ||
(navigator.userAgent.indexOf('iPod') != -1)) {
document.write("<a href=\"$_SERVER[PHP_SELF]?<if condition="$_SERVER['QUERY_STRING']">$_SERVER[QUERY_STRING]&</if>styleid=XX\">iPhone Style</a>")
}
</script>
|
What are you trying to do w/ the above code, detect an iPhone/iPod browser? I don't know if that works or not, as I'm currently using Dartho's mobile device detector/router plugin.
--JOsh