HTML - Using Title Or Alt With <object And <embed
I want a descriptive test to appear to do this with <img I use 'alt'
or with <a I use 'title' How can I get the same effect with an SWF? I use the following code - but I cannot find a place where 'alt' or 'title' works reliably in IE,Opera and FF and others - help appreciated Code: <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="120" height="60" id="a120_60_us" align="middle" > <param name="allowScriptAccess" value="always" > <param name="allowFullScreen" value="false" > <param name="movie" value="http://www.easyfundraising.org.uk/images/user-banners/ef-flash/120_60_us.swf?target=_blank=try&clickThrough=http%3A%2F%2Fwww.easyfundraising.org.uk%2Ftelfordsteamrailway%2F" > <param name="quality" value="high" > <param name="bgcolor" value="#ffffff" > <embed src="http://www.easyfundraising.org.uk/images/user-banners/ef-flash/120_60_us.swf?target=_blank&clickThrough=http%3A%2F%2Fwww.easyfundraising.org.uk%2Ftelfordsteamrailway%2F" quality="high" bgcolor="#ffffff" width="120" height="60" name="120_60_us" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" > </object> Similar TutorialsDoes somebody know what is the current stay of the play with <EMBED> and <OBJECT> tags? I can not find a clear information if I need to use both tags, or just one to embed objects into HTML. I am unsure which of the below methods of embedding a flash object into a web page is correct - and which is a deprecated method. Any help would be very much appreciated! Method one: <object width="800" height="480"> <param name="movie" value="Gallery.swf"> <embed src="Gallery.swf" width="800" height="480"> </embed> </object> -- Method two: <script type="text/javascript"> var flashvars = {XMLFile: "gallery.xml"}; var params = {bgcolor: "#000000"}; swfobject.embedSWF("Gallery.swf", "myAlternativeContent","800", "480", "9.0.0",false, flashvars, params); </script> <div id="myAlternativeContent"> <a href="http://www.adobe.com/go/getflashplayer"> <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player"/> </a> </div> Hi, I am completely new to html. I have my own website, which I built using a content management system. Unfortunately this system doesn't allow me to have any access to the html head section, only the body. I want to create a slide show for my homepage. Does anyone know how I could do this please without reference to the head section? Currently, I have created a gif animation, which is fine but the file is way to large to leave it on there for good. I can create a flash slide show but have no idea how to embed it so that when a user goes to my home page the slide show starts to play automatically. Thanks Yug Hi, I've been trying to figure out how to use OBJECT and/or EMBED tags to embed a java applet in webpages and I can't make sense of it. I want people to be able to embed the java player in their own website or myspace page or whatever. I have found several similar examples and tutorials online, but I haven't been able to successfully adapt them for my situation. The webpage needs to open a java applet player archived in a .jar file on our website, and that player also takes a parameter for which project to play, with the projects saved elsewhere on our website. I can get the player to load, but I think there is a problem with taking the parameter to specify what file to open within the player. I have completely working code using an APPLET tag but since APPLET is deprecated I want to accomplish the same thing using OBJECT for IE and OBJECT or EMBED for Mozilla. I assume I will have to use some sort of browser detection and conditional statements to accomodate both browsers, but right now I can't even get something working for just one or the other. I have a couple of test pages, including the working versions with the applet tag, he http://web.mit.edu/jhansel/Public/HTML%20testing/. If anyone knows how to do this, or has any ideas what I might be doing wrong, it would be extremely helpful. Thanks so much. Jon Hello, I am wondering if something is possible.. and if it is, how I would go about accomplishing the desired result.. This is a sample page to illustrate the problem http://comp.uark.edu/~bcagnin/test/index.html Is there a way to resize the object from a link that is within the website being displayed in that very same object?? Also, I am willing to use iframe if there is a solution that can be found with that... Thanks!! Tyrick I hope this is the correct forum. I have a large swf file that until some of this loads all the user sees is a blank box on the page. What I would like to do is show a gif or jpg there that is small enough to show the control bars of the swf file so the user can see something is going on and then when enough loads they can push play and see the video not the gif. I wanted to use preloaders but my client says no they want a static gif above the player controls. I have seen this done on other sites but I cannot figure this out. I code in the image with a div tag above the swf embed code using transparent in the embed code and all I see is a blank screen until the movie has downloaded and my controls are gone when it loads. So I am wondering do I need a transparent title page in the swf so it will show the image or what? Code where image will go: (<div id="flashcontent"> This text is replaced by the Flash movie. </div> ) Here is my embed code: (<script type="text/javascript"> var so = new SWFObject("capture3.swf", "mymovie", "640", "480", "8", "#336699"); so.addParam("quality", "low"); so.addParam("wmode", "transparent"); so.addParam("salign", "t"); so.write("flashcontent"); </script>) Thanks! Hi, i know that iframe isnt xhtml compatible, what do i use instead? is it the embed tags? If so, how do i use them? i take it i dont just replace the word iframe with embed? Thanks! Hi, Is it possible to embed a quicktime .mov file and not allow the user to download the video? Thanks for the help, B Why won't it work: HTML Code: <object width="300" height="42"> <param name="src" value="http://platnium.fileave.com/No_More_Memory.mp3"> <param name="autoplay" value="true"> <param name="controller" value="true"> <param name="bgcolor" value="#ffffff"> <embed src="http://platnium.fileave.com/No_More_Memory.mp3" autostart="true" loop="true" width="300" height="42" controller="true" ></embed> </object> For some reason this code won't work. The black window shows up with controls but the video doesn't play. The filename and directory are correct. <object id="MediaPlayer" width="200" height="200" classid="22D6F312-B0F6-11D0-94AB-0080C74C7E95"> <param name="FileName" value="gts1.wmv"> <param name="AutoStart" value="True"> <param name="ShowControls" value="True"> <param name="ShowStatusBar" value="True"> <param name="ShowDisplay" value="True"> <param name="AutoRewind" value="True"> <embed type="application/x-mplayer2"pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/" width="200" height="200" src="gts1.wmv" filename="gts1.wmv" autostart="True" showcontrols="True" showstatusbar="True" showdisplay="True" autorewind="Flase"> </embed> I can't get one of my pages to validate in xhtml, it seems to be the <embed> part which is causing the problems. Here is a link to the page: http://www.a104mc.connwarwicker.co.uk/music.html And here is the section which is causing most of the errors: HTML Code: function playSound(s){ var f = playList[s]; var t = songNames[s]; $('connsplayground').innerHTML = ""; $('connsplayground').innerHTML = "<embed src='http://www.a104mc.connwarwicker.co.uk/sounds/"+f+"' hidden='true' style='width:0px;height:0px;' autostart='true' loop='true' />"; $('songtitle').innerHTML = t; currentSong = s; alterText(); } With such errors as: there is no attribute "src". there is no attribute "hidden" there is no attribute "style" there is no attribute "autostart". etc... I'm using this doc type: HTML Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> Any idea as to how i can fix these errors? I've tried using an <object> instead, but that didn't seem to work very well at all. Hi everyone, Now I am trying to put the pdf file on my web page. I use: <embed src="myfile.pdf" width="800" height="700"> but it doesn't appear in the page, it only shows the icon like small square picture. My browser is IE8. Any Suggestion, please.... Regards, Win. Hello there, Heres a question, I started a document and inserted flash using dreamweaver. Dreamweaver made an <object> tag and its <param> tags, Also it put an <embed> tag inside that whole deal. using HTML 4.0 Strict DTD, when i validated the document, the was an error that said: Code: The tag name: "embed" Not found in currently active versions.[HTML 4.0] I know that this little trick was used to make sure the flash would play in IE and FF and all browsers for that manner because of the different tag support. So with that said, how do we ensure today that the flash will play in all browsers if we cant use <embed> anymore with current active versions? Thanks in advance Hello, I am designing and building a website and I can't figure out how to do something. I guess you could say I'm an 'somewhat advanced newbie', so just bear with me. Here's what my goal is: I'd like to have, on every webpage, a couple areas that are sourced from an individual file. For example, right under the header I'd like to have an announcement bar. My thoughts are is that I could just make a separate HTML file, called 'Announcement.html' and embed that into the annoucement area. This way, I could just edit the one HTML file and it would make the changes site-wide. I would also like to do this for my header, footer, etc... The main thing that would be unique to the webpage would be the actual content. My thoughts are that I could do this by embeding a HTML file into the webpage, but if there are other ways to go about this, I'd be appreciative of that as well. If you need any other information, I'll be glad to get it for you. Any help will be greatly appreciated, PianoKid Hi folks, I have a simple question using the <embed> tag. My code is as follows: <embed width='100%' height='100%' src='../media/movies/intro.wmv' autostart=true> The movie plays just fine but when the browser loads it seems to load the first frame of the video and superimposes the actual video over that. However, if I go to another tab or minimize the browser then return to the screen the movie looks fine. I'm still learning about this stuff so I'm not sure if there is a buffer/cache issue or not. Can someone please give me some idea on how to solve this problem? Thanks in advance Hi, I am currently having trouble embedding my flash file into html. No matter what I try it will not work. I don't have much experience in html so could really use some help please. This is the code that I am using... <object classid="clsid: D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6" width="814" height="344"><param name="movie" value="http://megaswf.com/serve/79631/" /><param name="quality" value="high" /><param name="menu" value="false" /><param name="scale" value="exactfit" /><embed src="http://megaswf.com/serve/79631/" width="814" height="344" menu="false" scale="exactfit" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object> Thanks, Adam My website is being used to sell jewelry. Each time you click on one of thumbnail images a separate window pops up with a copy of the thumbnail but larger. I want to be able to click on an thumbnail image and see 2 pictures side by side in the pop up. I've tried, and it doesn't seem to work. Does anybody have any Idea how to do this? Here is my script. this is a target page within an iframe so it just repeats with different pictures. Thank you to whoever can help! <center><table> <tr> <td><div align="center"><a href="images/DSC00524.JPG" target="_blank"><img src="images/thumbnails/DSC00524thumnail.JPG" width="45" height="42" border="0"></a></div></td> <td><div align="center"><a href="images/DSC00576.JPG" target="_blank"><img src="images/thumbnails/DSC00576thumbnail.JPG" width="45" height="42" border="0"></a></div></td> <td><div align="center"><a href="images/DSC00580.JPG" target="_blank"><img src="images/thumbnails/DSC00580thumbnail.JPG" width="45" height="41" border="0"></a></div></td> <td><div align="center"><a href="images/DSC00591.JPG" target="_blank"><img src="images/thumbnails/DSC00591thumbnail.JPG" width="45" height="41" border="0"></a></div></td></tr> I'm trying to embed a .wav file into my webpage. I've used the following syntax: <EMBED src="funnyfarm.wav" autostart=true loop=false volume=100 hidden=true width="0" height="0"> <noembed><BGSOUND src="funnyfarm.wav"></noembed> Originally I wrote the syntax with <NOEMBED> and </NOEMBED> but FrontPage changed them to what you see above. The page is the Main.htm which resides in the main frame of a frameset page. I do not want the music embedded into the frames page (index.htm) because I want the music to change with the page. I have tried to preview this in a browser but there's no sound. I have tested the wav independently with different media players, it works. Why am I getting no sound? I have also tried FrontPage's default method on Page Properties which just generates bgsound in the header tag but still no good. Is there another tag I can try, or is there a fault in my code? Please help. My html file has 7 embed tag lines at the top so that I can play wav files when a mouseover is done. That works. The problem is that there seems to be no way to hide some tiny little dots on the screen where the embed files live. When I tried hidden="true" on the embed tag, the sounds will not play. So then I moved the embed lines at the bottom of the html file after my iframe line but before the close body tag, and the sounds stopped playing. My goal is to have the little dots appear at the bottom of the screen where they are not so obvious, or, even better, not appear at all. Does anyone have any ideas, please? |