HTML - Stupid Firefox
ok i'm abit confused on y my link works in IE but not firefox.
i went to validate my code and it is valid. http://validator.w3.org/check?uri=ht...sasylum.com%2F http://necrosasylum.com <<< thats the page Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" > <title>Necro's Asylum</title> <style type="text/css"> body {margin:0px; color:#000; font-weight:bold;} #bg_image { width: 100%; height: 100%; left: 0px; top: 0px; position: absolute; z-index: 0; } #contents { width: 100%; height: 100%; z-index: 1; position: absolute; } </style> </head> <body> <div id="contents"> <center> <form method="get" action="http://www.google.com/search"> <input type="text" name="q" size="22" maxlength="255"><input type="submit" value="Google Search"> </form> </center> </div> <div id="bg_image"> <a href="http://necrosasylum.com/Asylum/news.php/"><img src="enter.gif" alt="Necro's Asylum" border="0" style="width: 100%; height: 100%;"></a> </div> </body> </html> anyone got any idea why it don't work in firefox? Similar TutorialsHi folks, I was wondering if any of you kind folks might be able to assist. This code was written with seamonkey, composer. I am dammed if I can get the table to center, on the page. Hope you folks can help. see attached So my post got deleted.... If you post something not up to standards do they just take it off? Im guessing this one lasts 2 minutes Website is Here Ok, so I'm trying to get the text near the picture with the old guy with the roses padded a little. I tried adding "padding: 2px;" to the css but that doesnt work...Can someone look at my css and figure it out? Im stuck! -Thanks OK, have made websites before, but NEVER used frames . The website looks and works great in the "Preview in Browser" view. It has 3 frames. A header (top), navigation (left) and content (right). The navigation properly shows content on the right content side. My problem is this: When uploaded, the page (index2.html) is only showing ONE of the three frames (it varies which one shows, but typically the header), and it changes the name of the page in the browswer to header.html (or whichever frame it chooses to show). How do I fix this to where ALL THREE frames show at once? Sorry for the stupid question--the part I thought would be the simplest has turned out to be the biggest pain in the butt! I've juggled code and tried using Inline Frames--same problem. This has been going on for three days now! SO FRUSTRATING! Clearly, it's just a mental block and I am probably missing something really simple. If someone could help me, I would greatly appreciate it! Thanks, Melanie h1.ripway.com/heerog I just started and am already having a problem...The image 'top.jpg' isn't repeating along the x-axis...Need help URGENTLY- tyvm peoples I see this in other pages <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> What is it and do I need it in mine? Hi. I was wondering if there were any generous souls in this forum that could help me out? I am new to HTML (et al) and am trying to test something here at work. I need to try and identify all the tags\attributes that might contain a URL (absolute path - Eg. http://mycompany.com ...). I am aware that links in HTML contain an href attribute. So I think I am all set there. However, there are other attributes that I might not be aware of. For example, an external javascript file etc. I believe that CSS, XML (et al ???) might also contain absolute URLs. I am just not sure if that's true or not. Would anybody be able to come up with a list of of languages and tags\attributes that might contain a URL. Or point me to a source that would have a consise list (versus having me spend a week researching all the possibilities). Thanks in advance. Sorry if this is a major PITA. Hello, I am facing a weird problem in IE which is not happening with other browsers. Open the following website: http://www.clinicasdefertilidadenlima.pe/ You will see 3 combo boxes on this page displaying "Lima". Click on any combo and select any other value like Lima or Arequipa. Page will refresh but now combo will not show selected value which should always be "Lima" (I have hard coded it) If you take a look at the HTML source then it's a simple combo box and I have even defined selected="selected" for "Lima" value but in IE it only displays selected value when you open home page. After that it doesn't show value when you select value from combo box. I am using IE9. Here is the combo box I am talking about: HTML Code: <select id="city_id" name="city_id" class="f2_city" onchange="redirect(this.form)"> <option value="" selected="selected">LIMA</option> <option value="LIMA">LIMA</option> <option value="Arequipa">Arequipa</option> </select> Thanks Can anyone tell me why the first link works and the second one doesn't? The second link has been working fine for several years until today. http://www.tcm.com/schedule/index.js...zone=CST&cid=N http://www.tcm.com/schedule/index.js...zone=CST&cid=N Yes, I realize the first link has today's date. However, in the past, the second link has taken me straight to the correct page. Now I get the following message: Bad Gateway The proxy server received an invalid response from an upstream server. Did the site change a setting on their software? Any information or guidance you can provide will be greatly appreciated. Tom OK this is by no means a major problem. It's more of an annoyance. On my login script I have a basic form for logging in. Fire fox and IE will keep my login information for me when I get to the login page. The issue is that when the page loads my user name field will be blank however my email and password fields will have my info in it. On any other site I use, I would get the user name and email fields with my info and the password field blank. That's the way it should be. Below you will find a snipit of the code, There has to be something I'm missing. Thanks for your help! Code: <form action="index.php" method="post" name="user_login"> <tr> <td class="formNames" align="right" valign="middle" width="50%"> User Name: </td> <td align="left" valign="middle" width="50%"> <input class="formText" name="user_name" type="text" size="20" maxlength="35" value="<?php echo $user_name; ?>" /> </td> </tr> <tr> <td class="formNames" align="right" valign="middle"> Email Address: </td> <td align="left" valign="middle"> <input class="formText" name="email" type="text" size="20" maxlength="35" value="<?php echo $email; ?>" /> </td> </tr> <tr> <td class="formNames" align="right" valign="middle"> Password: </td> <td align="left" valign="middle"> <input class="formText" name="password" type="password" size="20" maxlength="25" /> </td> </tr> <tr> <td colspan="2" align="center"> <input class="submitButton" type="submit" value="Submit" name="enter" /> </form> </td> </tr> Thanks again!! Regards Guyzer nevermind i found out why Hello everyone! I've scoured around for a bit looking for an answer to a stupid question without success, so I'll pose it here. Currently I am working on a bit of Java code that prints out a document in XHTML 1.0 Strict Transitional. The document displays a formatted list of stock information. What I want is an <option> drop down list with the days of the week, and upon clicking on one of those days, the page automatically refreshes to show the stocks for that day. So very simple, I need for the page to change to a different .html file in the same directory onmouseup, I believe the action is. Here is my .java code, for those interested: Code: import java.util.*; import java.lang.*; import java.io.*; import java.text.DecimalFormat; public class Portfolio { public static ArrayList<String> stocks = new ArrayList<String>(); public static DecimalFormat fmt = new DecimalFormat("0.##"); public static int tot = 0; public Portfolio(){} public static void main(String[]args) throws IOException { stocks.add("APPL 5.67 3"); stocks.add("DFG 54.87 78"); stocks.add("DGSF 93.62 5"); printPortfolio(stocks); } public static void printPortfolio(ArrayList<String> strar) throws IOException { String stockName = new String(); double stockVal = 0.0; int numShares = 0; StringTokenizer st; stocks = strar; PrintWriter out = new PrintWriter("Portfolio.html"); out.println("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN"); out.println("http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">"); out.println("<html xmlns=\"http://www.w3.org/1999/xhtml\">"); out.println("<head>"); out.println("<title>User's JSMS Stock Portfolio</title>"); out.println("</head>"); out.println("<body>"); out.println("<img border=\"0\" src=\"ball16.gif\" width=\"29\" height=\"28\" alt=\"Ball\">"); out.println("<pre>"); out.println("STOCK NAME PRICE SHARES OWNED TOTAL"); out.println("---------- ----- ------------ -----</br>"); for(String str : stocks) { st = new StringTokenizer(str); stockName = st.nextToken(); stockVal = Double.parseDouble(st.nextToken()); numShares = Integer.parseInt(st.nextToken()); if(numShares > 0) { String SN = new String(); int nShares = 0; double price = 0; st = new StringTokenizer(str); SN = st.nextToken(); int numS = 25 - SN.length(); out.print(SN); //inserts # of spaces after data based upon data string length while(numS > 0) { out.print(" "); numS--; } price = Double.parseDouble(st.nextToken()); out.print("$" + price); double tumS = 18.0 - (Double.toString(price).length()); //inserts # of spaces after data based upon data string length while(tumS > 0) { out.print(" "); tumS--; } nShares = Integer.parseInt(st.nextToken()); out.print(nShares); numS = 19 - (Integer.toString(nShares).length()); //inserts # of spaces after data based upon data string length while(numS > 0) { out.print(" "); numS--; } out.println("$" + fmt.format(nShares*price) + "</br>"); tot += Double.parseDouble(fmt.format(nShares*price)); } } out.println("--------------------------------------------------------------------"); out.println("Stock Portfolio Net Worth : " + "$" + fmt.format(tot) + "</br>"); out.println("</pre>"); out.println("<p>"); out.println("Please Choose a Day:"); out.println("<br /><br />"); out.println("<select name=\"day\">"); out.println("<option selected=\"selected\">Monday</option>"); out.println("<option>Tuesday</option>"); out.println("<option>Wednesday</option>"); out.println("</select>"); out.println("</p>"); out.println("</body>"); out.println("</html>"); out.close(); } } At the bottom you can see a simple option list. This is the one that I want to be the day-chooser. In many of the places I've looked it talks about passing the value of the choice to a server. This is not my intention. I am thinking, possibly stupidly, that I can store the value of the choice in a variable and then in javascript have the page refreshed to the corresponding .html file in the directory. If this is the case, example code would be very much appreciated haha. Thank you! Hello, I am pretty new to the whole html world so forgive me if this is a simple problem. I have look all over for a post explaing this problem but i haven't found anything. I am making a site for a friend using Dreamweaver. I know i know, i regret not coding it from scratch but its too late now. Anyways I have a pretty good page layout going now but I have ran into a problem with loading my images. On my home page an image in a table nested inside another table will load when viewing in safari but seems to disappear in firefox. What is going on? Its a pretty simple piece of code. I place; <img src="Pictures/RDV couplepalm.jpg" width="200" height="" style="float:right; padding: 8px; margin-left:10px; margin-bottom: 10px" / inside of a paragraph in a row of a table. I have rewritten the code for this image, copied it from a working image and screwed around with the table heights (although I wasn't too sure what i was doing). What else should I try? I have attached screen shots of the site in both browsers a copy of the problem jpeg aswell as a copy of the html. Any information anyone could givee me would be REALLY appreciated! Thank you. I don't know what should I do. Google doesn't help me. When I try to embed wmv video to document it's not shown in Firefox but is shown in other browsers (Chrome, IE7/8, Opera). Why? Code he HTML Code: <object ID="Player" width="330" height="310" CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"> <param name="autoStart" value="True"> <param name="uiMode" value="full"> <param name="volume" value="100"> <param name="mute" value="false"> <param name="URL" value="video.wmv"> <embed src="video.wmv" width="330" height="310" autoStart="True" uiMode="full" volume="100" mute="false"></embed> </object> Please help me... This code works fine in IE, but in Firefox only the first style is honored, and only the first JavaScript function will run (the other doesn't do anything in Firefox). I've tried the code both with and without semicolons after the }'s and it makes no difference. The idea of the code is to expand and collapse various sections of a document. The "Expand All" and "Collapse All' links call a script to expand/collapse every section at once. The section names are correct. Again, this code works in IE but I can't figure out why Firefox doesn't like it, and why Firefox ignores the styles I've set, such as red for the word "hide". Thanks The font-family style is honored, the rest is not. The sizeTbl function works, the ExpandCollapse function does not (in Firefox, both work in IE) <style> body {font-family:Arial, Helvetica, sans-serif}; a:hover {text-decoration:underline}; .hide {color:#FF0000; text-indent:40px}; .collapse {color:#0000FF}; </style> <!-- Script takes two parameters, h (how to display) and n (element to display --> <script type="text/javascript"> function sizeTbl(h,n) { var tbl = document.getElementById(n); tbl.style.display = h; }; function ExpandCollapse(x) { accts.style.display = x; charity.style.display = x; bargaining.style.display = x; hr.style.display = x; media.style.display = x; payroll.style.display = x; safety.style.display = x; security.style.display = x; }; </script> <img src="images/heading.png" alt="Section Forms"/> <p>Click on a category to show forms in that category.<br /> <a href="javascript:ExpandCollapse('block')"><span class="collapse">Expand All</span></a> <a href="javascript:ExpandCollapse('none')"><span class="collapse">Collapse All</span></a> </p> It has been brought to my attention by my customer, whos website I designed, looks different in FireFox. What I have noticed is his google adsence is shifted all the way to the right, which pushes everything below it down. I have it in the table set to align left, but firefox seems to ignore this... any ideas? the site is http://www.tegbs.com ive been building a site with internet explorer, looks good. once i open in firefox everything is out of place and scattered everywhere. why would this be. also ive noticed with most sites you can change the size of the window and the website wont change, only the window. but with the site im building, once i change window size everything gets out of place and ordered. why? hi to all members. i have this code Code: <div id="header_menu"><img alt="" src="images/m_left.jpg" /><a href="http://www.ghesi.com/despre-noi.php"><img alt="" src="images/23232m4.jpg" /></a><a href="http://www.ghesi.com/check.php"><img alt="" src="images/m2.jpg" /></a><img src="images/linia.jpg"><a href="http://www.ghesi.com/hosting.php?spt=1"><img alt="" src="images/m3.jpg" /></a><img src="images/linia.jpg"><a href="http://www.ghesi.com/hosting.php?pt=r"><img alt="" src="images/m4.jpg" /></a><img src="images/linia.jpg"><a href="http://www.ghesi.com/contact.php"><img alt="" src="images/contact.jpg" /></a><img src="images/m_right.jpg" alt="" width="8" /><img src="images/rohelp.jpg"><img src="images/aw.jpg"></div> <!-- content --> <div class="top_indent bgr"></div> <div class="bgr site_width"> <!--left_box--> <div class="separate"><img alt="" src="images/spacer.gif" width="1" height="540" /></div> <a href="images/legal.jpg"><img src="images/legal1.jpg" alt="Legal" align="right" style="margin-right:10px" border="0"></a> Ghesi.com este un serviciu oferit de Total Domination S.R.L.<br> <br>Total Domination S.R.L are sediul in Alba-Iulia, Bulevardul Republici Nr. 26 si este inregistrata la Registrul Comertului cu numarul J01/986/2007 si codul fiscal 22198660 din 01/08/2007 avand activitatea incadrata in clasa CAEM 7230 Prelucrarea informatica a datelor.<br><br> Serviciile oferite de Ghesi.com sunt specializate in acordarea de asistenta pentru partenerii si clientii sai, prin identificarea de noi oportunitati de piata si prin cresterea valorii produse de activitatile conexe, ajutandu-i sa se concentreze asupra activitatii de baza. <br><br> Dezvoltam 3 tipuri de activitati interconectate: servicii gazduire pentru clienti si reselleri pentru parteneri, inregistrari domenii pentru clinerti si reseller de domenii pentru parteneri, servere dedicate. Suntem furnizori de servicii de gazduire web pentru mediile Internet si IT. <br><br><strong>Date legale:</strong><br><br>Total Domination SRL<br><br>Cod Unic de Inregistra 22198660<br><br>Nr de Inregistrare la Registrul Comertului: J01/986/2007<br><br>Sediu Administrativ: B-dul Republicii Nr. 26 <br><br>Sediu Social: B-dul Republicii Nr. 26, 510199 Alba-Iulia <br><br><strong>Informatii Bancare :</strong><br><br><u>Banca: Banca Transilvania - Sucursala Alba-Iulia (str. Motilor nr.2-4)</u><br><br>Cont RON: RO75BTRL00101202F13299XX<br><br>Cont EUR: RO50BTRL00104202F13299XX<br><br>Cod SWIFT: BTRLRO22ABA<br><br><u>Banca: BRD-Groupe Societe Generale, Alba-Iulia</u><br><br> Cont RON: RO03BRDE010SV13090310100</td></tr> <div class="separate_1"><img alt="" src="images/spacer.gif" width="1" height="1" /></div> <div class="clear"></div> </div> <div class="button_indent bgr"></div> and the output in firefox is this, this is what i'm locking for but in Internet Explorer the output is this i want the site in IE to have the same look as in firefox. this is the image <img src="images/legal1.jpg" alt="Legal" align="right" style="margin-right:10px" border="0"> who can tell me what is my mistake, in not a guru in html |