johnmendel
-
Posts
10 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by johnmendel
-
-
I meant that an alert box is limited in what it can do. aka the comment box was what you needed.
-
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.
-
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>
-
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.
-
heres a tutorial. http://kalsey.com/2003/07/rounded_corners_in_css/Google, and thou shall recieve.
-
Padding help
in CSS
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.
-
CSS annoyance
in CSS
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<<
-
CSS annoyance
in CSS
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051111 Firefox/1.5.pretty sure that means Fx 1.5
-
CSS annoyance
in CSS
Rounded corners
in CSS
Posted
yup. again i take no credit. http://pro.html.it/esempio/nifty/, that uses multiple margins going in a pixel on each side, sucessivly, to round the corner. again, google is your friend if you get to know him.