![]() |
Mobile redirect code
How would you go about having a mobile visitor go to a page linked from a referring site and display page as normal . If the surfer clicks on any of the site navigation bars/pages etc after this would get redirected if mobile?
Thanks for any thoughts on this! |
do you need a code?
Code:
<script type="text/javascript"> |
Oops, wrong answer....edited
You want them to land on your normal page first. Then when they click anything, they get redirected to mobile? Why not redirect them coming in? |
One of those image hosting sites. Want them to see the gallery image when they come in through a external link but redirect if they do any actions
|
Put this between your <head> </head> tags
Quote:
I just tested it on a page that had an image but no links or urls. |
If you want an alternative, you could use PHP on all the other pages, like this:
Edit: I can't post links, but if you google 'php if mobile device' the google codes reuslt seems optimal. |
All times are GMT -7. The time now is 12:52 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc