Jump to content

johnmendel

Members
  • Posts

    10
  • Joined

  • Last visited

Posts posted by johnmendel

  1. OOP lets coders make templates for objects: the classes. then, when they want to implement one, the call upon an instance of that object. so you can make var win1 = new Window(); and var win2 = new Window(); with only defining what a window should be and those two snipits of code. The new objects inherit the characteristics of the class. This allows for quick changes in a window.EG: a window has a width and height. in you code, you dont use OOP. You make 30 windows, each unique, by hand. Alot of code for making each object. The boss rolls by, and says whoops, windows now need an address as well. now you have to go back and individually change each one. in OOP, you just have each of the 30 an instance of the class window, and when you need to add address, you do it in the class definition. You might not see the advantage now, but try writing apps, not webpages. You will see the advantage.

  2. your using too limited of an object

    <html><head><title>test</title><script>function confirmFF(){	if (confirm("Firefox user, you need Internet Explorer to view this page correctly!"))  window.location = "http://www.microsoft.com/windows/ie/"}</script></head><body onLoad="confirmFF();"></body></html>

  3. depending on user resolution is something which i looked into when i started. you could use the screen, i believe, item for IE. I think i might also work in FF. my java script is horrible, but it would look something in this nature.

    /* returns a boolean */<script type=javascript>function isSmall(){ return (screen.height < 768);}</script>then, (watch me really kill this code)<script type=javascript>function chooseCSS(){ if isSmall()   somehow link that css sheet for under 768. I know its possible else   /*their res height is 768 or more*/   include the sheet for over 768}</script>

    I missed alot of the magic inbetween, but thats the basic concept. BTW, you run chooseCSS on body's load.

  4. there is. If done correctly, they should look identical. I had a similar problem. 9/10 times is a problem with your code. Post what you are working with, so the problem can be pointed out.

  5. I had tried even numbers before. On a gutshot, I gave everything a height of 19px. It worked. Now I wanna isolate the one thing which needs a height of 19. thanks.>>Please Close<<

  6. I'll start with the site link: the siteBasically, its working great for me in ie, but in ff, hovering over one of the tabs produces a small white line underneath the tab. I have tried a whole slew of things to fix this, but alas, I am stumped.the CSS, if you need to check, is myStyles

×
×
  • Create New...