Jump to content

Jonas

Members
  • Posts

    2,402
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Jonas

  1. I got a validation warning that I should escape the "<" with < yes, but if I do that it's not implemented as a tag like I want it to... :DAnd yes, removed the script tag. Give me some credit here... :(Dunno why it doesn't work...
  2. Jonas

    php include

    Ok, so I was wondering:If you use "php include" function, is that sort of like using iframe? And if so, how do you decide the size of the included file, so that it isn't displayed in the same resolution covering the other content? Do you put it inside a <div>, and then give the div width and height sizes?
  3. Yeah, tried that, but it didn't work for some reason. When I tried it (due to my choice of <link etc. />), it didn't write it into my document, and so no stylesheet was loaded. If it was redirect based on browser I suppose it would work, but with the script changing css file, I don't have to have three of each document...
  4. Ok, if you've never touched html before you can try this easy to understand introduction first, to give you the most important aspects:http://www.w3schools.com/myfirst/html00.aspthen advance unto:http://www.w3schools.com/html as already said.Good luck...
  5. I prefer .phtml, simply because you don't see it used that much, and it's closer to .html
  6. Ok, so I fulfill the requirements of beginner, and everything on intermediate except browser differences. Then again I'm fairly used to using DHTML or DOM, but not working with cookies.Where does that put me?
  7. LOL! With this new code I get validation error, saying <link> element is not allowed where it is. I just cheated using document.write('<'+'...') Now I just get a warning, but still valid xhtml 1.1...
  8. Ok, so it wasn't that hard after all... <script type="text/javascript"> var useragent = navigator.userAgent; var bName = (useragent.indexOf('Opera') > -1) ? 'Opera' : navigator.appName; if (bName == "Opera") { document.write('<link type="text/css" rel="stylesheet" href="opera.css" />') } else if (bName == "Netscape") { document.write('<link type="text/css" rel="stylesheet" href="netscape.css" />') } else { document.write('<link type="text/css" rel="stylesheet" href="microsoft.css" />') } </script>
  9. Jonas

    Tables

    divs are your friend...
  10. Because w3schools.com, as the name suggests, have the same ideals as w3.org about certain things, webstandards being one of them...
  11. Not sure, butdiv {margin-left: 0;}could perhaps work?Ordiv {position: relative;left: -??px;}Good luck...
  12. Hey. Nice design there... :)But it would be great if you could please remove the onmouseover="window.status=' <FreeHTMLab.com> ';return true" part from here: <BODY bgcolor="#000000" onmouseover="window.status=' <FreeHTMLab.com> ';return true" background="http://www.freehtmlab.com/images/indexbg.gif" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" link="#ffffff" vlink="#ffffff"> , because it's always nice to see in the status bar where the link takes you. Not knowing where you're navigating is a trademark of the less "kocher" sites if you get my meaning. And that's not good. I never click links I don't know where takes me...
  13. Jonas

    Could I....

    You know, phpBB is great if you care to peep into php a bit. You only need to learn a tiny tiny bit to install it, and after that everything is done through logging in as admin...
  14. w3schools is such a great resource... :)And I share nationality with them (Refsnes). Yay!
  15. Ok, so I've used simple scripts for some time, and now I'm making a site for my dad's company. However, due to Internet Explorer and Mozilla Firefox's showing css differently from the browser I'm using (Opera), I'm not managing to show the site the way I want.http://www.w3schools.com/js/tryit.asp?file...js_crossbrowserSo, after reading that, and also having searched around a bit on the web, is there any way of redirecting to different browsers. My biggest problem so far is that Opera disguises itself as Internet Explorer when "navigator.appname" is called through a function. Also, I found this script:http://www.cssplay.co.uk/archive/themes_v2.json this site:http://www.cssplay.co.uk/and it gave me the idea of just switching stylesheet based on browser. I managed to make a script where you could choose stylesheet through <select> and <option>. But that doesn't work in IE for some reason, and besides I don't want to have the reader change stylesheet for every new link or update. Like I said, ideally the ideal stylesheet should be chosen based on browser. SO, is there anyway of doing this? Any ideas? Could navigator.userAgent be an idea? Can anyone good at javascript help me with this?Any help highly appreciated...
×
×
  • Create New...