Jump to content

Jonas

Members
  • Posts

    2,402
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Jonas

  1. <html><head><title>Untitled document</title><style type="text/css"><!--body {text-align: center;}div {margin: 2px auto auto auto;background-color: #00aaff;border: groove 3px #ffffff;}div#header {width: 800px;height: 75px;position: absolute;top: 10px;left: 112px;}div#left {width: 150px;height: 450px;position: absolute;top: 85px;left: 112px;}div#middle {width: 500px;height: 450px;position: absolute;top: 85px;left: 262px;}div#right {width: 150px;height: 450px;position: absolute;top: 85px;left: 762px;}div#footer {width: 800px;height: 50px;position: absolute;top: 535px;left: 112px;}--></style></head><body><div id="header">Header, banner?</div><div id="left">Left column, menu?</div><div id="middle">Middle column, main content?</div><div id="right">Right column, ads?</div><div id="footer">Footer, © webmaster</div></body></html> Here's an example, but it's not easy to change if you want other width's and height's for your document due to the absolute positioning. You can of course change background for border and columns, or have no color. If you don't know much css, and can't edit it, get back to us here with your width and height and stuff...
  2. Seems to me you have a problem with Opera as well...
  3. Why don't you post it here Jeffy, so other people can see. You PM'ed me, so it felt natural to respond through PM, but really, everybody should get to see it. Not that it's the genious solution or anything...
  4. Jonas

    Javascript Help!!!

    I can guarantee that code doesn't work properly...Also, you should declare your style type, like this (assuming it's css):<style type="text/css"></style>
  5. Jonas

    phtml links

    http://www.w3schools.com/php/php_intro.aspLook under "What is a PHP file?" You can use .php, .php3 or .phtml
  6. <a href="file_name.html" target="frame_name" onclick="window.open('http://www.somewebsite.com')">Clicky, clicky...</a>
  7. I suppose that would work... How about the one of the 80x15 ones?http://www.stopie.com/button/ As far as I see, there's no css button. But how about the set I posted as images? The red ones? Or, you could use photoshop or GIMP, and change the color values on any of the other ones. Just host the image on your own ftp server, so you don't steal bandwidth from those other sites...
  8. I don't have time to look at your code as it is now, but I thought I should tell you one thing. I see you're against IE as a browser, and I fully support you, but, if you are making a website for a university, I don't think you should have a banner for StopIE on there. I don't know, it just seems a bit unprofessional. A university shouldn't involve in what could be seen as petty arguing over browsers. A button like that would be more in place on a private website...Oh, and maybe go for a little more subtle validation buttons, as I feel your current buttons are crashing a bit with your attempted design. One could go so far as to call them tacky. I never liked the official w3 buttons...http://w3schools.invisionzone.com/index.ph...findpost&p=1122Try one of those, like the red ones. That would look good...
  9. If translations are to be done, I suppose the most logical languages would be: English \German > Most spoken Western languagesSpanish /Russian \Chinese > Most spoken Eastern languages (?)Arab / Hmm, I suddenly noticed I miss a [pre][/pre] set for BB-codes...
  10. At the bottom of the forum there is a notice if any of the forum members are celebrating their birthday on that particular day...
  11. Works in Opera as well...
  12. I was wondering if there was a way for you guys on w3schools.com to make a plain site like this, but so that if we input some code (html/css/javascript/vbscript/xml etc.), we could in a way "save it" and give a link here on the forums. That way, for people who don't have a host, it's possible to show the code as example rather than us having to read and dissect the code written on forums. Also easier for the rest trying to help, going straight into the document and editing to find results. So far, I've been just using a random try-it-yourself link, and switched the code in the textbox, but it's a heavy way of doing it...Please consider it...
  13. I find that both work as long as you use onclick="this.style='blahblah' "Don't mix ' and "...
  14. Um, okay...tag_name:active I think would be the same as onmousedown followed by something else for onmouseup.However, if you want the color of the cell to remain that color, you would use onclick="this.style.etc..." :active won't do that I think...
  15. Can't recall even having heard of nohref...
  16. <img src="http://image_link" alt="..." onclick="window.open('http://image_link','my_new_window','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=yes, width=820, height=553, align=left, valign=top')" />An example that I used on my pages...
  17. Jonas

    ASP vs PHP

    Health. Wallet. Whatever.
  18. Give your tag an id, and write something like this:<a id="your_id" href="#" onclick="document.getElementById('your_id').href='new href' "></a>or<img id="your_id" src="img_src" onclick="document.getElementById('your_id').src='new src' " />
  19. Congrats... :)then again, :active isn't the way to go if you want to make the background-change last until you reload... I guess mozilla doesn't really support JavaScript that well, or at least not HTML events...
  20. When you say cell, do you mean table cell?<html><head><style type="text/css">td {width: 200px;height: 150px;background-color: #000000;}</style></head><body><table><tr><td onmousedown="this.style='background-color: #ff0000;'" onmouseup="this.style=''"></td><td onmousedown="this.style='background-color: #00ff00;'" onmouseup="this.style=''"></td></tr><tr><td onmousedown="this.style='background-color: #0000ff;'" onmouseup="this.style=''"></td><td onmousedown="this.style='background-color: #ffff00;'" onmouseup="this.style=''"></td></tr></table></body></html> Try that code here to see how it workshttp://www.w3schools.com/html/tryit.asp?fi...e=tryhtml_basicIf you want to keep the color after you click the table cell, you exchange onmousedown/onmouseup with <td onclick="this.style='background-color: #??????;'"></td>
  21. Jonas

    CSS menus in IE

    You don't need any extra HTML. Just use a star before the css attributes like I wrote it. That way, it will display just as it used to do in Firefox and Opera which skip *starred css, while you can use css positioning to adjust it to IE...
  22. You know what you should do first? You should try to make your document valid. Choose a doctype, either for html 4.01 using frameset, loose or strict, or xhtml frameset, transitional or strict.http://www.w3.org/QA/2002/04/valid-dtd-list.htmlWith a doctype, there's a bigger chance of your css showing equally in all browsers, because you're sure that all browsers are getting the same code to start off with, and that the code is valid html code, not something browser-spesific.Oh, and your news section has horrible contrast values. If I were visually impaired I'd have trouble reading that. Infact, sitting on a laptop with an lcd-screen, just tilting my screen slightly up or down, I have trouble reading that. White on black is better than black on dark gray at any rate...
  23. Jonas

    IE probs

    Hey, as long as it's mutual...
  24. Jonas

    CSS menus in IE

    I see that the dropdown menu is aligning differently in IE than in Opera/Firefox. You might want to try using a star in your css for alternative alignment in IE.p {font-size: 12px;*font-size: 15px;}should give a paragraph a bigger font in IE than in Firefox or Opera because they skip the *attributes, while IE reads them...So something along the lines of#menu li a, #menu li a:link, #menu li a:active, #menu li a:visited { padding: 3px 0 3px 0; width: 86px; text-align: center; font-family: arial, verdana, sans-serif; font-size: 11px; color: #616760; background: #C1CDC0; border-bottom: 1px solid #A4AEA3; border-left: 1px solid #A4AEA3; border-right: 1px solid #A4AEA3; *position: relative; *top: 0px; *left: ?px; }
×
×
  • Create New...