logo-dw

Go Back   Dreamweaver Club Forums > Hand Coders Forum > General
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 06-02-2010, 06:27 PM   #1
kremo5le
kremo5le's Avatar
 
Join Date: Nov 2008
Location: San Diego, California
Posts: 112
Default iPad HTML Code + Flash Splash Page

Hello there,

My client wants his home page, which is a splash page, to say something when an iPad user see his website. Why? Right now the page uses Flash and as everyone knows, iPads don't run Flash animations.

What would be the code to add to accomplish this?

Thank you!
__________________
Otter Creative Studio
San Diego Web Design, SEO, & Graphic Design
kremo5le is offline   Reply With Quote
Old 06-03-2010, 01:23 AM   #2
edbr
edbr's Avatar
 
Join Date: Aug 2005
Location: Bali
Posts: 11,164
Default

you would first need a browser detect script i use php but there are javascript. in php i then use a conditional statement. other than that using swfobject you can add an alternative if flash cant load
__________________
If you're happy and you know it shake your meds!
different style links examples

Flight / Hotel search
Free script download
Bali Villas
edbr is offline   Reply With Quote
Old 06-03-2010, 01:43 AM   #3
kremo5le
kremo5le's Avatar
 
Join Date: Nov 2008
Location: San Diego, California
Posts: 112
Default iPad Browser Detect Script

Quote:
Originally Posted by edbr View Post
other than that using swfobject you can add an alternative if flash cant load
Thank you for your reply!

Could you be more detailed? I can Google browser detect PHP scripts, but what about the second thing you mentioned (what's quoted)?
__________________
Otter Creative Studio
San Diego Web Design, SEO, & Graphic Design
kremo5le is offline   Reply With Quote
Old 06-03-2010, 01:47 AM   #4
kremo5le
kremo5le's Avatar
 
Join Date: Nov 2008
Location: San Diego, California
Posts: 112
Default iPad Browser Detect Script - Blog Post

What about this? http://davidwalsh.name/detect-ipad
__________________
Otter Creative Studio
San Diego Web Design, SEO, & Graphic Design
kremo5le is offline   Reply With Quote
Old 06-03-2010, 01:52 AM   #5
domedia
Administrator
domedia's Avatar
 
Join Date: Dec 2003
Posts: 9,730
Default

Yes, what about it?
Does it work?
domedia is offline   Reply With Quote
Old 06-03-2010, 02:03 AM   #6
edbr
edbr's Avatar
 
Join Date: Aug 2005
Location: Bali
Posts: 11,164
Default

usin swfobject you can do this
Code:
 <div id="flashcontent">
        
        
        
        <img src="images/general/image.jpg"  />
      </div>   
       <script type="text/javascript">
        // <![CDATA[
        
        var so = new SWFObject("images/flash.swf", "movie", "350", "300", "9.0.0","scripts/expressInstall.swf");
        so.addParam("wmode", "transparent");
so.useExpressInstall('expressinstall.swf');
        so.write("flashcontent");
        
        // ]]>
    </script>
of course you can simply display text if you rather
__________________
If you're happy and you know it shake your meds!
different style links examples

Flight / Hotel search
Free script download
Bali Villas
edbr is offline   Reply With Quote
Old 06-03-2010, 06:31 AM   #7
Corrosive
Corrosive's Avatar
 
Join Date: Feb 2008
Location: Bristol, England
Posts: 7,103
Default

Just a general question out of interest but what is the iPad programmed to say when you visit a flash site anyway? Does anyone know?
Corrosive is offline   Reply With Quote
Old 06-03-2010, 07:02 AM   #8
edbr
edbr's Avatar
 
Join Date: Aug 2005
Location: Bali
Posts: 11,164
Default

Steve Jobs for president i think
__________________
If you're happy and you know it shake your meds!
different style links examples

Flight / Hotel search
Free script download
Bali Villas
edbr is offline   Reply With Quote
Old 06-03-2010, 01:13 PM   #9
davidj
davidj's Avatar
 
Join Date: Sep 2005
Location: The Toon (newcastle upon Tyne)
Posts: 8,256
Default

Quote:
Just a general question out of interest but what is the iPad programmed to say when you visit a flash site anyway? Does anyone know?
you just get a space where the flash goes

no propaganda or anything

Jobs is championing flashes demise like I am championing the official death of IE6

Its obvious that he doesnt want an application layer running on the apple platform outside of the apps store and he wants total control over his product, with no 3rd party calling even the smallest of shots.

My experience of HTML 5 video is poor. Its very slow and buggy!
__________________
Would you like to learn PHP from me? Check out -> www.codezenith.co.uk

Last edited by davidj; 06-03-2010 at 01:17 PM..
davidj is offline   Reply With Quote
Old 06-14-2010, 08:54 PM   #10
kremo5le
kremo5le's Avatar
 
Join Date: Nov 2008
Location: San Diego, California
Posts: 112
Arrow [SOLVED] iPad Redirection - PHP, JaveScript, or WordPress

Hello everyone,

I'm sorry for the late reply. I finally found the way to get it to work. Basically, if you follow the instructions on the link I provide on a post above, you should be fine. This guy shows you how to do it with PHP and JavaScript. It is really simple and there's no way you can get it wrong. Also, if you have a WordPress blog, you can use this plugin to get it to work.

Finally, how do you test it if you don't have an iPad? Very simple! Follow the instructions provided by Apple, and you will be golden!

I hope this helps all of you looking for this solution.

Take care,

kRem
__________________
Otter Creative Studio
San Diego Web Design, SEO, & Graphic Design
kremo5le is offline   Reply With Quote
Reply


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


All times are GMT. The time now is 10:54 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com