HTML - Undiagnosed Error: Line 5, Char 4!
Hi, I'm getting an error with a template I downloaded. The page is Flash but it's encased in an index.html file, which I've kept the same as the original template file. The error I'm getting is: Line 5, Char 4, Object Required. The link is: http://www.seimone.com/npessoa and here are the opening few lines:
-------------------------------- html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=koi8-r" /> <title>test</title> <script language="javascript" type="text/javascript"> <!--Hide script from old browsers function newWindow(newContent) { winContent = window.open(newContent, 'nextWin', 'right=0, top=20,width=350,height=350, toolbar=yes,scrollbars=yes, resizable=yes') } //Stop hiding script from old browsers --> </SCRIPT> </head> <script src="active.js" type="text/javascript"></script> <script src="resize.js" type="text/javascript"></script> <script language="JavaScript" src="active.js" type="text/javascript"></script> <body bgcolor="#ffffff" background="bbg.jpg" style="background-position:left; background-repeat:repeat-y" marginheight="0" marginwidth="0" leftmargin="0" rightmargin="0" topmargin="0" bottommargin="0"> <table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%"> <tr> <td> ------------------------------------------ FIRST - Yes, I've read about DOCTYPES, and I realize there ISN'T one. I tried adding the one for xhtml, but when I did that, the page didn't load at all! The js files in bold, active.js and resize.js, are exactly where they were in the original template - I found it strange that they were below the <head>, but I left them there just in case. The other js file is something I added on my own - it specifies the size of a pop-up window with audio samples in a different section of the site. I don't get why there's an error for Line 5, though, unless it's referring to something in the original .js files and not index.html itself. Is this a DOCTYPE issue? I have tried deleting the 3rd JS script (in case of a conflict), moving all scripts above the </head> tag, etc., and so far nothing has worked! Any ideas? Advice greatly appreciated!! Similar TutorialsI recently came accross this code with an error on the line itself: function removeWaterMark(e) { var h1s = document.getElementById("window","table","display","notebook","cable","keyboard","iphone","trackball ","tablet", "tc","iphone","postit","remote","speakers","keyboard","cds","printer","foto","papers","cafe","bin"," plant","carpet","chair","sofa","sofa2","wardobe","papers2", "png_carpet","png_cd","png_chair","png_comp","png_cup","png_headphones","png_iphone","png_keyboard", "png_papers","png_passport","png_plant","png_postit","png_regal","png_sheet","png_sheet","png_table" ,"png_tc","png_trackball","png_window")[0].style; if (h1s) { if ((h1s.visibility == "visible") || (h1s.visibility == "")) { h1s.visibility = "hidden"; } else { h1s.visibility = "visible"; } } (e.preventDefault) ? e.preventDefault() : (e.returnValue = false); } Can you tell me what exactly is the problem here? Here is a link to a Screenshot Hi Can any one tell me is there any difference if a user enters '\n' (by typing) and by pressing ENTER key in an HTML form? Are both internally represented in a same way? Hi all, I have a very simple html file with table rows/columns. I implemented a feature where if you click once anywhere in a row, the row becomes 'highlighted' (modify the background color). The problem, and the thing I want to eliminate, is that the specific character/word that you click on also becomes highlighted. How can you keep the system from highlighting words/characters that you click on? I hope this is an easy one. Thanks, Bill HTML Code: <html> <head> <script type='text/javascript'> var currentRow=-1; function SelectRow(newRow) { for (var i = 1; i < 4; i++) { var cell=document.getElementById('cell_'+newRow+','+i); cell.style.background='#AAF'; if (currentRow!= -1) { var cell=document.getElementById('cell_'+currentRow+','+i); cell.style.background='#FFF'; } } currentRow=newRow; } </script> </head> <body> <table border=1> <tr> <td onclick='SelectRow(1)' id='cell_1,1'>cell1_1</td> <td onclick='SelectRow(1)' id='cell_1,2'>cell1_2</td> <td onclick='SelectRow(1)' id='cell_1,3'>cell1_3</td> </tr> <tr> <td onclick='SelectRow(2)' id='cell_2,1'>cell2_1</td> <td onclick='SelectRow(2)' id='cell_2,2'>cell2_2</td> <td onclick='SelectRow(2)' id='cell_2,3'>cell2_3</td> </tr> My task is to say "welcome" to diferent language users on a html page by their own languages. so the page needs to display multiple languages - just for "welcome". for safety reason, I hope all language characters are recorded with char values. actually I can not input "true words" of all languages, but I have thier values. i.e. Chinese "welcome" are 2 words with hex values of 226B and CE8F, and so on for Japanese, Korean, France language etc. I tried following code for Chinese language <p xml:lang="zh-Hans" lang="zh-Hans"> ≫ 캏 </p> but it is not working at all. could you help me with code to display multiple languages with char values on a single htmp page? Thanks . . Code: Parse error: syntax error, unexpected T_DNUMBER in /home/a6989956/public_html/include/database.php on line 24 Can anyone please tell me whats wrong? Here is line a few lines Code: class MySQLDB { var $connection; //The MySQL database connection var $num_active_users; //Number of active users viewing site var $num_active_guests; //Number of active guests viewing site var $num_members; //Number of signed-up users /* Note: call getNumMembers() to access $num_members! */ /* Class constructor */ function MySQLDB(){ /* Make connection to database */ $this->connection = mysql_connect(hostname, username, ********) or die(mysql_error()); mysql_select_db(database, $this->connection) or die(mysql_error()); /** * Only query database to find out number of members * when getNumMembers() is called for the first time, * until then, default value set. */ $this->num_members = -1; if(TRACK_VISITORS){ /* Calculate number of users at site */ $this->calcNumActiveUsers(); /* Calculate number of guests at site */ $this->calcNumActiveGuests(); } } line 24-25 is Code: $this->connection = mysql_connect(hostname, username, ********) or die(mysql_error()); mysql_select_db(database, $this->connection) or die(mysql_error()); PLEASE HELP! I have this div: Code: <div> Last Name <input name="data[Provider][last_name]" type="text" class="input_style" maxlength="100" value="" id="ProviderLastName" /> <input class="submit_style" type="submit" value="Search" /> </div> The way it's being displayed is having the last name string first and then the input and submit (both of them) under that last name string. I would like for all of these values to be on the same line. How can I do that? <p> doesn't work, tried it. Anything I can do in CSS? How make all of this on one line? (The div is the element that is not on the line) Thanks! HTML Code: <input type=image value="Click Me!" src="http://sites.google.com/site/sam01110011/Home/face-grin.png" id="butCount" onClick="buttonClicked()"> <input type=image value="Reset" src="http://sites.google.com/site/sam01110011/_/rsrc/1258518796363/Home/face-sad.png" id="butReset" onClick="resetCounter()"> <div id="content_div" style=""></div> Forgive me for this rather elementary question...I'm a T-shirt printer and I've learned enough html to build my own website, but I have a lot more to learn about it...Anyway the problem I'm having is when I add an image and want the next paragrah, or headline to display below the image, I've been accomplishing it by adding line breaks until it appears below rather than off to one side. Sometimes I have to add as many as seven or eight <br />'s to achieve my purpose. Is there a better way to make something appear below an image? Hi, I am making my own HTML homepage and I would like to have a button/text saying: 'Close', at the top-right. But I don't seem to be able to work out how to have multiple DIVs on one line. I have tried floating but it doesn't seem to work. By the way, I am editing with SuperEdi. Hi, I've a grid and a charting component included in my form. I haven't included any new line between the grid and chart, but in the display they're on different line. I tried the following: 1. Increased the body width. 2. Tried increasing the <div> height & width. Eventhough the width increases they're still on different line. What might be the problem? Here is the code snippet: <!-- <form id="form1" runat="server"> <div style="vertical-align:middle; height: 1000px; overflow: visible; width:5000px;"> <asp:GridView> ................. /asp:GridView> <cc1:WebChart> .................... /cc1:WebChart> </div> </form> </body> --> Thanks for your time, SD Hi all, I have the following code... <BODY> <ul> <li><h3> hello world</h3> I love you </li> </ul> </BODY> Right now this comes out on two separate lines. Is it possible for both texts to be on the same line? Thanks. hi some help please i want to have 2 styles on one line, first text should be bold second text should be normal the following is from my template file: <div class='header'>BOLD TEXT <a href="user_fof.php" > normal text</a> </div> this stays in the same line but both are bold, i have tried adding a class="normaltextstyle" but the color changes but it still stays bold please assist, I am trying to build a page using drupal CMS but I have a problem. Whenn add checkbox, text and submit button together, each of them gets in a different line. It looks like i use <br> although i don't. Adding content with a WYSIWYG editor seems to be working into the editor content area. But when I save it, it appears again in different lines,no matter in which place of the frontpage I add it. So I guess I guess the reason is the style.css file. But I can't find the exact line that damages my code. In pictures below you can see 1)the content correctly presented into WYSIWYG editor 2)The content in frontpage (awful) 3)The simple html i use 1) http://www.teicrete.gr/libsite/files...wyg_editor.JPG 2) http://www.teicrete.gr/libsite/files...page_error.JPG 3) http://www.teicrete.gr/libsite/files/3_simple_html.JPG Any help would be great... Thanks in advance! hello, Im a noob at HTML and was wondeirng if you guys/gals could help me. Im trying to make a bracket and I am not sure how to make the line centered with the other lines. here is the code Code: td { vertical-align: middle; width: 10em; margin: 0; padding: 0; } See how each horizontal lines are centered with the 2 horizontal lines that come before it in this example? http://sharkspage.com/jpgs3/2007bracket2.gif my problem is the code i'm using centers the horizontal line with the words on the lines, not the actual 2 horizontal lines. So if the word on the top line is 50 characters taking up 3 rows, and the word on the bottom line it 5 characters using 1 row, the line is way off-centered. Here is my messed up Bracket http://warchant.0catch.com/WarchantBracket.html here is the HTML, couldn't fit the whole thing here so I only went as far as Region 1 HTML Code: Warchant Movies <html lang='en'> <head> <meta http-equiv='Content-Type' content='text/html; charset=ISO-8859-1'> <title>Page Title</title> <!-- link rel='stylesheet' href='style.css' type='text/css' --> <style type="text/css"> <!-- table { border-collapse: collapse; border: none; font: small arial, helvetica, sans-serif; } td { vertical-align: middle; width: 10em; margin: 0; padding: 0; } td p { border-bottom: solid 1px black; margin: 0; padding: 5px 5px 2px 5px; } --> </style> </head> <body> <table summary="Tournament Bracket"> <tr> <td><b>Region 1</b><p>1. Star Wars: Episode IV - A New Hope</p></td> <td rowspan="2"><p></p></td> <td rowspan="4"><p></p></td> <td rowspan="8"><p></p></td> <td rowspan="16"><p></p></td> <td rowspan="32"><p></p></td> <td rowspan="64"><p></p></td> <td rowspan="128"><b>Champion</b><p></p></td> </tr> <tr> <td><p>32. Wizard of Oz</p></td> </tr> <tr> <td><p><br>16. Fight Club</br></p></td> <td rowspan="2"><p></p></td> </tr> <tr> <td><p>17. Old School</p></td> </tr> <tr> <td><p><br>9. Blazing Saddles</br></p></td> <td rowspan="2"><p></p></td> <td rowspan="4"><p></p></td> </tr> <tr> <td><p>24. Deer Hunter</p></td> </tr> <tr> <td><p><br>8. Tombstone</br></p></td> <td rowspan="2"><p></p></td> </tr> <tr> <td><p>25. Clockwork Orange</p></td> </tr> <tr> <td><p><br>4. Saving Private Ryan</br></p></td> <td rowspan="2"><p></p></td> <td rowspan="4"><p></p></td> <td rowspan="8"><p></p></td> </tr> <tr> <td><p>29. Star Trek II: The Wrath of Kahn</p></td> </tr> <tr> <td><p><br>13. The Longest Day</br></p></td> <td rowspan="2"><p></p></td> </tr> <tr> <td><p>20. The Longest Yard (Original)</p></td> </tr> <tr> <td><p><br>12. Apocalypse Now<br></p></td> <td rowspan="2"><p></p></td> <td rowspan="4"><p></p></td> </tr> <tr> <td><p>21. Jaws</p></td> </tr> <tr> <td><p><br>5. Raiders of the Lost Ark</br></p></td> <td rowspan="2"><p></p></td> </tr> <tr> <td><p>28. Boyz in the Hood</p></td> </tr> <tr> <td><p><br>2. Braveheart</br></p></td> <td rowspan="2"><p></p></td> <td rowspan="4"><p></p></td> <td rowspan="8"><p></p></td> <td rowspan="16"><p></p></td> </tr> <tr> <td><p><br>31. Say Anything</br></p></td> </tr> <tr> <td><p><br>15. Bridge Over the River Kwai</br></p></td> <td rowspan="2"><p></p></td> </tr> <tr> <td><p>18. The Magnificent Seven</p></td> </tr> <tr> <td><p><br>10. The Incredibles</br></p></td> <td rowspan="2"><p></p></td> <td rowspan="4"><p></p></td> </tr> <tr> <td><p>23. The Quiet Man</p></td> </tr> <tr> <td><p><br>7. The Godfather</br></p></td> <td rowspan="2"><p></p></td> </tr> <tr> <td><p>26. Tora, Tora, Tora</p></td> </tr> <tr> <td><p><br>3. The Big Labowski</br></p></td> <td rowspan="2"><p></p></td> <td rowspan="4"><p></p></td> <td rowspan="8"><p></p></td> </tr> <tr> <td><p>30. Return to Me</p></td> </tr> <tr> <td><p><br>14. Young Frankenstein</br></p></td> <td rowspan="2"><p></p></td> </tr> <tr> <td><p>19. Rocky IV</p></td> </tr> <tr> <td><p><br>11. A Bridge Too Far</br></p></td> <td rowspan="2"><p></p></td> <td rowspan="4"><p></p></td> </tr> <tr> <td><p>22. A Few Good Men</p></td> </tr> <tr> <td><p><br>6. Full Metal Jacket</br></p></td> <td rowspan="2"><p></p></td> </tr> <tr> <td><p>27. Goodfellas</p></td> </tr> <br> Appreciate any help how can i add onto an html file using php? for example. if i was making a forum chat or something similar, how would i add onto the char using a form, a PHP file, and the main html file that stores the conversation? the thing with this html file is this... Code: <html> <other stuff> <body> PHP file will add text here! <------------------- </body> </html> how do i make the php file add stuff in the middle of the html file? Hi: I've got a narrow but high button. Question: What do I place in the Value="???" option to ensure that I get two lines in a button For Example, I wish to put the following in the value of the button: Edit /Del Of course, I tried ' Value="Edit<br />/Del" ' --- but that didn't work, I also tried : 'Value="Edit\n/Del"' - also , no joy ( Thanks, -Mel Smith I'm trying to get the "topline" above the "greyline", but the more i mess with it, the greyline is always on top, even though it is below the "topline' code. Help please. How do i code it so the greyline is right underneath the "topline", please. here's part of the page code: Code: <body> <table width="770" border="0" cellpadding="0" cellspacing="0" id="maintable"> <tr> <td id="topline" colspan="2"></td> </tr> <tr><img src="images/greyline.gif" alt="" width="770" height hi, how can i set td just single line.for long texts, td makes new line.how can i achieve in making td single line no matter how the text is long? Hey i am having trouble with putting a horizontal line in. I got the line in but it doesn't go all the way across the page. It stops a bit before then end can someone please help? For the life of me, I cannot get rid of the small white line on either side of the dark blue in the following: http://www.toddcary.com/test/viewpoi...ew_design.html Any suggestions are welcomed! Todd |