|
FireFox's in-ability to understand my JavaScript or CSS
11-05-2006, 03:03 PM
|
FireFox's in-ability to understand my JavaScript or CSS
|
Posts: 1
Name: Michael Donald
|
I’ve been writing code for IE web sites for some time now & currently I am really pushing to become cross browser proficient. For customers that want their sites to be viewable via a Firefox browser I have to limit the scripting I use. Can anyone tell me why my JS & Style Sheet coding works great in IE & mostly in NS, but in Foxfire/Mozilla I can’t get my areas definition to function or div’s to work as they should? My website: http://www.cosmos-computers.net. I can make a great PDA site use some of the same scripting that Foxfire/Mozilla won’t use?
__________________
Michael Donald
Sr. Information Systems Designer
Web Site: Please login or register to view this content. Registration is FREE
|
|
|
|
11-05-2006, 05:42 PM
|
Re: FireFox's in-ability to understand my JavaScript or CSS
|
Posts: 246
|
I can't tell you why, but I can tell you that you'll probably have to accept that they'll be different for awhile. Here's one person's way of dealing with browser differences and CSS:
http://www.siteuri.ro/developer/css-...ifferences.php
|
|
|
|
11-05-2006, 05:52 PM
|
Re: FireFox's in-ability to understand my JavaScript or CSS
|
Posts: 41,528
Name: Chris Hirst
Location: Blackpool. UK
|
Point 1. Having a stupid right click disabling script will NOT stop anyone looking at your code, but WILL make people you have asked for assistance not bother going any further. GET RID OF IT
Just to demonstrate how pointless a no RC script is, this is the source code for your home page.
HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<META name="verify-v1" content="BRKhnHiKZR9EX9Gg1oJhxuZb4Xl9gVbdSAcoyJNQVSY=" />
<meta name="keywords" content="Web Site Design,Web hosting,PC repair,computer repair,PC parts,computer parts,PC accessories,computer accessories">
<meta name="description" content="We service and repair computers and sell hardware parts and accessories as well as build custom computer sytems and provide tips and programming help.">
<meta name="Designer" content="Michael R. Donald">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Cosmo's Computers</title>
<link rel="shortcut icon" href="favicon.ico">
<NOSCRIPT>
<link views="screen" href="cosmo.css" type="text/css" rel="stylesheet">
</NOSCRIPT>
<SCRIPT LANGUAGE = "JavaScript" TYPE = "text/javascript">
<!--
var resWidth = window.screen.width;
if(resWidth <= 300) {
parent.location.href='indexPDA.html'
}
else if(resWidth <= 800) {
document.write("<link views=\"screen\" href=\"cosmo800.css\" type=\"text\/css\" rel=\"stylesheet\">");
}
else if(resWidth <= 1024) {
document.write("<link views=\"screen\" href=\"cosmo1024.css\" type=\"text\/css\" rel=\"stylesheet\">");
}
else if(resWidth <= 1280) {
document.write("<link views=\"screen\" href=\"cosmo1280.css\" type=\"text\/css\" rel=\"stylesheet\">");
}
else {
document.write("<link views=\"screen\" href=\"cosmo.css\" type=\"text\/css\" rel=\"stylesheet\">");
}
//-->
</SCRIPT>
<SCRIPT LANGUAGE= "JavaScript" TYPE = "text/javascript">
<!--
favImage = new Image();
favImage.src="favicon.ico";
//-->
</SCRIPT>
<SCRIPT LANGUAGE= "JavaScript" TYPE = "text/javascript">
<!--
function Termswindow(){
var PopUp = window.open("Terms.html","PopUp","menubar=1,status=1,resizable=1,scrollbars=1,width=600,height=475");
PopUp.focus()
}
//-->
</SCRIPT>
<SCRIPT LANGUAGE= "JavaScript" TYPE = "text/javascript">
<!--
function Privacywindow(){
var PopUp = window.open("Privacy.html","PopUp","menubar=1,status=1,resizable=1,scrollbars=1,width=600,height=475");
PopUp.focus()
}
//-->
</SCRIPT>
<SCRIPT LANGUAGE= "JavaScript" TYPE = "text/javascript">
<!--
window.moveTo(0,0);
window.resizeTo(screen.width,screen.height);
window.onload = function()
{
runwText();starteffect();FlashMsg();
}
//-->
</SCRIPT>
<SCRIPT LANGUAGE= "JavaScript" src="Scripts/IndexSc.js"></SCRIPT>
<SCRIPT LANGUAGE= "JavaScript" src="Scripts/MessageSc.js"></SCRIPT>
<SCRIPT LANGUAGE= "JavaScript" src="Scripts/BChip.js"></SCRIPT>
<SCRIPT LANGUAGE= "JavaScript" src="Scripts/CCC.js"></SCRIPT>
<SCRIPT LANGUAGE= "JavaScript" src="Scripts/pLoader.js"></SCRIPT>
</head>
<body background="Images/pcbt.gif">
<div id="banner">
<div id="rbwText">
We Proudly Offer Some Of
<br />
These Quality Services
<div id="subrbwText" class="subrbwTextfont">
<SCRIPT LANGUAGE= "JavaScript" TYPE = "text/javascript">
<!--
var wspeed=2500
var rbwText=new Array()
rbwText[0] = "\"Website design and development\"";
rbwText[1] = "\"Computer Repair & Upgrades\"";
rbwText[2] = "\"Search Engine Submission\"";
rbwText[3] = "\"Network System Support\"";
rbwText[4] = "\"Computer Parts & Accessories\"";
rbwText[5] = "\"Systems Consulting\"";
rbwText[6] = "\"Web Hosting & Domain Setup\"";
rbwText[7] = "\"Software & Systems Programming\"";
rbwText[8] = "\"Ecommerce & Databases\"";
rbwText[9] = "\"Photo Galleries\"";
rbwText[10] = "\"Software Tutoring\"";
rbwText[11] = "\"Wired & Wireless Systems\"";
rbwText[12] = "\"Server Setups & Support\"";
var fadeCh=1
var hex=(fadeCh==1)? 0 : 0
var startcolor=(fadeCh==1)? "rgb(0,0,0)" : "rgb(0,0,0)"
var endcolor=(fadeCh==1)? "rgb(0,0,0)" : "rgb(0,0,0)"
var frame=20;
var ie=document.all
var ns6=document.getElementById
var ns4=document.layers
w=0
rbwTextobject=ie? subrbwText: ns6? document.getElementById("subrbwText") : document.rbwText.document
function regenerate(){
window.location.reload()
}
function regenerate2(){
if (document.layers)
setTimeout("window.onresize=regenerate",2500)
}
function bgcolorfade() {
// 20 frames fading process
if(frame>0) {
hex=(fadeCh==1)? hex-12 : hex+12
rbwTextobject.style.backgroundColor="rgb("+hex+","+hex+","+hex+")";
frame--;
setTimeout("bgcolorfade()",20);
}
else{
rbwTextobject.style.backgroundColor=endcolor;
frame=20;
hex=(fadeCh==1)? 0 : 0
}
}
function updatecontent(){
if (ie||ns6)
bgcolorfade()
if (ns4){
rbwTextobject.subrbwText.document.write('<span class="subrbwTextfont">'+rbwText[w]+'</span>')
rbwTextobject.subrbwText.document.close()
}
else
rbwTextobject.innerHTML=rbwText[w]
if (w<rbwText.length-1)
w++
else
w=0
setTimeout("updatecontent()",wspeed)
}
function runwText(){
if (ie||ns6||ns4) {regenerate2();updatecontent();
}
}
//-->
</SCRIPT>
</div>
</div>
<div id="bannertext">
<i><font color="#0000FF">C</font>osmo's <font color="#880000">C</font>omputer
<font color="#FFFF00">C</font>onsultants</i> <br />
</div>
<font face="Arial">Computer Systems & Web Designs</font> <br />
E-mail:
<a title="Click here for a service request" href="mailto:Service@cosmos-computers.net?subject=Web Service Request" style="text-decoration: none">
<font color="#0099CC">Service@cosmos-computers.net </font></a> <br />
or call: 1-607-346-3189 for assistance <br />
<div class="Logo">
<img border="0" src="Images/CosmosLogoBlack13.jpg" width="78" height="73" alt="Cosmo's Computer Consultants">
</div>
</div>
<div class=headerText id=under>
<p align="center" style="line-height: 200%">
</p>
</div>
<div class=datem id=modDate>
<SCRIPT LANGUAGE = "JavaScript" TYPE = "text/javascript">
<!--
function lastMod(){
var x = new Date (document.lastModified);
Modif = new Date(x.toGMTString());
Year = takeYear(Modif);
Month = Modif.getMonth();
Day = Modif.getDate();
Mod = (Date.UTC(Year,Month,Day,0,0,0))/86400000;
x = new Date();
Today = new Date(x.toGMTString());
Year2 = takeYear(Today);
Month2 = Today.getMonth();
Day2 = Today.getDate();
now = (Date.UTC(Year2,Month2,Day2,0,0,0))/86400000;
Daysago = now - Mod;
if (Daysago < 0) return '';
unit = 'Days';
if (Daysago > 730){
Daysago = Math.floor(Daysago/365);
unit = 'Years';
}
else if (Daysago > 60){
Daysago = Math.floor(Daysago/30);
unit = 'Months';
}
else if (Daysago > 14){
Daysago = Math.floor(Daysago/7);
unit = 'Weeks'
}
var towrite = 'Page Last Updated: ';
if (Daysago == 0) towrite += ' Today';
else if (Daysago == 1) towrite += ' Yesterday';
else towrite += Daysago + ' ' + unit + ' Ago';
return towrite;
}
function takeYear(theDate){
x = theDate.getYear();
var y = x % 100;
y += (y < 38) ? 2000 : 1900;
return y;
}
document.write(lastMod())
//-->
</SCRIPT>
</div>
<div class="datem">
</div>
<div id="leftcontent">
<br />
<div class="h2">
<a href="http://www.cosmos-computers.net" onclick="return toggleMenu('menu0')" onMouseover="mover(0)", onMouseout="mout(0,0)"><font color="#FFFF00">Home</font></a>
</div>
<div class="h2">
<a href="Page1.html" onclick="return toggleMenu('menu1')" onMouseover="mover(1)", onMouseout="mout(0,0)"><font color="#FFFF00">WEB Services</font></a>
</div>
<span class="menu" id="menu1">
<a href="PDA.html" onMouseover="mover(15)" onMouseout="mout(15,0)"><u>PDA Web Page Design</u></a>
<br />
<a href="Design.html" onMouseover="mover(2)" onMouseout="mout(2,0)"><u>Web Site Design</u></a>
<br />
<a href="Hosting.html" onMouseover="mover(3)" onMouseout="mout(3,0)"><u>Web Site Hosting</u></a>
<br />
<a href="Ranking.html" onMouseover="mover(12)" onMouseout="mout(12,0)"><u>Web Site Ranking</u></a>
</span>
<div class="h2">
<a href="Page2.html" onclick="return toggleMenu('menu2')" onMouseover="mover(4)", onMouseout="mout(0,0)"><font color="#FFFF00">Computer Services</font></a>
</div>
<span class="menu" id="menu2">
<a href="Computers.html" onMouseover="mover(5)" onMouseout="mout(5,0)"><u>Repair & Maintenance</u></a>
<br />
<a href="ComputerTraining.html" onMouseover="mover(6)" onMouseout="mout(6,0)"><u>Training & Tutoring</u></a>
<br />
<a href="ScrSav.html" onMouseover="mover(42)" onMouseout="mout(42,0)"><u>Screen Saver Design</u></a>
<br />
<a href="http://www.zones.com" onMouseover="mover(13)" onMouseout="mout(13,0)"><u>Product Ordering</u></a>
<br />
<a href="AvastAV.html" onMouseover="mover(45)" onMouseout="mout(45,0)"><u>Avast Anti-Virus</u></a>
</span>
<div class="h2">
<a href="Page3.html" onclick="return toggleMenu('menu3')" onMouseover="mover(7)", onMouseout="mout(0,0)"><font color="#FFFF00">Networking Services</font></a>
</div>
<span class="menu" id="menu3">
<a href="NetworkInstall.html" onMouseover="mover(8)" onMouseout="mout(8,0)"><u>Installations</u></a>
<br />
<a href="NetworkUpkeep.html" onMouseover="mover(9)" onMouseout="mout(9,0)"><u>Upkeep & Maintenance</u></a>
<br />
<a href="http://www.zones.com" onMouseover="mover(13)" onMouseout="mout(13,0)"><u>Product Ordering</u></a>
<br />
<a href="AvastAV.html" onMouseover="mover(45)" onMouseout="mout(45,0)"><u>Avast Anti-Virus</u></a>
</span>
<div class="h2">
<a href="AboutUs.html" onMouseover="mover(10)", onMouseout="mout(0,0)"><font color="#FFFF00">About Us</font></a>
</div>
<div class="h2">
<a href="ContactUs.html" onMouseover="mover(11)", onMouseout="mout(0,0)"><font color="#FFFF00">Contact Us</font></a>
</div>
</div>
<div id="rightcontent">
<div id="CenterPic">
<p align="center">
<img border="0" src="Images/GrayNoteBookSpin.gif" name = "a3" width="78" height="75">
<img border="0" src="Images/GrayNoteBookLH.gif" name = "a4" width="78" height="75">
<br />
<hr color="#990000">
</p>
</div>
<div id="startingMsg">
Your best source for <b>quality</b> “Computer Services” & “Web Site Designs”. Whether you need to expand your systems at home, within your business, or you need your own domain name (www.yourname.com) on the <b>World Wide Web</b>. Our technical staff has the tools and knowledge to help. We use the latest technologies, diagnostic tools & software to promote you or your business. Our highly trained technicians can solve your problems quickly. We specialize in upgrading networks & computer systems. And our web development team is waiting to assist you in promoting you or your business on the World Wide Web.
</div>
<div class="img1">
<img src= "Images/p4.jpg" name = "i1" width="100%" height="100%" border="2" style="border: 2px solid #990000" align="right" alt="Computer Hardware">
</div>
<div class="img2">
<img src= "Images/CosmosWeb.jpg" name = "i2" width="100%" height="100%" border="2" style="border: 2px solid #990000" align="right" alt="Web Services">
</div>
<div class="img3">
<p align="center">
"Internet Connection"
<br />
<a href="http://www.speakeasy.net/speedtest/">
<img src="Images/speedtest_gry_minibox_80x15.gif" border="0" alt="Speakeasy Speed Test" width="80" height="15"></a>
</p>
</div>
<br />
</div>
<div class="pgcounter">
<p align="center">
You are visitor
<br />
<img src="nfcounter?id=913152-B511FF-0&font=odb&num_digits=06" ALT="Counter" width="57" height="21">
</p>
</div>
<br />
<div id="centercontent">
</div>
<br />
<div id="bottomcontent">
<p align="center">
<img border="0" src="Images/anidivider.gif" ALT="Animated Line" width="398" height="2">
<br />
<br />
Copyright © 1989 - 2006, Cosmo's Computer Consultants. All Rights Reserved.
<br />
Site designed by: Michael Donald
<img src="Images/Cb.gif" alt="C" name="c1" border="0" align="absbottom" width="13" height="21"><font size="4"><em>osmo's</em></font>
<img src="Images/Cr.gif" alt="C" name="c2" border="0" align="absbottom" width="13" height="21"><em><font size="4">omputer</font></em>
<img src="Images/Cy.gif" alt="C" name="c3" border="0" align="absbottom" width="13" height="21"><em><font size="4">onsultants.</font></em>
<br />
<a title="Click here for this Sites Terms of Use" href="javascript: Termswindow()">Site Terms of Use</a>
<font color="#990000">&</font>
<a title="Click here for this Sites Privacy Policy" href="javascript: Privacywindow()">Privacy Policy</a>
</p>
</div>
</body>
</html>
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
Last edited by chrishirst; 11-05-2006 at 05:54 PM..
|
|
|
|
11-05-2006, 07:18 PM
|
Re: FireFox's in-ability to understand my JavaScript or CSS
|
Posts: 5,938
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
|
I'm not one to take Firefox's side in any dispute without **** good reason, but in this case there is one. Simply put, your code is shoddy.
http://validator.w3.org/check?uri=ht...mputers.net%2F
You need to clean it up, externalize your Javascripts, etc. and THEN see what happens.
|
|
|
|
11-09-2006, 04:26 AM
|
Re: FireFox's in-ability to understand my JavaScript or CSS
|
Posts: 98
|
actually i think i heard this from many people that firefox will not support java script as IE does.
|
|
|
|
11-11-2006, 02:10 PM
|
Re: FireFox's in-ability to understand my JavaScript or CSS
|
Posts: 160
|
It's the other way round. Gecko-based browsers, like Firefox, have excellent support for JavaScript and W3C DOM.
Internet Explorer has excellent support for JScript, Microsoft's JavaScript variant, and has been catching up with its support for W3C DOM but still lags well behind.
When people say Firefox does not support a particular piece of JavaScript code as well as Internet Explorer, the reality is that the code in question is JScript not JavaScript.
|
|
|
|
11-11-2006, 05:37 PM
|
Re: FireFox's in-ability to understand my JavaScript or CSS
|
Posts: 1,222
Location: Middle England
|
I have to say I don't like the way you maximise the browser window either 
|
|
|
|
|
« Reply to FireFox's in-ability to understand my JavaScript or CSS
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|