HTML / Flash question

Open discussion about any topic, as long as you abide by the rules of course!
Post Reply
User avatar
Eraser
Posts: 19176
Joined: Fri Dec 01, 2000 8:00 am

HTML / Flash question

Post by Eraser »

Does anyone know if there is a way to embed a flash object in my webpage and display a placeholder JPG image instead of the flash object when the viewer's browser doesn't support flash?
User avatar
PhoeniX
Posts: 4067
Joined: Fri Aug 04, 2000 7:00 am

Post by PhoeniX »

4days
Posts: 5465
Joined: Tue Apr 16, 2002 7:00 am

Post by 4days »

User avatar
Eraser
Posts: 19176
Joined: Fri Dec 01, 2000 8:00 am

Post by Eraser »

Thanks. Didn't know it required Javascripts and such, thought you could simply provide alternate content in the embed HTML tag somehow.
User avatar
MKJ
Posts: 32582
Joined: Fri Nov 24, 2000 8:00 am

Post by MKJ »

flashmx has a flashdetector even (you can turn it on in the publish settings) :o
[url=http://profile.mygamercard.net/Emka+Jee][img]http://card.mygamercard.net/sig/Emka+Jee.jpg[/img][/url]
4days
Posts: 5465
Joined: Tue Apr 16, 2002 7:00 am

Post by 4days »

that's just a pre-canned js isn't it?

there's also this:
http://www.polar-lights.com/fla/detection.html
which redirects using a flash movie. used something similiar for a site a while back and haven't had any complaints.
User avatar
MKJ
Posts: 32582
Joined: Fri Nov 24, 2000 8:00 am

Post by MKJ »

it is, yea, but it gets the job done. obviously moocha's script is far more advanced
[url=http://profile.mygamercard.net/Emka+Jee][img]http://card.mygamercard.net/sig/Emka+Jee.jpg[/img][/url]
User avatar
Eraser
Posts: 19176
Joined: Fri Dec 01, 2000 8:00 am

Post by Eraser »

I used the script 4days linked to and that seems to work. Thanks.
reefsurfer
Posts: 4065
Joined: Sat Mar 08, 2003 8:00 am

Post by reefsurfer »

Let us see the finished product Eraser.
User avatar
Eraser
Posts: 19176
Joined: Fri Dec 01, 2000 8:00 am

Post by Eraser »

reefsurfer wrote:Let us see the finished product Eraser.
Can't. NDA.
Well not really NDA but that just sounds really interesting :icon26:

edit:
okay to be bloody honest I can't show you because it's a project for my work which we develop on vmwares which aren't accessible from the outside.
User avatar
Eraser
Posts: 19176
Joined: Fri Dec 01, 2000 8:00 am

Post by Eraser »

Well okay here goes, just an image.
Image
glossy
Posts: 2282
Joined: Tue Apr 30, 2002 7:00 am

Post by glossy »

there's a related article on alistapart about flash, standards, and all that jazz: Flash Satay

inside your <object> tags, you should be able to include any other content that you want displayed in leu of the browser being able to play the plugin. for example (ripped straight from the article):

Code: Select all

<object type="application/x-shockwave-flash
data="c.swf?path=movie.swf" 
width="400" height="300">
<param name="movie" 
value="c.swf?path=movie.swf" />
<img src="noflash.gif" 
width="200" height="100" alt="" />
</object>
when the <object> tags fails because the browser can't handle it, doesn't have the plugin, whatever, instead it will display the <img> tag.

pretty nifty, and standards-safe (which we all love).

even if you are going with another (javascript-bloated, longer) method, give that article a readover and take a little bit in, it will most likely come in handy one day.
User avatar
Eraser
Posts: 19176
Joined: Fri Dec 01, 2000 8:00 am

Post by Eraser »

glossy wrote:there's a related article on alistapart about flash, standards, and all that jazz: Flash Satay

inside your <object> tags, you should be able to include any other content that you want displayed in leu of the browser being able to play the plugin. for example (ripped straight from the article):

Code: Select all

<object type="application/x-shockwave-flash
data="c.swf?path=movie.swf" 
width="400" height="300">
<param name="movie" 
value="c.swf?path=movie.swf" />
<img src="noflash.gif" 
width="200" height="100" alt="" />
</object>
when the <object> tags fails because the browser can't handle it, doesn't have the plugin, whatever, instead it will display the <img> tag.

pretty nifty, and standards-safe (which we all love).

even if you are going with another (javascript-bloated, longer) method, give that article a readover and take a little bit in, it will most likely come in handy one day.
Hay that's pretty cool.
Having gotten to half the article and I managed to clean up the code a lot
User avatar
MKJ
Posts: 32582
Joined: Fri Nov 24, 2000 8:00 am

Post by MKJ »

nice one glossy :icon14:

oh and that site looks nice, eraser :icon14:
[url=http://profile.mygamercard.net/Emka+Jee][img]http://card.mygamercard.net/sig/Emka+Jee.jpg[/img][/url]
werldhed
Posts: 4926
Joined: Sat May 08, 2004 7:00 am

Post by werldhed »

Um...I know you said that you couldn't show us the site, but is that an asthma website? I'm not Dutch -- who is the site for? Is it run by some organization? Possibility of an english page? :icon17:
User avatar
MKJ
Posts: 32582
Joined: Fri Nov 24, 2000 8:00 am

Post by MKJ »

aye its all about asthma. hence the name :)
as you can see it still has a lot of lorum ipsum though :p
[url=http://profile.mygamercard.net/Emka+Jee][img]http://card.mygamercard.net/sig/Emka+Jee.jpg[/img][/url]
User avatar
Eraser
Posts: 19176
Joined: Fri Dec 01, 2000 8:00 am

Post by Eraser »

werldhed wrote:Um...I know you said that you couldn't show us the site, but is that an asthma website? I'm not Dutch -- who is the site for? Is it run by some organization? Possibility of an english page? :icon17:
No english site as it's for a Dutch asthma organisation. I said NDA as a joke, the real reason I couldn't show the site is a purely technical one. However, I think they wouldn't be happy if they knew people were clicking all through their site while it's not finished yet. A screenshot will do, it's not that interesting anyway I think.

I work at a small web development company who at this moment are quickly becoming the #1 company in the Netherlands who offer a Content Management System for websites. We're not big, about 35 people in the entire company and most people are under 30 years of age. It's always great there. Good work atmosphere and friendly people who deep down inside are all still a bunch of rascals.
User avatar
Eraser
Posts: 19176
Joined: Fri Dec 01, 2000 8:00 am

Post by Eraser »

MKJ wrote:aye its all about asthma. hence the name :)
as you can see it still has a lot of lorum ipsum though :p
Oh yeah, couldn't live without http://www.lipsum.com anymore ;)
User avatar
MKJ
Posts: 32582
Joined: Fri Nov 24, 2000 8:00 am

Post by MKJ »

Eraser wrote:
MKJ wrote:aye its all about asthma. hence the name :)
as you can see it still has a lot of lorum ipsum though :p
Oh yeah, couldn't live without http://www.lipsum.com anymore ;)
i usually just write some bogus text and spread them over a paragraph or two and copy&paste that all round :p
mwuhahaha
[url=http://profile.mygamercard.net/Emka+Jee][img]http://card.mygamercard.net/sig/Emka+Jee.jpg[/img][/url]
werldhed
Posts: 4926
Joined: Sat May 08, 2004 7:00 am

Post by werldhed »

Eraser wrote:No english site as it's for a Dutch asthma organisation. I said NDA as a joke, the real reason I couldn't show the site is a purely technical one. However, I think they wouldn't be happy if they knew people were clicking all through their site while it's not finished yet. A screenshot will do, it's not that interesting anyway I think.

I work at a small web development company who at this moment are quickly becoming the #1 company in the Netherlands who offer a Content Management System for websites. We're not big, about 35 people in the entire company and most people are under 30 years of age. It's always great there. Good work atmosphere and friendly people who deep down inside are all still a bunch of rascals.
Yeah, I kind of figured it was because it was unfinished (although I didn't see lorem ipsum at first :icon26: ). However, being unable to read Dutch, I wasn't sure what was going on in the page other than the bit about asthma. I only asked about it because I'm involved with asthma work, and was curious to know what sort of content was on the page. Now I know. :icon17:
Layout looks good, btw.
User avatar
Eraser
Posts: 19176
Joined: Fri Dec 01, 2000 8:00 am

Post by Eraser »

werldhed wrote:Yeah, I kind of figured it was because it was unfinished (although I didn't see lorem ipsum at first :icon26: ). However, being unable to read Dutch, I wasn't sure what was going on in the page other than the bit about asthma. I only asked about it because I'm involved with asthma work, and was curious to know what sort of content was on the page. Now I know. :icon17:
Layout looks good, btw.
Yeah there's no real content yet. We don't fill it with content anyway, that's up to themselves.
glossy
Posts: 2282
Joined: Tue Apr 30, 2002 7:00 am

Post by glossy »

Eraser wrote:Yeah there's no real content yet. We don't fill it with content anyway, that's up to themselves.
pff, i wish my clients did that -- i'm still waiting on all kinds of material from clients who can't get thier shit together >_<
User avatar
Eraser
Posts: 19176
Joined: Fri Dec 01, 2000 8:00 am

Post by Eraser »

Standard test document for stylesheet and readability testing :smirk:

<p><h1>Heading 1</h1></p>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Duis eu tortor. Nullam ultricies. Ut eu ante vitae odio laoreet accumsan. Maecenas pulvinar tristique ante. Aliquam nec felis lobortis massa interdum posuere. Quisque est lectus, scelerisque vel, tempus consequat, hendrerit at, felis. Phasellus volutpat, dolor eget feugiat lobortis, tellus leo convallis arcu, et lacinia tellus wisi eget neque. Morbi viverra velit in neque. Vestibulum consequat. Proin bibendum. Ut vehicula lorem in dolor. Mauris pede. Maecenas ligula nisl, adipiscing at, venenatis quis, sagittis at, magna. Nunc orci enim, porta nec, gravida cursus, auctor sed, felis. Donec eu dui eget erat tincidunt fringilla. Aenean ultricies wisi. Suspendisse ut ipsum.</p>

<p><h2>Heading 2</h2></p>
<p>In blandit mauris non dolor. Sed et sem. Curabitur elementum lectus sollicitudin tortor. Quisque tempus tempor ipsum. Ut enim eros, ultricies vel, facilisis ac, ultricies nec, turpis. Nulla urna augue, cursus sed, posuere at, dapibus sed, sem. Maecenas vitae orci. Pellentesque imperdiet diam sit amet mi. Nulla vel dolor. Etiam ipsum tortor, feugiat sed, cursus nec, vehicula sed, felis. Donec lectus urna, dapibus vel, auctor ut, cursus sit amet, felis. Sed in eros. Proin sapien orci, vehicula a, interdum vitae, malesuada a, ipsum. Maecenas quis ipsum. Aliquam id enim.</p>

<p><h3>Heading 3</h3></p>
<p>Cras aliquam sem nec dui. Praesent iaculis erat. Mauris tempus. In luctus nulla at velit. Integer eget orci in lorem convallis vestibulum. Etiam quis odio sit amet lacus dictum facilisis. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Quisque libero metus, aliquet a, tincidunt ac, ultrices non, nunc. Pellentesque pellentesque. In laoreet nulla a lorem. Proin eleifend aliquam purus. Nunc nunc. Cras urna dui, ultricies quis, pharetra rhoncus, bibendum vel, neque. In facilisis metus vel eros. Cras aliquam enim eu tellus.</p>

<p><h4>Heading 4</h4></p>
<p>Nulla facilisi. Nulla consectetuer velit et leo. Morbi purus ipsum, hendrerit vel, tempor ut, tempus vel, lacus. Cras ut nisl. Maecenas faucibus. Cras enim. Curabitur elit. Etiam sit amet odio sit amet justo accumsan nonummy. Aenean luctus leo id risus. Nam urna sapien, dignissim sit amet, pharetra in, dictum in, justo. Sed pretium. Nullam dignissim, sem et vulputate congue, eros diam auctor diam, sit amet laoreet arcu nibh sit amet dolor. Suspendisse potenti.</p>

<p><a href="index.jsp">Hyperlink</a>
User avatar
Eraser
Posts: 19176
Joined: Fri Dec 01, 2000 8:00 am

Post by Eraser »

glossy wrote:
Eraser wrote:Yeah there's no real content yet. We don't fill it with content anyway, that's up to themselves.
pff, i wish my clients did that -- i'm still waiting on all kinds of material from clients who can't get thier shit together >_<
Yeah well the truth is, only the client knows what kind of information they really want to put in there. We don't have the time for it either.

Oh yeah for those interested, I build the company's own website as well. The design isn't mine but the current implementation is.
Post Reply