Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
|
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 18th, 2005, 08:49 AM
Friend of Wrox
 
Join Date: Aug 2003
Posts: 137
Thanks: 0
Thanked 0 Times in 0 Posts
Default Flash embed prob using XHTML

Hi

I am developing a website using XHTML 1.0 Strict. Both the XHTML
and CSS validate and the site displays ok in most new and old browsers.

To get XHTML to validate with a FLASH object ref I used the following HTML:

Code:
<object type="application/x-shockwave-flash" data="flash/solace-logo.swf" width="670" height="115">
<param name="movie" value="flash/solace-logo.swf" />
<img src="images/logo.jpg" width="670" height="115" alt="" />
</object>
This displays either animation or image fine.

The problem I have encountered followed a friends feedback when trying to view the site using IE on Windows 98.

Basically the page just displays a blank area where the image / or animation should be and thats it.

My friend does have a FLASH player on the PC - which is why I'm a little puzzled.

Is there a reason why older version of IE running on Win98 OS might ignore the OBJECT tag? and if so, whats the alternative?

Gaz
__________________
Gaz
 
Old October 19th, 2005, 11:23 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 425
Thanks: 0
Thanked 3 Times in 3 Posts
Default

No sure about this but thought I'd throw it in anyway. I've only tried the FlashSatay method once with a couple of small flash buttons, nothing fancy. The only reported problem was due to an old flash player. IIRC they got empty boxes with scrollbars. I think the browser was IE 5.5 on Win 98. When they upgraded flash it worked. My own tests worked even in IE4 (the standalone version) and Netscape 4. But of course all browsers on my machine use the same player.

Have you seen UFO? Haven't tried it yet but it looks very nice. :)
http://www.bobbyvandersluis.com/ufo/

--
http://yupapa.com
 
Old October 20th, 2005, 08:26 AM
Friend of Wrox
 
Join Date: Aug 2003
Posts: 137
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have since discovered that the reason why it didnt work on my friends PC was before he had a very
outdated version of Flash player on his works PC (OS - Win98 and IE 5.5)

The problem I puzzled over with the above code was to why it didn't just show the standard image if it couldnt
get the Flash to work. But then I realised why it was just showing a blank box.

Basically, I generated the .swf file to work for Players 7+. Therefore, people with historic players
would encounter such problems, as the browser knew what was trying to be displayed - it was just that the player couldnt play it and locked up - right?

Anyway having posting this comment in another forum thread. I was advised to change my code to
this:


Code:
<object type="application/x-shockwave-flash" data="flash/myload.swf?path=flash/solace-logo.swf" 
width="670" height="115">
<param name="movie" value="flash/myload.swf?path=flash/solace-logo.swf" />
<img src="images/logo.jpg" width="670" height="115" alt="" />
</object>
Having changed to this code - my friend with the historic browser
now gets a box and message prompt stating that the plug-in attempting to be used
is out of date.

For more information on this new code goto: [link]http://www.alistapart.com/articles/flashsatay[/link]




Gaz
 
Old October 20th, 2005, 08:44 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 425
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Yeah, there's where I got it too. But as I understand it the satay part, i.e. the loader, only affects the streaming. Did you do the trick with a second, hidden movie to get the prompt, or what?

BTW, I have no idea what version of flash my buttons were. I used a third party program and don't know enough about flash to know what I'm doing anyway.

--
http://yupapa.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
how to embed flash in asp.net sangeet_83 ASP.NET 1.0 and 1.1 Basics 0 May 3rd, 2006 01:27 AM
Embed XHTML code Markus XSLT 2 January 1st, 2006 01:41 PM
Rollover prob in XHTML when Flash inserted socoolbrewster Javascript 4 September 14th, 2004 01:03 PM
rollover prob in XHTML doc when Flash movie insert socoolbrewster Flash (all versions) 0 September 12th, 2004 01:01 PM
Rollover prob when Flash inserted in XHTML page socoolbrewster HTML Code Clinic 0 September 12th, 2004 12:54 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.