HTML - Null Error From "no Flash Content"
I am using swfobject javascript to write flash content to a div. while there are many great advantage to using this method one i rather like is how easy it is to display alternative content if the user does not have flash player installed. You simply put whatever you want to be displayed inside the div, if flash player is not installed it is displayed, if it is, the flash writes over the div content.
attributes.id = "flash"; swfobject.embedSWF("flash.swf", "flash",... <div id="flash">no flash</div> Since i'm using javascript to load the flash anyway, i took it a step further and used javascript to load the alternative flash content. onload=function() { var txt=document.getElementById("noflash") txt.innerHTML='<img src="bg.gif" width="400" height="250" alt="bg" title="">'; } <div id="flash"> <div id="noflash"></div> </div> The only problem is in ie, i receive a null error because when the flash is writen to the div the noflash div is "deleted" so when the javascript trys to write to it it doesent find it and i receive a null error. One solution was to make a second hidden 'noflash' div but then i have a validation problem with duplicate ids. Similar Tutorialshttp://www.colletts.co.uk/winter_dolomites.htm I have the above page that redirects users to my Winter Website - the HTML below isn't valid W3C does anyone know of a better and valid way to get this done? Cheers, Mas HTML Code: <META HTTP-EQUIV="Refresh" CONTENT="2.5;URL=http://www.colletts.co.uk/winter/winter_dolomites.html" /> Mates, hi.... I am having a hard time trying to fix a simple problem... I have a checkbox that does not return null when it is unchecked... it is always returning "on". here the snippet <th> <td><input type="checkbox" id="test" name="test" onclick="javascript:test();"/></td> <th> function test() { alert($("#switchBox").val()); } could I get some help from here... tks hi. i have some problems with inserting flash navigation bar into my macromedia dreamweaver 8. i made myself a bar on this page www.guistuff.com or trty it here www.hypergurl.com its pretty nice looking bar and i tought it would be much easier placing it in macromedia. so, i finished designing it and i got two things. thorn.swf file and a html code. this is the code <OBJECT classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" WIDTH=155 HEIGHT=270> <PARAM NAME=movie VALUE="thorn.swf?tarframe=_self&exbackground=808080&makenavfield0=Vijesti&makenavurl0=&makenavfield1 =Informacije&makenavurl1=&makenavfield2=Akcije&makenavurl2=&makenavfield3=Udruge&makenavurl3=&makena vfield4=Foto galerija&makenavurl4=&makenavfield5=Forum&makenavurl5=&makenavfield6=Chat&makenavurl6=&makenavfield7 =Kontakt&makenavurl7=&makenavfield8=Marketing&makenavurl8="> <PARAM NAME=loop VALUE=false> <PARAM NAME=menu VALUE=false> <PARAM NAME=quality VALUE=high> <PARAM NAME=scale VALUE=noborder> <PARAM NAME=salign VALUE=LT> <PARAM NAME=wmode VALUE=transparent> <PARAM NAME=bgcolor VALUE=#000000> <EMBED src="thorn.swf?tarframe=_self&exbackground=808080&makenavfield0=Vijesti&makenavurl0=&makenavfield1=I nformacije&makenavurl1=&makenavfield2=Akcije&makenavurl2=&makenavfield3=Udruge&makenavurl3=&makenavf ield4=Foto galerija&makenavurl4=&makenavfield5=Forum&makenavurl5=&makenavfield6=Chat&makenavurl6=&makenavfield7 =Kontakt&makenavurl7=&makenavfield8=Marketing&makenavurl8=" loop=false menu=false quality=high scale=noborder salign=LT wmode=transparent bgcolor=#000000 WIDTH=155 HEIGHT=270 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED> </OBJECT> <a href="http://www.guistuff.com/"><img border="0" src="http://www.guistuff.com/images/11dot.gif" width="1" height="1"></a> <script language = "javascript"> <!-- theObjects = document.getElementsByTagName("object"); for (var i = 0; i < theObjects.length; i++) { theObjects[i].outerHTML = theObjects[i].outerHTML;} //--> </script> what should i do? please help me thanx Just out of curiosity, if a server returns a page with code 3xx and a "Location: url_1" header, but also includes a <meta http-equiv="refresh" content="0;url=url_2"/> tag, then would the browser be expected to redirect to url_1 or url_2? I've seen on some sites, adobe.com for example, where a Flash movie appears to 'hover' above the contents of the rest of the site seemingly not confined to a cell. Many of these are triggered by rollover of a link presumably coded in the HTML. I'm wondering how to do it. I know how I would do it if I authored the entire site in Flash, but these pages that I'm seeing are HTML, ASP, JSP, etc. Anyone?? Thanks in advance - sleepydad A customer gave me a Word doc that they want turned into a printer friendly web page. I understand that there are tons of ways to do this but I really want the answer to the subject. What i'm referring to is a form that someone can print from the browser and "fill in the blanks" on the page where there are "underscores". My question is how to code those underscores. I tried manipulating the <hr> tag but it's putting way too much space in between each <hr>. I've already coded a "fill in the blank" line using <u> nbsp;</u> but that looks very messy. What do you guys/gals think? I was hoping someone could clue me in as to whether or not this would be possible. I'm thinking it isn't but I need to make sure. I'd like to provide a file for people to download on my website, but when they click on the link and the download window appears I don't want them to have the option of opening it. Is it possible to only give them the option to save the file? Sounds incredibly unlikely but I gotta know. hi, i am working on <div> i have to hide some part of the table. I am not able to hide that table part can anybady tell me where is the error. Code: <html> <head> <script type="text/javascript"> function callme(){ document.getElementById("hid").style.visibility="visible"; } function hideme(){ document.getElementById("hid").style.visibility="hidden"; } </script> </head> <body> <form name="myform"> <table width="100%" border="4" cellpadding="2" cellspacing="2"> <tr> <td class="tableheader" colspan="9">TS </td> </tr> <div style="visibility:hidden" id="hid"> <tr> <td width="17%" class="labeltext">Tran Code</td> <td width="1%" class="blanktext">:</td> <td colspan="4" class="blanktext">Name</td> </tr> <tr> <td width="17%" class="labeltext">Product Type</td> <td width="1%" class="blanktext">:</td> <td colspan="4" class="blanktext"> </td> </tr> </div> <tr> <td> </td> </tr> </table> <input type="button" onclick="callme()" value="show"> <input type="button" onclick="hideme()" value="hide"> </form> </body> </html> thx in Adv, Hanm. Hello, I want to load a page in a iframe, and when i do this, i want that page to be displayed not at the begining of that page, i want that page to be displayed at a "x" and "y" position specificated by me. How can i do that? Thank you. Both of the ways [see code below] for some reason do not work with XHTML transitional. I am getting this error: end tag for "link" omitted, but OMITTAG NO was specified. How can this be fixed? Hey guys, I've been working on this website some more, & many of you have been a great help to me in the past. I've come with another question.. http://www.cedarcreekyouth.org/ This is the page I ran through the W3C Validation thing.. I've got two more errors and three more warnings. I do not know how to fix them.. I've tried a few things, but my knowledge has failed me. Could someone show me how to fix this, with an explanation? Please and Thank you. Cody Hi, I have a problem with validating Strict XHTML 1.0 ... The tag: "option" doesn't have an attribute: "onchange" in currently active versions.[XHTML 1.0 Strict]... Is there a way around this? Here's the code:. <select name="birth_month" onchange="form_d('yes');" size="1" style="width:8em"> <option<?php echo empty($a_birth_month)?' selected="selected"':''?> value="" onchange="form_d('yes');" >Month</option> Thanks Only another million pages to go. Hi all, I am currently working on a website using Dreamweaver CS3. Whenever I view the (currently very basic) site in Firefox I get the line of code I entered as the title of this thread at the top of the page (directly above the banner) as if I had just typed it into the canvas area (correct term?). Whenever I view it in IE it appears just fine, not sure about other browsers though. I began by creating a template and adding it to the page you see he HTML Code: http://www.geocities.com/makotronic/indexx.htm Here is the code for the template: Code: <%@LANGUAGE="JAVASCRIPT" CODEPAGE="65001"%> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- TemplateBeginEditable name="doctitle" --> <title>Template for Parish Website</title> <!-- TemplateEndEditable --> <!-- TemplateBeginEditable name="head" --> <!-- TemplateEndEditable --> <style type="text/css"> <!-- body { margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; } body,td,th { font-family: Arial Narrow, Verdana, Arial, sans-serif; } .style5 {font-size: 14px} --> </style></head> <body> <table width="750" border="0" cellspacing="0" cellpadding="0"> <tr> <td colspan="2"><img src="../Images/welcomebanner.gif" width="750" height="125" /></td> </tr> <tr> <td width="160"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td> </td> </tr> <tr> <td> </td> </tr> <tr> <td> </td> </tr> <tr> <td> </td> </tr> <tr> <td> </td> </tr> <tr> <td> </td> </tr> <tr> <td> </td> </tr> </table></td> <td width="590" align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td> </td> </tr> <tr> <td valign="top"><!-- TemplateBeginEditable name="Main Body" -->Main Body<!-- TemplateEndEditable --></td> </tr> </table></td> </tr> </table> </body> </html> And for indexx.htm (I added a second 'x' because I already had a 'index.htm' file in GeoCities): Code: <%@LANGUAGE="JAVASCRIPT" CODEPAGE="65001"%> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/template.dwt.asp" codeOutsideHTMLIsLocked="false" --> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- InstanceBeginEditable name="doctitle" --> <title>Welcome to the Greencastle Parish Website</title> <!-- InstanceEndEditable --> <!-- InstanceBeginEditable name="head" --> <style type="text/css"> <!-- .style8 { font-size: 36px; font-weight: bold; } --> </style> <!-- InstanceEndEditable --> <style type="text/css"> <!-- body { margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; } body,td,th { font-family: Arial Narrow, Verdana, Arial, sans-serif; } .style5 {font-size: 14px} --> </style></head> <body> <table width="750" border="0" cellspacing="0" cellpadding="0"> <tr> <td colspan="2"><img src="Images/welcomebanner.gif" width="750" height="125" /></td> </tr> <tr> <td width="160"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td> </td> </tr> <tr> <td> </td> </tr> <tr> <td> </td> </tr> <tr> <td> </td> </tr> <tr> <td> </td> </tr> <tr> <td> </td> </tr> <tr> <td> </td> </tr> </table></td> <td width="590" align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td> </td> </tr> <tr> <td><!-- InstanceBeginEditable name="Main Body" --> <span class="style8">Header</span> <p class="style3">Main Body</p> <!-- InstanceEndEditable --></td> </tr> </table></td> </tr> </table> </body> <!-- InstanceEnd --></html> Cheers for any help! Niall Hey, I'm trying to write some code for expanding and concealing text You can see this in action at youtube when you click the (more) button to expand text. Suppose I had a heading: MyHeading and a body of text: MyTextHere How do I make it so that when you click MyHeading it makes MyTextHere (initially not visible) appear, and when you click MyHeading again, it makes MyTextHere disappear? Thanks Alot. Rather than write them out i took a screenshot. So how do i get past those? I'm assisting someone that created a google ad which wasn't approved because there is an HTTP_TRANSACTION_READ_RESPONSE_HEADERS error. Support gave him a log file which can be duplicated on Google Chrome by going to chrome://net-internals/ then running the website in question in another tab (www.spanishtavern.com/home.html) and then checking the events tab and wading through the entries, for me the error appeared around 30 lines in. The error looks like this, but I have no clue what it is referring to apart from it dealing with headers. I'm handy with HTML but this one is beyond me. Any direction or help would be much appreciated. Thanks! t=1311653551486 [st= 1] +HTTP_TRANSACTION_SEND_REQUEST [dt= 0] t=1311653551486 [st= 1] HTTP_TRANSACTION_SEND_REQUEST_HEADERS --> GET /home.html HTTP/1.1 Host: www.spanishtavern.com Connection: keep-alive User-Agent: Mozilla/5.0 (Windows NT 6.0; WOW64) AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.122 Safari/534.30 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Encoding: gzip,deflate,sdch Accept-Language: en-US,en;q=0.8 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3 Cookie: SN4c18c1d8bcd47=p8ik1mvooii85pmlacrliejh56 t=1311653551486 [st= 1] -HTTP_TRANSACTION_SEND_REQUEST t=1311653551486 [st= 1] +HTTP_TRANSACTION_READ_HEADERS [dt=94] t=1311653551487 [st= 2] HTTP_STREAM_PARSER_READ_HEADERS [dt=92] t=1311653551579 [st=94] HTTP_TRANSACTION_READ_RESPONSE_HEADERS --> HTTP/1.1 404 Not Found Date: Tue, 26 Jul 2011 04:12:31 GMT Server: Apache/2.2.3 (Red Hat) X-Powered-By: PHP/5.1.6 P3P: CP="NOI NID ADMa OUR IND UNI COM NAV" Cache-Control: private, must-revalidate Set-Cookie: SN4c18c1d8bcd47=p8ik1mvooii85pmlacrliejh56; path=/ Content-Length: 5431 Connection: close Content-Type: text/html; charset=UTF-8 t=1311653551580 [st=95] -HTTP_TRANSACTION_READ_HEADERS hello, can you please give me a sample code showing the difference between ismap and usemap. I need to give a seminar on it !!!!! Hello folks, I have written some html, xhtml possibly, which has an href to another page, the second page being in frames and in a new window. It worked fine on an Me but now in XP it won't open the 2nd window (from the link in the first) saying it can't locate file bla bla bla, check the address.... The odd thing is where there were gaps in the address which I blocked in with a " %20 " for the browser to recognise, its saying its looking for the right address but with a 25 where all the %20's are, as well as the twenties themselves, so they now appear as "html%2520code" for example. When I open the file that is the target of the link I get the typical white file not found page, but it is dividing the screen as the frames of that file tell it to do. I would appreciate somebody telling me what the error could possibly be Hi there, I m using dom with css in my web page. Using the document type <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> My dom effect is not visible in mozilla 2.0. In stead if I am using the document type <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html xmlns="http://www.w3.org/1999/xhtml"> the dom effect is visible. Is this vaild using w3c standards? Any help in this issue would be appreciable. Thanks in advance Hi there, I m using dom with css in my web page. Using the document type <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> My dom effect is not visible in mozilla 2.0. In stead if I am using the document type <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html xmlns="http://www.w3.org/1999/xhtml"> Is this vaild using w3c standards? Any help in this issue would be appreciable. Thanks in advance |