szupie
May 29 2005, 07:47 PM
| | My site is going to use a lot of Flash files pluged into the page. I embed it into the page like this:
CODE <object width="550" height="400"> <param name="movie" value="flashfile.swf"> <embed src="flashfile.swf" width="550" height="400"> </embed> </object>
What I want to know is: Is it possible to give the object an alt text? Something like the alt="The Flash File" that is used in IMG tags is what I want. I've tried putting it inside the object tag, param tag and embed tag. That didn't work. |
Comment/Reply (w/o sign-up)
ninjamunky
May 29 2005, 08:04 PM
The alt text is displayed when the file is not displayable, or when you mouse over the image and the tooltip comes up. And I don't think a tooltip comes up on flash docs. So, I don't see the point  However, I have heard of editting the Flash menu before, or at least removing some of the items, so that it's down to like 2 options. Maybe you should post the plan for the big picture... maybe someone could help better that way. I'll be experimenting until you post back.
Comment/Reply (w/o sign-up)
szupie
May 29 2005, 08:14 PM
QUOTE (ninjamunky @ May 29 2005, 04:04 PM) The alt text is displayed when the file is not displayable, or when you mouse over the image and the tooltip comes up. And I don't think a tooltip comes up on flash docs. So, I don't see the point No, alt text is not the thing that comes up on hover. QUOTE (ninjamunky @ May 29 2005, 04:04 PM) However, I have heard of editting the Flash menu before, or at least removing some of the items, so that it's down to like 2 options. Maybe you should post the plan for the big picture... maybe someone could help better that way. I'll be experimenting until you post back. What do you mean by Flash menu? I don't think I've heard of it before. Maybe there's a tag that displays text when the object is not found. Maybe not.
Comment/Reply (w/o sign-up)
Becky
May 29 2005, 11:20 PM
QUOTE What I want to know is: Is it possible to give the object an alt text? Something like the alt="The Flash File" that is used in IMG tags is what I want. I've tried putting it inside the object tag, param tag and embed tag. That didn't work. The alt attribute is only usable with the HTML <img> tag. QUOTE Maybe there's a tag that displays text when the object is not found. Maybe not. You could, alternatively, use the <noembed> tag so that text is displayed if the user does not have the flash plugin. Example:CODE <object width="550" height="400"> <param name="movie" value="flashfile.swf"> <embed src="http://fun.tmc.dyn.ee/groovin_granny.swf" width="550" height="400"> </embed> <noembed>You do not have the Flash plugin installed to view the file correctly. You may download the plugin from here: http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash</noembed> </object> Notice the insertion of the following code:CODE <noembed>You do not have the Flash plugin installed to view the file correctly. You may download the plugin from here: http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash</noembed> I hope this helps... Regards, Becky
Comment/Reply (w/o sign-up)
chiiyo
May 30 2005, 02:42 AM
I think what you're looking for is the title attribute. The alt attribute in IMG tags is actually often misused to create tooltips when your mouse is hovered over the image, alt attributes are for when the image is switched off or otherwise inaccessible, and then displayed as an "alternative". The title attribute is actually the correct attribute for tooltips and the like, and can be used in most tags, although apparently not all browsers would show the title string as a tooltip, especially the older ones. Although in your case the noembed tag recommended by Becky is a better choice...
Comment/Reply (w/o sign-up)
szupie
May 30 2005, 10:58 AM
No, I'm looking for an attribute that comes up when the object is unavailable... Well, I guess maybe there is no way to do that with html... I might try doing it with php.
Comment/Reply (w/o sign-up)
Becky
May 30 2005, 01:35 PM
QUOTE (szupie @ May 30 2005, 10:58 AM) No, I'm looking for an attribute that comes up when the object is unavailable... Well, I guess maybe there is no way to do that with html... I might try doing it with php. There is no way in which to use the alt attribute with plug-in content and this goes for the title attribute as well. This is because browsers do not offer support for such attributes for the <EMBED> and <OBJECT> tags. I suggest you try the method I have described above  Regards, Becky
Comment/Reply (w/o sign-up)
szupie
Jun 21 2005, 03:28 AM
Yay, I've finally found the solution to the problem... I stumbled upon it yesterday on A List Apart. CODE <object type="application/x-shockwave-flash data="yourflashhere.swf" width="550" height="400"> <param name="movie" value="yourflashhere.swf" /> <img src="noflash.gif" width="200" height="100" alt="Astahost" /> </object> This code follows w3c standards, and should be supported by all browsers. The reason why this works is because when the browser can't work with the <object> element, it goes through the next elements in the list until it finds one that works, which is the img tag. I have only tested this with Firefox and Lynx. In Firefox, the image does not come up when the swf is not found, but only when the plugin is not found. In Lynx, the plugin is obviously not found, so the img tag would be used. Because Lynx is non-graphical, it uses the alt tag of the img element. In my opinion, this combined with some php/dom script, detecting whether the file is there or not, seems to be the best solution I know of. I'm kinda stubborn with what I think is the most logical.
Comment/Reply (w/o sign-up)
soleimanian
Aug 17 2005, 10:31 PM
QUOTE (szupie @ May 29 2005, 11:17 PM) My site is going to use a lot of Flash files pluged into the page. I embed it into the page like this: CODE <object width="550" height="400"> <param name="movie" value="flashfile.swf"> <embed src="flashfile.swf" width="550" height="400"> </embed> </object> What I want to know is: Is it possible to give the object an alt text? Something like the alt="The Flash File" that is used in IMG tags is what I want. I've tried putting it inside the object tag, param tag and embed tag. That didn't work. just put your object in a table and give title to table [CODE] <table width="100%"> <tr> <td title="your title here"> <object width="550" height="400"> <param name="movie" value="flashfile.swf"> <embed src="flashfile.swf" width="550" height="400"> </embed> </object> </td> </tr> </table>
Comment/Reply (w/o sign-up)
Similar Topics
Keywords : html, alt, text, objects
- Good Books For Html And Css Beginners
(1)
Indentation In Html
(4) Whenever I start a new project one of the first things I do is put in a base index.php page. Yes,
it's a .php file, but I won't be looking at the PHP just yet. Normally, it looks a little
something like this: CODE Title
I've already got a few basics set out that I tend to stick to. For
instance, so far each of my projects has been XHTML Strict, which is why it's always up there.
Similarly, I use the same character set, and (at least initially) have two CSS files calle....
Style P And H? Html Tags
(2) Well, I have found that css was very hard to predict and precise control their apperance. When mix
and use the p and h? tags. Their apperaence were not identity. Place the h? tags within the p tag
causes style error on both firefox and IE. So, anyone should do it reserved, instead, place the p
tag with any h? tags will do the jobs on both browsers. Still learning it coz it much varies when
doing styles. Tested it on XHTML 1.0 Strict....
Help With Making A Textbased Game
im new to text based games (2) I'm new to text based games and i want to learn how to make them can someone teach me the basics
or the starting of a text based game....
Yaml - (x)html/css Framework
(2) The YAML (Yet Another Multicolumn Layout) Framework is an excellent open source project that helps
you to create two or three columns (X)HTML/CSS floated layouts. This framework is very easy to use
and allows you to modifiy it to your own needs, this framework offers some tools for rapid
development of modern and accessible CSS layouts. QUOTE Yet Another Multicolumn Layout (YAML)
is an (X)HTML/CSS framework for creating modern and flexible floated layouts. The structure is
extremely versatile in its programming and absolutely accessible for end users. Based on w....
Sitepoint's Css And Html Reference Sites
(2) Recently the folks at SitePoint.com launched two excelent online reference sites for web designers
and developers, the first one is the SitePoint CSS Reference and the second one is the SitePoint
HTML Reference (Beta) . Both of them are free and available to anyone and everyone who needs to
lookup any information related to CSS and HTML in an easy and fast way. The SitePoint HTML
Reference (Beta) is still in progress. Also, both of them are very detailed and up-to-date on each
subject and are focused not only to beginners because they covers from general to advance....
Html Emails How?
(12) How on earth do you create HTML emails? I have been searching Google for some time now and can find
ABSOLUTELY no information what so ever on how to ACTUALLY create HTML content emails. It just a
bunch of programs and Microsoft applications, or testing facilities, I don't need any of this,
there must be some coding system to it? I tried emailing using basic direct HTML tags (like ), but
it fails (it just shows ), so how can I do this? I am not looking for anything really fancy, I
just want to use some basic bolding and font changes and things to make it look a ....
Html Table Issue.
(18) Does anyone know how I might create a HTML table but using pure CSS (div's and what not). I
really have no idea why, but for some odd reason my layout goes nuts if I try to use the table tags,
even used properly with no errors the whole thing just brakes down (I don't use tables
anywhere). So I figured my only option is to attempt to do it CSS way if possible?....
About Html
(15) How long did it take you to learn Html?? It took me about 2months to learn the basics lmao. I need
a tuturial that has it all or a website.i would like it if someone did it. Thats why i get my
friends to help me /biggrin.gif" style="vertical-align:middle" emoid=":D" border="0"
alt="biggrin.gif" /> But they are nice friends thats why. Like 2 people have helped me Sten and
Habble Sten Owns www.habbofront.com which uses Asta as its host and www.habble-aus.com which uses
Asta as its host. so this must be a good host because 2 good sites that have expert Htmlers so need
he....
Html Stats
(3) Do you know how to get website stats in a html code?? Like The amount of people viewing the site at
the moment and stuff like that?? because i need to know. Thanks if you reply to this i am in need
for it. /tongue.gif" style="vertical-align:middle" emoid=":P" border="0" alt="tongue.gif" />....
Stretching My Site Vertically
Using CSS or HTML (6) I know it's possible, I've seen it one time. But I forgot. Many websites, if they hold more
content than there is room for in the minimum height, the site stretches vertically. How can I do
this? I only know that I need a background image of 1px height. Thanks in advance MediYama....
Scripts And Html
(13) Hey /smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />, In the
note pad, I put the proper code for php ?> and save the file as name.php But i can't put
that file in html. This is a big problem since Iam trying to make an online text based game. Whats
the code to put a script inside a web page. And do i need any special software for it? If so
where can i download it? Thanks for reading /biggrin.gif" style="vertical-align:middle" emoid=":D"
border="0" alt="biggrin.gif" />.....
Firefox Inventing Its Own Html?
(9) I am building a website for a client. I finally have the animations and the site content the way i
want it. I updated the site via FTP, and IE displays it perfectly. Firefox however displays my "work
in progress" animations still, even though the index file references the new animation. I have
cleared cache, and even looked up the site on different computers, and on every one, FF displays
those darn rough draft animations while IE works perfectly. Any idea as to what is going on here?....
Quick Tips On Html And Css
(11) Here are just some general tips, helpers and time-savers for HTML and CSS. HTML Ideally, you should
be working under the XHTML 1.1 doctype specification. Some reasons: Improved semanticism - make use
of the elements available appropriately to convey the information as it was intended. Improved
understanding - because of an increase in semanticism, it's easier for your audience to
understand what your trying to convey. Cleaner code - due to the deprecation of some elements and
the strict requirements of nesting, closing and structure, your code becomes much cleane....
Bulletproof HTML: 37 Steps To Perfect Markup
Excellent article that highlights and answers most FAQ about HTML (4) Hi, i want to share with everybody this excellent article at sitepoint.com that i just read, it
highlights and answers most FAQ about HTML, it's very consice and simply and for me it is a must
to read. You can read it at Bulletproof HTML: 37 Steps to Perfect Markup . Best regards,....
Animated Favicon With Scrolling Text!
Free Animated FavIcon With Scrolling Text! (13) Anybody needs Animated FavIcon with your site address scrolling on that along with your logo?
Check this site! Thats the site without any customization Options! But if you need to customize
the Animated Icon, please reply here (In the sense, Fonts & Color Customization) Im doing it
for Free! Example is here: checkOut the fav icon for: www.niranvv.com and
www.fun.niranvv.com You can see one Icon along with one Scrooling Text: NiranVv.Com in the
icon! So, if you need that one, ask here! I'll give you the animated favIcon(Gif Format) ....
Home Videos
html code for home video (4) I was wondering if anyone knows how to turn a home video that is saved on your computer to that of a
html code so I can put it onto my myspace page... Please if anyone at all knows how to do this
please please help me!!!!....
A First Peep Into Html
(5) Dear friends HTML is the building block of any web page. Without it no pages can be written though
there are some exceptions. Even you got to have some knowledge of HTML to write dynamic web
applications. An HTML file is a text file containing small markup tags The markup tags tell the Web
browser how to display the page An HTML file must have an htm or html file extension An HTML file
can be created using a simple text editor HTML is acronym of Hyper Text Markup Language. This time
I will discuss about HTML tags. Dear friends HTML is the building block of any web pa....
Where To Find A WML To HTML Converter ?
(2) hello people, i need to convert few wml codings to html.. I have found plenty of converter that
convert html to wap. But none of my use.. Please guide me.. Thanks in advance....
HTML: Seems Like A Simple Problem, But I'm Baffled!
(4) i got this one question...I have this page http://ebiztip.com/thankyou.html with an image of the
book not coming out.....the image is named chapterm-big.jpg...but the image just want to hide....i
swear there's nothing wrong with the html....or am I wrong???....
Need Help With The HTML HR Tag
(5) Hi, does anybody knows which is the equivalent tag in CSS of the HTML HR tag or how do i replace
this. I need this because the HR tag is deprecated and i wanna validate a website. The code that i
need to replace is this: QUOTE best regards,....
HTML Editor
(23) I am sick of using notepad to create my HTML pages and I want somthing better. Are there any
programs available that are easier to use than notepad for html editing. If so i wolud like to know
about them. Thanx....
How Can You Spice Up Your Basic HTML Site ? Beginner Needs Help
(9) Well im new to this,and i know a person who knows how to do HTML,I of course dont lol,but I was
wondering with html can you change the way the sites you make on here look and ect..(put flash in
and w/e..)....
Css For Input Text Only
I don't think there is a solution but... (17) I have read (or glimse through) all the CSS 2 specification and google a lot but found no solution
for the following problem. Anyone can help? The basic idea is the input field for the type text ,
password is quite small, so I want to change its width by CSS CODE input { width :
400px; } However, this affects the width of the radio button too (in most current browser). Is
there anyway that I can apply this CSS to input field which is of the type text or password
ONLY? The tricky part is I MUST NOT use any additional attribute in input field, ....
Free Shoutbox? HTML, Flash or PHP Code
(25) does anyone know where i can find a free shoubox thats customisable? it can be in html, php or flash
format. thanks in advance paul....
Force Object To Load Last
html question (2) Alright html wizards...i've got a question ^_^ I assume that, like other programming codes, html
and php compilers read a code from top to bottom. Say I have a object though...and I want it to load
last...how do I do that? Let's just pretend I have an image that I do not want to load until
everything else on the webpage is loaded...how can I set that up? Is there perhaps a javascript code
for it...or maybe a CSS style I could add onto the object? Or better yet, is it possible to make
everything within a div/span/table tag load last? Another thing...if I leave an....
Wrap
I am trying to wrap text after a textbox (2) I am trying to wrap text after a textbox. It is working fine on IE. but it doesn't work on
Netscape 7.0 and Firefox 1.0.1 /huh.gif" style="vertical-align:middle" emoid=":huh:" border="0"
alt="huh.gif" /> Following is the code: CODE Airport/city
name or 3 letter code. The "Airport/city name or 3 letter code. " text waps
around in IE by not in NN or firefox. Do somebody tell me how to do it?
Notice
from m^e:
Please put your code between CODE tags from next time onwards. That ....
Html W/ Embedded Flash
How do I get rid of borders?? (9) Hey if any of you HTML wizzes out there could help me - I would greatly appreciate it. I am
designing some web site stuff with flash only. I know I know I should be using dreamweaver or
something else in addition - which I don't have access to on my computer here at work. When I
publish my files I can't get rid of the border around my swf file when I view it in a browser.
Is there any way to get rid of this $#%$ed border?? I have tried all the options I can find in
flash to no avail. I'm thinking there probably is some simple HTML code to get rid of the....
Embedding XML into HTML
(2) Hi, I am looking for a way to embed external rss/xml files into my html page, how/is this possible?....
Basic Tips and Tricks in HTML
(17) Here is some quick links for basic html coding... A quick and easy way to create your first web
page! -> The easiest HTML guide for beginners You'll learn how to create tables from real
examples. -> How to create TABLE? You will learn how to create frames from a real example.
You'll see how to create a borderless frame, how to specify the target frame, etc. -> How to
build FRAMES? Follow a few easy steps to add sound to your web pages. -> How to add sound to a
web page? This page tells you how to automatically load a visitor to another web page.....
Looking for html, alt, text, objects
|
See Also,
*SIMILAR VIDEOS*
Searching Video's for html, alt, text, objects
|
advertisement
|
|