HTML - Website Doesnt Work In Safari
Anyone know what the problem is. My website works perfect in internet explorer. But when I type in the web address in safari, the page loads all the code, not the website. I'm guessing it has something to do with this code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> Any suggestions? Is it this or something else maybe? Similar Tutorialshello I wanted to make a pop up window for a link: so i put this btw <head> and </head> Code: <script language="javascript" type="text/javascript"> <!-- var win=null; onerror = stopError; function stopError(){ return true; } function o1281309901(){ myleft=(screen.width)?(screen.width-874)/2:100;mytop=(screen.height)?(screen.height-622)/2:100; settings="width=874,height=622,top=" + mytop + ",left=" + myleft + ",scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no,dependent=no"; win=window.open("http://www.christianwalser.com/videoplayer","",settings); win.focus(); } // --> </script> and then this btw <body> and </body> for the link to open the pop up: Code: <a href="javascript:o1281309901();">LINK It works fine with IE but not with other browser like Safari and FF: --> Its then resizable and the height and wheight arent correct anymore Thank you very much for your help My site works in Firefox and Safari just like I want it to, but when IE tries to read it, the divs and images get spaced out and wrapped around AND it is not centered on the page like it should be... what is my coding flaw? www.nativboardriding.com check it out in firefox or safari to see how it SHOULD be displayed, then open it with IE. Thanks, Levs Safari doesnt display html site as it should be, instead Safari shows just the html code...: what can i do? <!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 content="de-ch" http-equiv="Content-Language" /> <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> <title>Ohne_Titel_1</title> </head> <body> <p>TEST</p> <img src="http://blabla.com/image.jpg" /> </body> </html> This is just a sample html code, and its saved as .html file on the server... so what could it be? (the main page is displayed correct by the way...) Thank you very much! sorry i fixed the problem as soon as i posted so i deleted it im pat btw I have put this together but I don't know why it doesn't work. the link is: http://www.throughtheconcreterecords...tojournal.html if anyone could take a look at the page source, see what is there and what ISN'T showing up on the actual site and tell me why that would be so nice and awesome! anyone? -kevin throughtheconcrete@hotmail.com Heej ppl. Ik maked a inlogpage with html with a kinda keylogger in it for testing, after i completed the Html document and opend from my documents the Keylogger works great! but if i am uploading the html code's on Freewebs.com i get this www.freewebs.com/iffsow he say's The Form is unoprational!. I dont understand it, its the same code. but he doesnt work? Maybe you could help me. cheers On one of my web pages im currently writing one Image wont show up and i have no idea why here is an extract of the code Quote: <table width='100%' border='0'> <td width='33.333%'></td> <td width='33.333%'> <img scr='http://chaos-realm.servegame.org/images/under-construction.gif' align='center' alt="Error... Unable to load Picture"> </td> <td width='33.333%'></td> </table> And it always shows the Alt text not the picture i have practically the same code in a different area Quote: <table width='100%' border='0'> <td width='33.333%'> </td> <td width='33.333%'> <img scr='http://chaos-realm.servegame.org/images/under-construction.gif' align='center' alt="Error... Unable to load Picture"> </td> <td width='33.333%'> </td> </table> And that one works, so im wondering why wont the first one work, ive tried it as a BMP and JPG image aswell. If you visit the website in the first code youll see the mage does exist Any Help would be amazning, Thanks in advance, Eldara hi, I have built a web site but have had to change the way products will be viewed so I looked up the image text feature which was brilliant. it works fine in all browser except for explorer. My code is below for people to view as I know that I have made a mistake but cant see where the problem is, I have highlighted the image text feature in red <HTML> <HEAD> <TITLE>DecTec - Suppliers of quality paint applicators</TITLE> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> <META NAME="keywords" CONTENT=" dectec, dec, tec, dec-tec, contractors, decorating, sundries, equipment, supplies, items, sales, seller,"> <META NAME="description" CONTENT="DecTec is a leading supplier of quality paint application and associated products to speacialist contractors and applicators of paints and coatings."> <script language="JavaScript" type="text/JavaScript"> <!-- function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; } function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} } function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); if(!x && d.getElementById) x=d.getElementById(n); return x; } function MM_swapImage() { //v3.0 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} } //--> </script> <script src="js/dw_event.js" type="text/javascript"></script> <script src="js/dw_viewport.js" type="text/javascript"></script> <script src="js/dw_tooltip.js" type="text/javascript"></script> <script src="js/dw_tooltip_aux.js" type="text/javascript"></script> <script type="text/javascript"> dw_Tooltip.defaultProps = { wrapFn: dw_Tooltip.wrapImageOverText } dw_Tooltip.content_vars = { L1: { img: 'images/paste_table.jpg', txt: '', w: 100 // width }, L2: { img: 'images/pole_sander_head.jpg', txt: '', w: 100 }, L3: { img: 'images/ladder_rack_tites.jpg', txt: '', w: 100 } } </script> </HEAD> Hi guys, As a person with VERY little HTML knowledge I getting very frustrated with a situation "I'm sure its a simple fix" that I hope you can help me with - there are 2 issues:- 1 - when you click on the Orange button on my website in IE the link doesnt work "it works when you right click - open link in a new tab" 2 - when you click on the Orange button on my website in Firefox - 2 tabs open instead of 1?? Any help would be very much appreciated - the link is http://www.twessential.com/newhome.html. If any files are need please let me know Many thanks Hi Guys, I have a problem where my dropdown menu is hidden behind a flash element. Google tells me this is common problem. If founds a few solutions that recommended adding <param name="wmode" value="opaque" /> or <param name="wmode" value="transparent" /> ...to my parameters. but this doesnt work. im using a super accessible type dropdown... the menu is essentially a list <li> with some JS behind it. Heres my link http://www.roxywebdesign.com/gateway/ Any suggestion are be welcome. If i cant get this fixed then my backup plan is the use JSCookMenu which apparently does work. But ive already completely chanded the code for my menu once and would like to avoid that this time. Thanks guys!! For some reason, the main navigation links in this site don't work in Safari 3.1 and latest version of Firefox. They work in IE 6 though. Can't figure it out. http://wcwfc.com/blog/ Hi, Im trying to develop a simple HTML interface for virtual tours but I cant get the site to look the same in all browsers. The problem comes when I view the page in IE. I want the bottom table to only be the length of the window as done in both safari and firefox. My site can be viewed on: http://www.fullvisual.com/informatic...tual_tour.html why doesn't the width=100% work? Thanks Hi, I am new to this borad, hope someone good at HTML can help me. I am building a website www.blazeauto.co.uk/shop/ there is a problem with the navigation menu. It work perfects in Firefox and Safari but not in IE. The following are the code I use. <ul id="mainmenu-nav"> <ul class="ul-nav" <li class="li-nav"><a href="index.php?act=viewCat&catId=1" class="txtDefault">Test Category</a></li> </ul> <ul class="ul-nav" <li class="li-nav"><a href="index.php?act=viewCat&catId=2" class="txtDefault">Level1</a></li> </ul> <ul class="ul-nav" <li class="li-nav"><a href="index.php?act=viewCat&catId=4" class="txtDefault">Level2</a></li> </ul> <ul class="ul-nav" <li class="li-nav"><a href="index.php?act=viewCat&catId=5" class="txtDefault">Level3</a></li> </ul> </ul> And this is the CSS code .li-nav a{ font-size: 14px; width: 150px; display: block; text-indent: 2px; font-family: "Trebuchet MS", Verdana, Arial; color: #000000; text-decoration:none; font-weight: bold; background-image:url(/shop/img/linkout.gif); } .li-nav a:hover{ width: 150px; display: block; text-indent: 2px; font-family: "Trebuchet MS", Verdana, Arial; color: #FFFF00; text-decoration:none; background-color: #0066FF; background-image:url(/shop/img/linkover.gif); ----------------------- Can anyone tell me what is wrong? I have been trying for two days with no luck. Thanks Per I'm struggling to figure this one out! My index.php opens about half way down the page in Safari on macs (both 3.1 and tested in v2). It appears at the proper top position in Firefox, Opera and IE5 (all on mac - don't have access to Windows until tomorrow). The site is www.betterfootball.co.uk I only noticed it after google analytics had been implemented but it might have been this way for a little while before (I use IE5 and Firefox 3 whilst building site). It's almost like a rogue anchor point has been inserted. Please, any ideas? there is my code. any reason why it looks good in chrome/safari but it looks bad in mozilla? in mozilla it has a bunch of lines going through it and the images are all seperated. any help would be much appreciated. Thanks, George 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>share</title> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> <style type="text/css"> body { background-color: #ffffff; background-image: url(../background-for-website.png); background-repeat: repeat-x; } #apDiv1 { z-index:1; } </style> </head> <body> <!-- Save for Web Slices (share.psd) --> <center> <table id="Table_01" width="792" border="0" cellpadding="0" cellspacing="0"> <tr> <td colspan="5"> <img id="share_01" src="images4/share_01.png" width="791" height="155" alt="" /></td> <td> <img src="images4/spacer.gif" width="1" height="155" alt="" /></td> </tr> <tr> <td colspan="5"> <img id="share_02" src="images4/share_02.png" width="791" height="137" alt="" /></td> <td> <img src="images4/spacer.gif" width="1" height="137" alt="" /></td> </tr> <tr> <td colspan="5"> <img id="share_03" src="images4/share_03.png" width="791" height="142" alt="" /></td> <td> <img src="images4/spacer.gif" width="1" height="142" alt="" /></td> </tr> <tr> <td colspan="3" rowspan="2"> <img id="share_04" src="images4/share_04.png" width="544" height="70" alt="" /></td> <td> <div class="apDiv" id="apDiv"><a href="http://www.facebook.com/sharer.php?u=https://www.facebook.com/pages/itunes-cards-for-free/200510223345141" target="_blank"> <img id="share_05" src="images4/share_05.png" width="137" height="21" alt="" /> </a></div> </td> <td rowspan="4"> <img id="share_06" src="images4/share_06.png" width="110" height="257" alt="" /></td> <td> <img src="images4/spacer.gif" width="1" height="21" alt="" /></td> </tr> <tr> <td rowspan="3"> <img id="share_07" src="images4/share_07.png" width="137" height="236" alt="" /></td> <td> <img src="images4/spacer.gif" width="1" height="49" alt="" /></td> </tr> <tr> <td rowspan="2"> <img id="share_08" src="images4/share_08.png" width="319" height="187" alt="" /></td> <td><a href="../page 5/redeem.html"><img src="images4/button.png" onmouseover="this.src='images4/button-3.png'" onmouseout="this.src='images4/button.png'"/></a> </td> <td rowspan="2"> <img id="share_10" src="images4/share_10.png" width="75" height="187" alt="" /></td> <td> <img src="images4/spacer.gif" width="1" height="30" alt="" /></td> </tr> <tr> <td> <img id="share_11" src="images4/share_11.png" width="150" height="157" alt="" /></td> <td> <img src="images4/spacer.gif" width="1" height="157" alt="" /></td> </tr> </table> </center> <!-- End Save for Web Slices --> </body> </html> Is outputting --- Creating linked images < a href= "default.htm"> --- as a line of text next to the image, instead of embedding a link in it. Any ideas what's going on? This is the code: <?xml version = "1.0" encoding = "utf-8"?> <! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict //EN" "http:// www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns = "http://www.w3.org/1999/xhtml"> <head> <title> Using image as hyperlink </title> </head> <body> <p> Creating linked images < a href= "default.htm"> <img src = "DSC00123.JPG" width = "92" height = "100" alt = Testing out stuff> </img> </a> </p> </body> </head> </html> Hi, New to this forum, so apologies if this has been answered before--couldn't find the solution anywhere. I'm working on a page (http://www.dinacheney.com/index.htm), and the rowspan effect is working well on FF. On IE, the chalkboard image gets cut off and the image doesn't line up properly. Is this just rowspan weirdness and I need to rewrite the page using divs or css? Or is there something simpler I can do? All advice is much appreciated!!! Thanks in advance! hey guys on my website i am going to play music and so that the music will continue to play and not restart while the viewers are browsing, i have made it so that u stay on the same page and the iframe will change when u click on the links i am going to have the sidebar change for different pages so the sidebar is also an iframe. the links on the sidebar are actually javascript links so that they will adjust the height of the body iframe and change the src my website is HERE! this website works beautifully in internet explorer, but in safari the sidebar is useless can anyone tell me why? THIS IS THE CODE FOR THE IFRAMES HTML Code: <td class="sidebar"> <img src="http://ryanhollis.webs.com/icons/sidebar1.png" alt="" width="200" height="46"/><br class="pic"/> <iframe src="sidebar.html" height="200" width="150" class="sidebar" id="sidebar" scrolling="no" frameborder="0" allowtransparency="true"></iframe> <img src="http://ryanhollis.webs.com/icons/sidebar3.png" alt="" width="200" height="46"/> </td> <td class="text" rowspan="2"> <img src="http://ryanhollis.webs.com/icons/body1.png" alt="" width="642" height="64"/><br class="pic"/> <center><iframe src="home.html" height="300" class="body" id="iframe" scrolling="no" frameborder="0" allowtransparency="true"></iframe></center> <noframes> Your browser is out of date. To view this site you are going to have to update your browser. </noframes> <img src="http://ryanhollis.webs.com/icons/body3.png" alt="" width="642" height="70"/> THIS IS THE CODE FOR THE LINKS THAT ARE ON THE ACTUAL PAGE AND WORK IN BOTH BROWSERS (the onclick property is what you need to look at the others just to change the pic in a scroll over) HTML Code: <img src="icons/home.png" alt="HOME" id="home" onclick="link('home',300)" onmouseover="changePic('home')" onmouseout="changePicBack('home')" width="223" height="134"/> THIS IS THE JAVASCRIPT FOR WHEN THE LINK IS CLICKED Code: function link(page,size) { document.getElementById("iframe").height = size; document.getElementById("iframe").src = page + ".html"; space = size - 158; document.getElementById("whitespace").height= space; } THIS IS THE CODE FOR THE SIDEBAR HTML Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <link rel="stylesheet" type="text/css" href="othercode/formating.css" /> <script type="text/JavaScript" src="othercode/links.js"></script> </head> <body> <p class="sidebar"> <a href="javascript:link('home',300)" target="_parent">Home</a><br /><br /> <a href="javascript:link('blog/blog',650)" target="_parent">Blog</a><br /><br /> <a href="javascript:link('life',680)" target="_parent">Life</a><br /><br /> <a href="javascript:link('links',400)" target="_parent">Links</a><br /><br /> </p> </body> </html> You are probably not going to have all the code you need in this so here are some links This is the main page This is the page for the sidebar iframe This is page for the content iframe This is my CSS This is the javascript that makes the links work Thanks guys if u can make sense of any of my code you are a life saver... all five flavors p.s. and yes the music isnt on there yet i'm making sure i can get this to work first. if have any suggestions on music to put on there feel free to tell me those too I save it as an htlm file like the book says right but it is coded in xhtlm but when I try to open my website it says not responding so can anybody tell me what is wrong with my website here is the code <?xml version="1.0" ?> <!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>Jon's Home Page</title> </head> <body> <h1>Welcome to Jon's Home Page</h1> <p>Jon has been creating Web sites for more than eight years. He has written several books on computer programming topics including HTML, XHTML, XML, and ASP. He also runs InPreparation Limited, a small Web solutions company based in London, with clients in the U.K., U.S., and Australia. </p> <p>When not sitting in front of a computer, Jon can usually be found listening to music or playing his guitar.</p> </body> </html> Is it possible to get this website to work in Firefox? When the window gets minimized smaller, it's supposed to stretch to fit the new screen (in IE it works) but in Firefox it doesn't resize right... is there any way for it to work in FireFox? http://www.clockwork-chaos.com/paperclover |