HTML - Flash Object Does Not Validate
hey,
My page does not validate because of a flash object. The weird thing is that the code is automatically generated by dreamweaver. Feel free to copy and paste the code into a validator to see what the errors are. Any ideas on how to change this so that it validates? HTML Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta name="description" content="Employee Benefit Consulting is a company which"> <meta name="keywords" content="EBC, E benefits consulting, EB consulting, employee benefits consulting, employee benefits, Employee, Benefit, Consulting, Health Insurance, Personal Insurance, Group Insurance, Insurance, Workplace Saving Plan, Kiwisaver, worker benefits, staff benefits"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>EBC Home Page</title> <link href="CSS/style.css" rel="stylesheet" type="text/css"> <script type="text/javascript" src="../JS/ADxMenu.js"></script> <link href="images/icon.ico" rel="shortcut icon"> </head> <body> <div id="container"> <div id="header"></div> <div id="menu"> <div class="linkMenu" align="center"> <ul class="adxm menu"> <li><a href="#">Home</a></li> <li><a href="about_us.html">About Us</a></li> <li><a href="insurance.html">Insurance</a> <ul> <li><a href="group_insurance.html">Group Insurance</a></li> <li><a href="personal_insurance.html">Personal Insurance</a></li> </ul> </li> <li><a href="kiwisaver.html">Kiwisaver</a></li> <li><a href="workplace_saving_plans.html">Workplace Saving Plans</a></li> <li><a href="contact_us.html">Contact Us</a></li> </ul> </div> <br> <br> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="260" height="160"> <param name="movie" value="images/quotes.swf"> <param name="quality" value="high"> <embed src="images/quotes.swf" width="260" height="160" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed> </object> </div> <div id="body"> <p>Welcome to Employee Benefits Consulting. We have an impressive record in the employee benefits industry in New Zealand, working alongside employers, employees and regulatory bodies.</p> <div align="center"> <img src="images/indexImage.png" alt="Employee Benefits"> </div> <p>Our focus when working with employers is to ensure that the benefits they offer their staff are sustainable, workable and effective in attracting and retaining quality employees. Our focus when working with employees is to help them set in place appropriate provision for themselves and their families, both in retirement and in the event of an unexpected trauma during their working life.</p> <p>Click <a href="contact_us.html" target="_self">here</a> to contact us for more information</p> </div> <div class="style1" id="footer"> <div align="right"> Studio 1, 237 Beach Road, Campbells Bay | 09 410 2217 | <a href="mailto:info@ebconsulting.co.nz">info@ebconsulting.co.nz </a> </div> </div> </div> </body> </html> Thanks, Raggy Similar TutorialsI have a jailbroken iPhone 4 and I am trying to get a flash embed to display on it but I am having a lot of trouble. i have successfully used and enabled different flash objects elsewhere but this is the only one that wont run. so I know it will work. HTML Code: <head> <title>iSwim</title> </head> <body> <div style="width: 320px; height: 356px; margin-top: 80px; margin-bottom: 44px;"> <object width="320" height="356"> <param name="movie" value="http://listen.grooveshark.com/widget.swf" /> <param name="wmode" value="opaque" /> <param name="allowScriptAccess" value="always" /> <param name="flashvars" value="hostname=cowbell.grooveshark.com&widgetID=22770693&style=metal&bbg=000000&bfg=046cc7&bt=FFFFFF&bth=000000&pbg=FFFFFF&pbgh=046cc7&pfg=000000&pfgh=FFFFFF&si=FFFFFF&lbg=FFFFFF&lbgh=046cc7&lfg=000000&lfgh=FFFFFF&sb=FFFFFF&sbh=046cc7&p=0" /> <embed src="http://listen.grooveshark.com/widget.swf" type="application/x-shockwave-flash" width="320" height="356" flashvars="hostname=cowbell.grooveshark.com&widgetID=22770693&style=metal&bbg=000000&bfg=046cc7&bt=FFFFFF&bth=000000&pbg=FFFFFF&pbgh=046cc7&pfg=000000&pfgh=FFFFFF&si=FFFFFF&lbg=FFFFFF&lbgh=046cc7&lfg=000000&lfgh=FFFFFF&sb=FFFFFF&sbh=046cc7&p=0" allowScriptAccess="always" wmode="opaque" /></object> </div> </body> Can anyone help me to make sure the flash displays right? what happens is the player loader displays at the top instead of the center and the control buttons are present before it loads. then after the loader fails it shows a "cannot connect" error. so I think the flash object is resizing inside its self. can anyone help me clean up this script so it will display correctly in iPhone safari (with flash enabled)? website is he smalldotdesign.zxq.net/iSwim.html that is where the HTML file is located that I am trying to get corrected. thanks in advance. i have a feeling this is going to be a tough fix. Hello guys, Is there any way to make a large files of flash into a smaller file size for faster loading of a site using JavaScript? Like a lot of people I've been trying to get to grips with some basic HTML for my myspace page. Flame all you want but a lot of people have them, and they help feed our social insecurites and secret desires to be universally loved and made famous and popular and prom queen etc. My problem is that an embeded flash object from www.last.fm (a "quilt") only partially loads) This is what I see in both I.E. and Firefox: Here's the code for the object: Code: <style type="text/css"> div.lastfm_quilt_black a, div.lastfm_quilt_black div { height: 20px; margin: 0; overflow: hidden; text-decoration: none; padding: 0; background: url("http://static.last.fm/quilts/buttons/generic_images/bg_black.gif") repeat-x 0 0; width: 100%; float: right; display: inline; } div.lastfm_quilt a:hover { background-position: 0 0 !important; } {if $orientation=='horizontal'} div.lastfm_quilt_horizontal { width: 460px; } div.lastfm_quilt_black a.lastfm_quilt_artists_wide, div.lastfm_quilt_black a.lastfm_quilt_artists_wide:hover { background: url("http://static.last.fm/quilts/buttons/top_artists_images/wide/header_black.gif") no-repeat 0 -20px; } div.lastfm_quilt_black a.lastfm_quilt_albums_wide, div.lastfm_quilt_black a.lastfm_quilt_albums_wide:hover { background: url("http://static.last.fm/quilts/buttons/top_albums_images/wide/header_black.gif") no-repeat 0 -20px; } {else} div.lastfm_quilt_vertical { width: 184px; } div.lastfm_quilt_black a.lastfm_quilt_artists, div.lastfm_quilt_black a.lastfm_quilt_artists:hover { background: url("http://static.last.fm/quilts/buttons/top_artists_images/header_black.gif") no-repeat 0 -20px; } div.lastfm_quilt_black a.lastfm_quilt_albums, div.lastfm_quilt_black a.lastfm_quilt_albums:hover { background: url("http://static.last.fm/quilts/buttons/top_albums_images/header_black.gif") no-repeat 0 -20px; } {/if} div.lastfm_quilt_black .lastfm_quilt_profile a, div.lastfm_quilt_black .lastfm_quilt_profile a:hover { background: url("http://static.last.fm/quilts/buttons/generic_images/ft_black.gif") no-repeat 0 -20px; } div.lastfm_quilt_black .lastfm_quilt_noprofile a, div.lastfm_quilt_black .lastfm_quilt_noprofile a:hover { background: url("http://static.last.fm/quilts/buttons/generic_images/npft_black.gif") no-repeat 0 -20px; } div.lastfm_quilt a.get_your_own { width: 92px; border-right: solid 1px #000000; } div.lastfm_quilt a.visit { width: 91px; background-position: -93px -20px; } div.lastfm_quilt a.visit:hover { background-position: -93px 0 !important; } </style> <div class="lastfm_quilt lastfm_quilt_vertical lastfm_quilt_black"> <a class="lastfm_quilt_albums" title="Top albums" href="http://www.last.fm/user/blueden8/"></a> <embed src="http://static.last.fm/quilts/3/quilts_main.swf" flashvars="type=user&variable=blueden8&file=topalbums&bgColor=black&configMode=true" quality="high" bgcolor="#000000" width="184" height="414" name="quilts_main" align="middle" allowScriptAccess="never" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </div> Now I know for a fact there's nothing wrong with that code by itself: I've saved it as .htm in notepad and it functions perfectly. I've also copied all code down to the <!-- NETWORK INFORMATION : BEGIN --> line to notepad and saved that. That too works perfectly. So something is going on in between that heading and where the code for comments starts (I'm guessing). Here's a link to that code: Network Information and here's a link to the entire page source: Entire Page Both are .txts I would really appreciate any help offered. I know it seems like a lot of effort to go to for a myspace profile, and even more effort for you guys to try and find the problem, but this is simply pissing me off. Hello, I would like to get the website menu to appear above the flash object. http://www.greekconcierge.com/weddings.php Currently when you click on "Our Services" this is hidden below the flash image object. many thanks, andy Hi, I am a newbie and trying to develop a web site with HTML over IIS. I have inserted a flash (swf) object into the html code and am able to see the object displayed via IIS (right-click virtual directory and browse). However, it does not show if I try to access the same page via IE with http://localhost/Other. Only the text gets displayed. What could be the reason. Thanks. Hey guys, I have been designing a portfolio for my photography for some time. There are a few issues I have and I would appreciate your help. http://fjchapman.com/portfolio/portfolio.html 1. If you'll notice, the SWF object won't open. If you go to http://fjchapman.com/portfolio/viewer.swf , the swf is fine. There is just something wrong with my code. 2. Why is it so screwed up in IE? I have been going through my code but I cannot understand why IE is adding some mysterious padding. Help? 3. Alignment of links. While the links are just fillers (concert photography, portraits) for now, how can I have them aligned to the bottom left of my header? Thank you guys so much for your time. please help. i used html <object> tag and i embeded a .swf flash file inside my html page... everything worked great until here.... now i want to let the visitor of my page to be able to navigate through my .swf file through my own navigation bar buttons that i want to put above the .swf file... i want my visitor to be able to press the avigation bar buttons to play and stop and forward and backward and rewind and so on... i dont want my visitor to press the right mouse button when he over the flash object to navigate i want to have my own navigation static bar above the flash.... what solutions there is to this problem....? what is the best solution ? best regards. 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 http://www.yp-forums.com/yankeepridesite/index.php http://validator.w3.org/check?uri=ht...eepridesite%2F Code: <!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> <title>[Y]ankee[P]ride</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link href="css.css" rel="stylesheet" type="text/css" /> </head> <body bgcolor="#CCCCCC" link="#000000" alink="#000000" vlink="#000000"> <map id="yankeepride_24" name="yankeepride_24"> <area shape="rect" alt="Tos" coords="717,11,743,20" href="tos.php" target="content" title="Tos" /> <area shape="rect" alt="Privacy Policy" coords="763,12,854,20" href="privacy.php" target="content" title="Privacy Policy" /> <area shape="rect" alt="Top" coords="3,10,45,19" href="#top" title="Top" /> <area shape="default" nohref="nohref" alt="" /> </map> <table id="body" align="center" width="900" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="900" height="10" colspan="9"> <img id="yankeepride_01" src="images/yankeepride_01.gif" width="900" height="10" alt="This image cannot be displayed do to errors" /></td> </tr> <tr> <td width="22" height="648" rowspan="14"> <img id="yankeepride_02" src="images/yankeepride_02.gif" width="22" height="648" alt="This image cannot be displayed do to errors" /></td> <td width="858" height="30" colspan="7"> <img id="yankeepride_03" src="images/yankeepride_03.gif" width="858" height="30" alt="This image cannot be displayed do to errors" /></td> <td width="20" height="648" rowspan="14"> <img id="yankeepride_04" src="images/yankeepride_04.gif" width="20" height="648" alt="This image cannot be displayed do to errors" /></td> </tr> <tr> <td width="858" height="162" colspan="7"> <img id="yankeepride_05" src="images/yankeepride_05.gif" width="858" height="162" alt="This image cannot be displayed do to errors" /></td> </tr> <tr> <td width="858" height="8" colspan="7"> <img id="yankeepride_06" src="images/yankeepride_06.gif" width="858" height="8" alt="This image cannot be displayed do to errors" /></td> </tr> <tr> <td width="169" height="31" colspan="3"> <img id="yankeepride_07" src="images/yankeepride_07.gif" width="169" height="31" alt="This image cannot be displayed do to errors" /></td> <td width="8" height="31"> <img id="yankeepride_08" src="images/yankeepride_08.gif" width="8" height="31" alt="This image cannot be displayed do to errors" /></td> <td width="681" height="31" colspan="3"> <img id="yankeepride_09" src="images/yankeepride_09.gif" width="681" height="31" alt="This image cannot be displayed do to errors" /></td> </tr> <tr> <td width="1" height="96" rowspan="2"> <img id="yankeepride_10" src="images/yankeepride_10.gif" width="1" height="96" alt="This image cannot be displayed do to errors" /></td> <td width="167" height="95" bgcolor="#FFFFFF" valign="top" style="font-family:Arial, Helvetica, sans-serif; font-size:x-small;"> <a href="content.php" target="content">>> Home</a><br /><a href="http://www.yp-forums.com/index.php?">>> Message Boards</a><br /><a href="rss.php" target="content">>> RSS News Feeds</a><br /><a href="affiliates.php" target="content">>> Affiliates</a><br /><a href="tos.php" target="content">>> Terms of Service</a><br /><a href="privacy.php" target="content">>> Privacy Report</a><br /><a href="contact.php" target="content">>> Contact Us</a></td> <td width="10" height="356" colspan="3" rowspan="7"> <img id="yankeepride_12" src="images/yankeepride_12.gif" width="10" height="356" alt="This image cannot be displayed do to errors" /></td> <td width="679" bgcolor="#FFFFFF" height="355" rowspan="6"> <iframe name="content" width="679" height="355" frameborder="0" src="content.php"></iframe></td> <td width="1" height="356" rowspan="7"> <img id="yankeepride_14" src="images/yankeepride_14.gif" width="1" height="356" alt="This image cannot be displayed do to errors" /></td> </tr> <tr> <td width="167" height="1"> <img id="yankeepride_15" src="images/yankeepride_15.gif" width="167" height="1" alt="This image cannot be displayed do to errors" /></td> </tr> <tr> <td width="168" height="30" colspan="2"> <img id="yankeepride_16" src="images/yankeepride_16.gif" width="168" height="30" alt="This image cannot be displayed do to errors" /></td> </tr> <tr> <td width="1" height="230" rowspan="4"> <img id="yankeepride_17" src="images/yankeepride_17.gif" width="1" height="230" alt="This image cannot be displayed do to errors" /></td> <td width="167" height="106" bgcolor="#FFFFFF" valign="top"><script type="text/javascript"> <!-- function buddy_pop() { window.open('http://www.yp-forums.com/?act=buddy','MyAssistant','width=200,height=450,resizable=yes,scrollbars=yes'); } //--> </script> <div valign="top" align="center"> <font face="Arial" size="1"> <center><b>Your Forum Information</b></center> Welcome <a href="http://www.yp-forums.com/index.php?showuser=111">Lrusso</a> <br> <a href="http://www.yp-forums.com/">Go to the Boards</a><br> <a href="http://www.yp-forums.com/index.php?act=Msg&CODE=01">0 New Message(s)</a> <br> <a href="http://www.yp-forums.com/index.php?act=UserCP&CODE=00">My Controls</a><br> <a href="javascript:buddy_pop();">My Assistant</a> </font> </div> </td> </tr> <tr> <td width="167" height="31"> <img id="yankeepride_19" src="images/yankeepride_19.gif" width="167" height="31" alt="This image cannot be displayed do to errors" /></td> </tr> <tr> <td width="167" height="92" bgcolor="#FFFFFF"><iframe name="quote" width="167" height="92" frameborder="0" src="quote.html"></iframe> </td> </tr> <tr> <td width="167" height="1"> <img id="yankeepride_21" src="images/yankeepride_21.gif" width="167" height="1" alt="This image cannot be displayed do to errors" /></td> <td width="679" height="1"> <img id="yankeepride_22" src="images/yankeepride_22.gif" width="679" height="1" alt="This image cannot be displayed do to errors" /></td> </tr> <tr> <td width="858" height="11" colspan="7"> <img id="yankeepride_23" src="images/yankeepride_23.gif" width="858" height="11" alt="This image cannot be displayed do to errors" /></td> </tr> <tr> <td width="858" height="30" colspan="7"> <img src="images/yankeepride_24.gif" usemap="#yankeepride_24" width="858" height="30" alt="This image cannot be displayed do to errors" border="0" /></td> </tr> <tr> <td width="858" height="20" colspan="7"> <img id="yankeepride_25" src="images/yankeepride_25.gif" width="858" height="20" alt="This image cannot be displayed do to errors" /></td> </tr> <tr> <td width="22" height="1"> <img src="images/spacer.gif" width="22" height="1" alt="This image cannot be displayed do to errors" /></td> <td width="1" height="1"> <img src="images/spacer.gif" width="1" height="1" alt="This image cannot be displayed do to errors" /></td> <td width="167" height="1"> <img src="images/spacer.gif" width="167" height="1" alt="This image cannot be displayed do to errors" /></td> <td width="1" height="1"> <img src="images/spacer.gif" width="1" height="1" alt="This image cannot be displayed do to errors" /></td> <td width="8" height="1"> <img src="images/spacer.gif" width="8" height="1" alt="This image cannot be displayed do to errors" /></td> <td width="1" height="1"> <img src="images/spacer.gif" width="1" height="1" alt="This image cannot be displayed do to errors" /></td> <td width="679" height="1"> <img src="images/spacer.gif" width="679" height="1" alt="This image cannot be displayed do to errors" /></td> <td width="1" height="1"> <img src="images/spacer.gif" width="1" height="1" alt="This image cannot be displayed do to errors" /></td> <td width="20" height="1"> <img src="images/spacer.gif" width="20" height="1" alt="This image cannot be displayed do to errors" /></td> </tr> </table> <table id="tech" align="center" width="900" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <div id="vanity" align="center"> <a id="v_php" href="http://www.php.net/" target="_blank"></a> <a id="v_mysql" href="http://www.mysql.com/" target="_blank"></a> <a id="v_xhtml" href="http://validator.w3.org/check/referer" target="_blank"></a> <a id="v_css" href="http://jigsaw.w3.org/css-validator/check/referer" target="_blank"></a> </div> </td> </tr> </table> </body> </html> How can I get that to validate? So I'm new here, looks like a great resource. I've been doing HTML since 1996 or so. I'm no expert and have not kept up with everything to say the least. I just designed a new website. Basically only has a index.html file. I've realized I need to make this site by the book so everything is kosher. Tried validating it and the warnings, errors I got looked totally alien to me. I have a headache from trying to figure it out. Hell the file is only 83 lines long and it's beating me up! Can someone help me? PS. I'm using CoffeeCup's HTML Editor. Thanks, Dave www.PhotographersNature.com Dreamweaver created the following and it doesn't pass validation Code: <embed src="ozpower.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="687" height="335"></embed> Any suggestions? Thanks I am trying to validate my site but I'm stuck on one error. The error is on my index page and every other page. The error read "Line 17 column 7:end tag for element "STYLE" which is not open'. If someone cane guide me to a solution or guide me to a good site that really explain my error(s). It would be a relief. I used W3C HTML validator MyCountryGear.com <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <head> <title>Home Page</title> <meta http-equiv="content-type" content="text/html; charset=utf-8" > <meta name="description" content="Eritrean t-shirst hats and much much more.." > <meta name="keywords" content="Hats, T-shirts, Tank tops, eritrea, eritrean, eritrea news, asmara, asmera, eritrea history, eritrean history, eritrea news, eritrean hats, eritrean t-shirts, eritrean tank tops, eritrean community, eritrean girls, eritrean women, asmarino, asmarino.com, mycountrygear.com, my country gear, habesha, eritrea in DC, ertitreans in DC, eritrean soccer tournament, eritrean festival " > <meta name="author" content=" MyCountryGear.com" > <link rel="stylesheet" type="text/css" href="css/styles2column.css" media="screen"> </style> </head> <body> <div id="mainwrap"> <div id="header"> <h1 >MyCountryGear.com</h1> </div> <div id="contentarea" class="clearfix"> <div id="contentarea2" class="clearfix"> <div id="left"> <ul id="navigation"> <li> <a href="http://www.mycountrygear.com">Home Page</a> </li> <li><a href="html/hats.html">Hats</a></li> <li><a href="html/T_shirts.html">Shirts</a></li> <li><a href="html/Tank_Tops.html">Tank Tops</a></li> <li><a href="html/Arts.html"> Game Room </a></li> <li><a href="html/Contact.html"> Contact Us</a></li> </ul> </div> <!-- <div id="right"> </div> --> <div id="centerdiv" style="background-color:#ffffff;"> <h4 align=center>Welcome To MyCountryGear.com</h4> <hr align="center" width="50%"> <br> <br> <p> If you have been searching for Eritrean hats, T-shirts, and art work you have come to the right place! We have many shirts with the Eitrean Colors and flags. All of our prouducts are of the highest quality. Our T-shirts are made with 100% cotton Hanes' ®. The shirts are made to be durable and long lasting. Our Hats are baseball styled caps that will last you for a long time to come. </p><br> <br> <br> <h4 align=center> Where is Eritrea?</h4> <hr align="center" width="50%"> <br> <br> <p> Well Eritrea is a small country of northeast Africa bordering the Red Sea. The two main religions are..</p><br> <br> <ul> <li> Christianity</li> <li> Islam</li> </ul> <br> <br> <p>There are also 3 Languages..<br> <ul> <li>Tigrina (the main language)</li> <li>Arabic</li> <li>Amharic (Amharic is native to Ethiopia) </li> </ul> </p> <br> <br> <br> <h4 align="center"> Other Sites About Eritrea</h4> <hr align="center" width="50%"> <ul> <li><a href="http://www.asmarino.com">Online community for Eritreans </a></li> <li><a href="http://www.dehai.org">Current events and News</a></li> <li><a href="http://www.eritreadaily.net">Eritrea News </a></li> <br> <br> <br><br><br><br><br><br><br><br><br><br> <br> <br> <br> <br> <br> <br> <br> <br> <br> </div> </div> <DIV id="footer"> <P align="center"> Email Us Anytime Right Here <A href="mailto:Mike@MyCountryGear.com">Mike@MyCountryGear.com</A></P> <BR /> <P align="center">Thanks for visiting, next time bring some family and friends<BR /> </P> <br/> <ul > <li> <a href="site_map.html">Site Map</a> </li> </ul> </DIV> </DIV> <!--end mainwrap--></DIV> </BODY> </HTML> Thanks HighRoller Been working on errors today...this line has like 16 errors within..every time I change one thing I get more errors than I started with! Someone have the time to take a look? Many thanks for all the help, Doug <tr align=center> <th>Base Reflectivity<br><a href="/wx16.html"><img src="/resize-radar-image.php"></img></a></th> <th>Echo Tops<br><a href="/wx17.html"><img src="/resize-et-image.php"></img></a></th> </tr> Web site:http://www.ardmoreweatherlive.com/wx3.php I am using another persons code for our band's MySpace.( With some of my own) I am trying to display the shows section and the music player. When i insert the shows section the music player always displays behind the shows section. It is displaying the music player within the limits of the shows section. How do i make the music player seperate? Here is the code for the entire site with the music and show sections bolded. Code: <i class=i>!--START CODE IN BAND MEMBERS --!</i> <i class=i> !-Start Div Overlay Content Block-! <a href="http://www.msplinks.com/MDFodHRwOi8vdmlld3MtdW5kZXItY29uc3RydWN0aW9uLmJsb2dzcG90LmNvbS8="> myspace code tutorials by Eileen</a> !-Close 3 layers of cell/row/table. This puts our Div ONE table deep. </i> </td></tr></table> </td></tr></table> </td></tr></table> <i class=i>!-Create and size our div. We will never close this div. It will close when the containing table closes-! </i> <i class=i>!!! MODIFY width to the SAME width as your core image !!!</i> <div class="myCoreDiv" style="position:relative; top:0px; width:799px; height:auto; border:2px green solid;"> <i class=i> when DONE editing CHANGE the border:2px to border:0px or change the magenta to the color you want your border.----!</i> <i class=i> !----START CUSTOM CONTENT BLOCK 1----!</i> <img src=http://i42.tinypic.com/16iz2j5.jpg> <img class="grid" src="http://i11.tinypic.com/4pczehk.gif" style="position:absolute; top:0px; left:0px;"> <span class="off">!-START COMMENT FORM-!</span> <div class="myCommentFormD"> <form method="post" action="http://comments.myspace.com/index.cfm?fuseaction=user.ConfirmComment"> <input name="friendID" value="445328869" type="hidden"/> <textarea name="f_comments" class="myFormBox"></textarea> <center> <input type="submit" value="Post Comment" class="myPostCommentButton"/> <input type="reset" value="Clear" class="myClearButton"/> </center> </form> </div> <span class="off">!-END COMMENT FORM-!</span> <i class=i> !----END CUSTOM CONTENT BLOCK 1----!</i> <i class=i>!-Open 3 layers of table/row/cell-!</i> <i class=i>!-IF do NOT want any content from my Right side, I can use i instead of L1-!</i> <table class="L1" ><tr><td> <i class=i>!-The below class i hides the remainder of the general table-!</i> <table class="i"><tr><td> <table class="i"><tr><td> <style>.i {display:none}</style> <i class=i>END CODE IN BAND MEMBERS</i> <i class=i>!START code in Influences !</i> <i class=i>!START Style Block For Hiding Elements on Band Page! <a href="http://www.msplinks.com/MDFodHRwOi8veGlpaS51cy9tcy9iYW5kLWhpZGUtYWxs">MySpace Band Hide Everything</a> </i> <style> .i, div.clearfix i i i {display:none} {! fix a centering problem, and clear white space caused by clear gifs !} td {width:auto;} table td img {display:none;} {! restore any images displayed inside our div. You may want to use block instead of inline for some images. !} table td div.myCoreDiv img, table td div.myCoreDiv table td img, table td div.myCoreDiv div img {display:inline;} {!OPTIONAL restore image on maroon nav bar, we could use a.navbar img!} div table td a.navbar img {display:block;} {! removes most content and the space it occupied !} table table table {display:none} {! minimize the remaining main page content that can not be removed without effecting the ad and menus !} table table td { height:0px; margin:0px; padding:0px;} {! restore my div. !} table div.myCoreDiv {display:block;} {! restore div with Comments !} table div.myCoreDiv div.myDclassFC {display:block;} table div.myCoreDiv div {display:block;} table table br {display:none;} table table table br {display:block;} {! OPTIONAL decrease space between bottom and bottom menu, and between bottom menu and cc thing !} {! does not work in Safari !} table div br {line-height:4px;} {! reverse effect on custom div !} table div.myCoreDiv br {line-height:11px;} {! remove default background coloring !} table table, tr, td {background-color:transparent !important} {! ONLY if you want to remove the blue behind the ad banner AND the maroon !} div.profileWidth table, div.profileWidth td {background-color:transparent !important} div table {border-bottom:none !important;} {! ADDITIONAL STYLE BLOCKS CAN GO HERE !} <style> {!- shows -!} table table td.text div {position:absolute; width:440px; height:130px; overflow:scroll; overflow-x:hidden; top:30px; left:415px;} {!- UnDo effect on Div in Friend and Comment spaces -!} table table td.text table div {position:static; height:auto; overflow:hidden} table table td.text div.commentlinks {display:none;} table table td.text div table {display:block} {!-fix column width of shows-!} {!-set below px width to the width of your shows space-!} table table td.text div table td, table table td.text div table {width:425px;} table table td.text div table table {width:100% !important} {!-adjust below value as needed-!} table table td.text div table table table {width:40% !important} </style> <style> {!-music player-!} table table td.text div object {position:absolute !important; top:196px !important; left:100px} table table td.text div object object {position:static !important;} </style> Hi. Can anybody tell me why this isnt validating? Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <meta http-equiv = "content-type" content = "text/html; charset = UTF-8" /> <title>.:Welcome to Wollongong Motorcycle Club:.</title> <style type = "text/css" media = "all"> @import"css/global.css"; </style> </head> <body> <div class = "content"> <div class = "banner"> </div> <div class = "body"> <div class = "navBarStandard"> <a href = "index.html">Home</a> <span style = "vertical-align:-8px;">|</span> <b>Calendar</b> <span style = "vertical-align:-8px;">|</span> <a href = "news.html">News</a> <span style = "vertical-align:-8px;">|</span> <a href = "forms.html">Forms</a> <span style = "vertical-align:-8px;">|</span> <a href = "photos.html">Photos</a> <span style = "vertical-align:-8px;">|</span> <a href = "directions.html">Directions</a> <span style = "vertical-align:-8px;">|</span> <a href = "#">For Sale</a> <span style = "vertical-align:-8px;">|</span> <a href = "links.html">Links</a> <span style = "vertical-align:-8px;">|</span> <a href = "#">Coaching</a> <span style = "vertical-align:-8px;">|</span> <a href = "#">Pointscore</a> <span style = "vertical-align:-8px;">|</span> <a href = "#">Interclub</a> </div> <!-- All Content goes after this line --> <br /> <div class = "calendarContent"> <div class = "datesTopCorner"></div> <!-- All Calendar entries are put after this line --> <div class = "entry1">Sun 15/04/07 - Round 2 ClubChamps Mt Kembla - <b>TRACK CLOSED</b></div> <div class = "entry2">Sun 22/04/07 - <i>MX Pointscore round 2</i></div> <div class = "entry1">Sun 29/04/07 - Coaching JT assessment - book on club No.</div> <div class = "entry2">Sun 06/05/07 - Practice day, round 3 ClubChamps Kiama</div> <div class = "entry1">Sun 13/05/07 - Mothers Day</div> <div class = "entry2">Sun 20/05/07 - <i>MX Pointscore round 3</i></div> <div class = "entry1">Sun 27/05/07 - Practice Day</div> <div class = "entry2">Sun 03/06/07 - Working bee</div> <div class = "entry1">Sun 10/06/07 - <i>MX Pointscore round 4</i></div> <div class = "entry2">Mon 11/06/07 - Long weekend / practice day</div> <div class = "entry1">Sun 17/06/07 - Track Hire Heaven Vintage - <b>TRACK CLOSED</b></div> <div class = "entry2">Sun 01/07/07 - Round 3 ClubChamps Mt Kembla - <b>TRACK CLOSED</b></div> <div class = "entry1">Sun 08/07/07 - <i>MX Pointscore round 5</i></div> <div class = "entry2">Sun 15/07/07 - Practice day</div> <div class = "entry1">Sun 29/07/07 - Practice day</div> <div class = "entry2">Sun 05/08/07 - <i>MX Pointscore round 6</i>, round 5 ClubChamps Kiama</div> <div class = "entry1">Sun 12/08/07 - Practice day</div> <div class = "entry2">Sun 26/08/07 - Practice day</div> <div class = "entry1">Sun 02/09/07 - Fathers Day</div> <div class = "entry2">Sun 09/09/07 - <i>MX Pointscore round 7</i></div> <div class = "entry1">Sun 16/09/07 - Trials Presentation Day Mt Kembla - <b>TRACK CLOSED</b></div> <div class = "entry2">Sun 23/09/07 - Practice day</div> <div class = "entry1">Mon 01/10/07 - Long weekend / practice day</div> <div class = "entry2">Sun 07/10/07 - <i>MX Pointscore round 8</i></div> <div class = "entry1">Sun 14/10/07 - Aust GP Philip Island</div> <div class = "entry2">Sun 21/10/07 - Practice day</div> <div class = "entry1">Sun 04/11/07 - Rain day for MX</div> <div class = "entry2">Sun 11/11/07 - Practice day</div> <div class = "entry1">Sun 18/11/07 - Xmas party / Presentation day</div> <div class = "entry2">Sun 02/12/07 - Practice day</div> <div class = "entry1">Sun 16/12/07 - Practice day</div> <!-- No more calendar entries can be put after this line --> <div class = "datesBottomCorner"></div> </div> <br /> </div> <div class = "bottomCorners"> <div class = "BottomCornerBox"> <span> <br /><br /> © Wollongong Motorcycle Club Ltd<br /> Ph: (02) 42 671 931<br /> P.O. Box 401, Figtree NSW 2525 </span> </div> </div> </body> </html> As you can see, im using XHTML 1.0 transitional, but aparrantly it isnt valid The following is the validation error I got from w3: ------------------------------------------------------------------------------------------- Error Line 107 column 6: end tag for "div" omitted, but OMITTAG NO was specified. </body>You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">". Info Line 14 column 0: start tag was here. <div class = "content"> ------------------------------------------------------------------------------------------- It sounds like i've done something really stupid and simple, like misplacing a div tag or something Thanks for reading this (and hopefully helping me). If you want me to post my CSS or attach a copy of my website, just say so Thanks again, Chris hi guys again. ive tried everything to validate this box but i cant for the life of me work out how?! i just want it to pop up an alert if the user hasnt entered their name in my_form.visitor_name. i think its somethin to do with the way ive used it in my javascript but here it is, and here's the full site if it helps, thanks www.samsharples.com Code: window.onload = init; function init() { var el = document.getElementById("welcome_message"); var username=getCookie('username'); document.getElementById("my_form").onsubmit = parse_form; el.innerHTML = "<p class=\"welcome\">Welcome to the football quiz " + username + "</p>"; } function parse_form() { var visitor_name = document.getElementById("visitor_name").value; var el = document.getElementById("welcome_message"); if (visitor_name || (username!=null && username!="")) { el.innerHTML = "<p class=\"welcome\">Welcome to the football quiz " + visitor_name + "</p>"; setCookie('username',visitor_name,365); } return false; } function getCookie(c_name) { if (document.cookie.length>0) { c_start=document.cookie.indexOf(c_name + "="); if (c_start!=-1) { c_start=c_start + c_name.length+1; c_end=document.cookie.indexOf(";",c_start); if (c_end==-1) c_end=document.cookie.length; return unescape(document.cookie.substring(c_start,c_end)); } } return ""; } function setCookie(c_name,value,expiredays) { var exdate=new Date(); exdate.setDate(exdate.getDate()+expiredays); document.cookie=c_name+ "=" +escape(value)+ ((expiredays==null) ? "" : ";expires="+exdate.toGMTString()); } // -------------------end name---------------------- // function quiz_message() { document.getElementById("results").innerHTML = "Complete the quiz and your scores will appear here!...."; } // var ans = new Array; var done = new Array; var yourAns = new Array; var explainAnswer = new Array; var score = 0; ans[1] = "b"; ans[2] = "b"; ans[3] = "a"; ans[4] = "c"; ans[5] = "b"; explainAnswer[1]="Roar is Blackburn's mascot<br/><br/>"; explainAnswer[2]="John Coleman is Accrington's manager<br/><br/>"; explainAnswer[3]="The picture was infact David Beckham<br/><br/>"; explainAnswer[4]="The golden oldie Ryan Giggs was PFA Player of the year<br/><br/>"; explainAnswer[5]="The top scorer was Thiery Henry<br/>"; function Engine(question, answer) { yourAns[question]=answer; } function Score(){ var answerText = "How did you do?<br/>\n------------------------------------------------------------------------\n<br/>"; for(i=1;i<=5;i++){ answerText=answerText+"\nQuestion :"+i+"\n"; if(ans[i]!=yourAns[i]){ answerText=answerText+"\n<img src=\"images/wrong.jpg\" />The correct answer was " +ans[i] + "\n"+explainAnswer[i]+"\n"; } else{ answerText=answerText+" \n<img src=\"images/right.jpg\" />Correct!<br/> \n"; score++; } } answerText=answerText+"\nYour total score is : <a class=\"score\">"+score+"</a>\n"; var username=getCookie('username'); //now score the user if(score<=0){ answerText=answerText+"You need to learn some more " +username+ "."; } if(score>=1 && score <=1){ answerText=answerText+"My grandma could do better than that " +username+ "!"; } if(score>=2 && score <=2){ answerText=answerText+"Bit more practice needed " +username+ "."; } if(score>=3 && score <=3){ answerText=answerText+"Neither bad or birlliant. Good effort " +username+ "."; } if(score>=4 && score <=4){ answerText=answerText+"4/5 aint bad " +username+ "!"; } if(score>4){ answerText=answerText+"You are a footballing expert " +username+ "!!"; } document.getElementById("results").innerHTML = answerText; } function Score_female(){ var answerText = "<h5>How did you do?<br/>\n------------------------------------------------------------------------\n<br/>"; for(i=1;i<=5;i++){ answerText=answerText+"\nQuestion :"+i+"\n"; if(ans[i]!=yourAns[i]){ answerText=answerText+"\n<img src=\"images/wrong.jpg\" />The correct answer was " +ans[i] + "\n"+explainAnswer[i]+"\n"; } else{ answerText=answerText+" \n<img src=\"images/right.jpg\" />Correct!<br/> \n"; score++; } } answerText=answerText+"\nYour total score is : <a class=\"score\">"+score+"</a>\n"; var username=getCookie('username'); //now score the user if(score<=0){ answerText=answerText+"You need to learn some more " +username+ ".</h5>"; } if(score>=1 && score <=1){ answerText=answerText+"My grandma could do better than that " +username+ "!</h5>"; } if(score>=2 && score <=2){ answerText=answerText+"Bit more practice needed " +username+ "."; } if(score>=3 && score <=3){ answerText=answerText+"Neither bad or birlliant. Good effort " +username+ ".</h5>"; } if(score>=4 && score <=4){ answerText=answerText+"4/5 aint bad " +username+ "!</h5>"; } if(score>4){ answerText=answerText+"You are a footballing expert " +username+ "!!</h5>"; } document.getElementById("results").innerHTML = answerText; } function changeDivImageFemale() { var imgPath = new String(); imgPath = document.getElementById("quiz_box").style.backgroundImage; if(imgPath == "url(images/boy.jpg)" || imgPath == "") { document.getElementById("quiz_box").style.backgroundImage = "url(images/girl.jpg)"; } } function changeDivImageMale() { var imgPath = new String(); imgPath = document.getElementById("quiz_box").style.backgroundImage; if(imgPath == "url(images/girl.jpg)" || imgPath == "") { document.getElementById("quiz_box").style.backgroundImage = "url(images/boy.jpg)"; } } function changeDivImage(url) { document.getElementById("third_col").style.backgroundImage = "url('images/" + url + "')"; } //radio button links function go(loc) { window.location.href = loc; } ///// function quiz_alert() { alert ("Thank you. You're questions will be change accordingly."); } HTML Code: <SCRIPT LANGUAGE="JavaScript" type="text/javascript" src="javascript/javascript.js"></script> <link rel="stylesheet" href="style.css" type="text/css" /> </head> <body> <div id="full_page_wrap"> <div id="main_wrap"> <div id="header"> </div> <div id="first_col"> <ul id="menu"> <li><a href="index.htm">Home</a></li> <li><a href="quiz.htm">Take the quiz</a></li> <li><a href="links.htm">Links</a></li> </ul> </div> <div id="second_col"> <h1><div id="welcome_message"></div></h1> <hr/> <form id="my_form" action="#" name="my_form" "> <p>Please enter your name:</p> <input type="text" name="visitor_name" id="visitor_name" /> <input type="submit" value="Submit" onsubmit="return" /> </form> <p>Your favourite football team: <form action=""> <select onchange="changeDivImage(this.value)"> <option>Choose your favourite team</option> <option value="arsenal.png">Arsenal</option> <option value="aston_villa.png">Aston Villa</option> <option value="birmingham_city.png">Birmingham City</option> <option value="blackburn_rovers.png">Blackburn Rovers</option> <option value="bolton_wanderers.png">Bolton Wanderers</option> <option value="burnley.png">Burnley</option> <option value="chelsea.png">Chelsea</option> <option value="everton.png">Everton</option> <option value="fulham.png">Fulham</option> <option value="hull.png">Hull City</option> <option value="liverpool.png">Liverpool</option> <option value="manchester_city.png">Manchester City</option> <option value="manchester_united.png">Manchester United</option> <option value="portsmouth.png">Portsmouth</option> <option value="stoke_city.png">Stoke City</option> <option value="sunderland.png">Sunderland</option> <option value="tottenham_hotspur.png">Tottenham Hotspur</option> <option value="west_ham.png">West Ham</option> <option value="wigan_athletic.png">Wigan Athletic</option> <option value="wolverhampton_wanderers.png">Wolverhampton Wanderers</option> </select> </form> <p>Please chhose your gender: </p> <input type="radio" name="gender" value="Male"/> Male <input type="radio" name="gender" value="Female" onClick="go('female.htm'); quiz_alert()"> Female <center> </div> <div id="third_col"> <div id="results"></div> </div> </div> </div> </body> </html> Hello Please help with explaining this problem: and possibly how to solve it thanks. No Character Encoding Found! Falling back to UTF-8. I was not able to extract a character encoding labeling from any of the valid sources for such information. Without encoding information it is impossible to reliably validate the document. I'm falling back to the "UTF-8" encoding and will attempt to perform the validation, but this is likely to fail for all non-trivial documents. Read the FAQ entry on character encoding for more details and pointers on how to fix this problem with your document. Sorry! This document can not be checked. Sorry, I am unable to validate this document because on line 306 it contained one or more bytes that I cannot interpret as utf-8 (in other words, the bytes found are not valid values in the specified Character Encoding). Please check both the content of the file and the character encoding indication. <![if gt IE 6]></a><![endif]> will not validate. How can i modify this so it will? Site in question is: http://investorsconnection.net Here is the W3 validation for it: http://validator.w3.org/check?uri=ht...line&gro up=0 If you look at the first error, it has to do with a javascript function that is in the code. I suspect that the subsequent errors displayed in the validator are displayed due to something setting off the first error. 1. I thought the validator only validated HTML, not Javascript. 2. I've used the exact same Javascript function on other sites and they validated just fine - and I literally copy and pasted the function, so I'm a bit confused what is setting off the validator this time... Can anyone shed some light on this? Thanks! |