Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
Thread Tools Display Modes
Share |
  #1  
Old 02-05-2009, 11:42 PM
goodluck4287 goodluck4287 is offline
Junior Member
 
Join Date: 02-05-09
Posts: 16
iTrader: 0 / 0%
Two sites on one html page using useragent js?

I am working on my site in DW and I would like to have a few of my pages show up differently on an iPhone/iPod Touch.

Maybe I don't need a js, but I'm hoping you guys can make some suggestions.

I'm thinking the logic of it isn't too bad, a simple if then else....

if iPhone or iPod Touch (a 320x240 optimized version)
then show the first part (how would I separate the first and second part?)
else show a regular full size version

Thanks for any help you guys can think of, I realize it might be easier to have separate pages optimized for iPhone but it sounds so much cleaner and nicer to have them as one page that detects the browser.
 
Reply With Quote

Advertisement

Advertisement

  #2  
Old 02-06-2009, 09:56 AM
Izzmo's Avatar
Izzmo Izzmo is offline
v7n Mentor
 
Join Date: 11-01-03
Location: Kansas
Posts: 1,356
iTrader: 1 / 100%
Using just plain HTML?

If you can, i would use JavaScript at least and PHP if better.

But you will have to do if/then (conditionals) statements. Either JS or PHp works.
 
Reply With Quote
  #3  
Old 02-09-2009, 02:47 AM
goodluck4287 goodluck4287 is offline
Junior Member
 
Join Date: 02-05-09
Posts: 16
iTrader: 0 / 0%
Can you or someone else kindly show me how a brief version of the code would look?
I am interested in seeing how the useragent iphone/ipod touch could render one body at a smaller resolution while the else statement takes another body.

So let's say this is done in PHP, (or java script if it is easier/better)

Thanks
 
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Corrupted HTML page snowlesswinter Web Design Lobby 9 11-18-2008 02:44 PM
Blog or HTML page shahab6 SEO Forum 22 07-17-2008 04:31 AM
Html Coding for new page shariqanis Coding Forum 5 11-06-2007 08:22 AM
HTML: What if html tidy messes with the page layout ? Linda in NY Coding Forum 63 04-18-2007 08:54 AM


V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 02:23 PM.
Powered by vBulletin
Copyright 2000-2014 Jelsoft Enterprises Limited.
Copyright © 2003 - 2018 VIX-WomensForum LLC