Jump to content


Staff Alumni
  • Posts

  • Joined

  • Last visited

  • Days Won


Everything posted by haku

  1. I used to say the same thing - and did everything in pure javascript... until I learned jQuery. It's still good to know the basics, and occasionally I use them when I need them, but jQuery is extremely lightweight, and very handy. I've never looked back.
  2. I don't have an answer for you, but why not just use jQuery (or another library) and use their animation handler? It will make your life much easier.
  3. I don't have a direct answer to your questions, but I do have a potential solution. Try running your code through JSlint, and cleaning it up. I have found that doing this often solves weird cross-browser js problems that I have.
  4. That's very true amongst designers/developers, but I think that if the page loads fast enough, your average user doesn't really care if it's flash or not.
  5. It depends on what your site is for, and what it will do, and what your goals with it are. So to ask the questions: 1) What is your site for? 2) What will it do? 3) What are your goals with this site?
  6. This is the HTML section, so you should only post the HTML output of PHP scripts here, not the PHP.
  7. haku

    alert box

    You can created the faded out div like this: div#overlay { position:absolute; top:0; left:0; height:100%; width:100%; color:#000; } Then fade it in.
  8. haku

    Unknown Space

    I just tried your code out, I don't see that happening at all.
  9. If you are talking about a text area, you need to pass it through a server-side function that will convert line breaks to <br> tags. If you are using php, you can use nl2br().
  10. haku

    Unknown Space

    It's kind of hard to explain, but basically, the top margin of the child element pushes outside of the parent element, instead of on the inner edge of the parent element. This means that instead of pushing the child element down, it actually pushes the parent element down. The end effect is that the child element is pushed down according to the amount specified in it's upper margin, but the unexpected effect is that it also brings the parent element down that much.
  11. haku

    anchor tag

    The Letter E was mostly correct, with one tiny little problem. It should be this: <style type="text/css"> .other_items p a:link {text-decoration: none; color:red;} .other_items p a:visited {text-decoration: none; color:red;} .other_items p a:hover {text-decoration: none; color:red;} .other_items p a:active {text-decoration: none; color:red;} </style> The order of pseudo selectors needs to be link -> visited -> hover -> active. This is easy to remember with LoVeHAte: LinkVisitedHoverActive. If you don't do it in this order, you will find strange things happening in some browsers, and it can be really difficult to debug.
  12. .fancy a span This targets a span element inside an anchor tag that is inside any elements that have a class of 'fancy' .fancy, a, span This targets all elements with a class of 'fancy', all anchor tags, and all span elements. p.centre This targets all paragraph tags that have a class of 'centre'. .center p This targets all paragraph tags that are inside any elements that have a class of 'centre'
  13. haku

    Unknown Space

    Read my explanation in my last post.
  14. Lots of tutorials on the net about using cookies with javascript.
  15. haku

    Unknown Space

    I didn't dig through your CSS, but it appears you've got some top margin on whatever tag your 'Email' text is wrapped in. Either take the top margin off that element, or take it out of that element altogether.
  16. I need to find a way to resolve a relative path outside the document root, in a cross-platform friendly manner. My users have a settings page where they are able to set the path to a folder where files should be included. This path may not exist at the time of saving the setting. The given path is then retrieved from the database when files are being saved, the path is checked to see if a folder needs to be created, and the file is saved to the path. Two possible paths they may use are: * files (This is the webpath: http://site.com/files or absolute path /home/user/public_html/files) * ../files (This is the absolute path: /home/user/files where the webroot is /home/user/public_html/) The first path is easy to deal with. However, I'm having a rough time resolving the second path into a usable system path (i.e. /home/user/files). This needs to be cross platform compatible (windows/'Nix). I've played around with realpath(), but I'm just not finding something that works for me. Any suggestions?
  17. Well yes, in this case you should move your hosting. If you don't have access to your server, then there isn't much you can do.
  18. And it won't hope if you move the spyware from one server to the other.
  19. haku

    Width problem

    Do you have an image of what you are trying to achieve?
  20. haku

    Width problem

    Why don't you just move your navmenu inside the header if you want it there?
  21. haku

    Width problem

    All I can really say is... what? Is that diagram what you have now, or what you want? What are you trying to do? What is it not doing now?
  22. haku

    Width problem

    Why don't you show all your code - There must be something you aren't showing us. Also, you keep saying 'width', but I'm pretty sure you mean 'height'.
  23. haku

    Width problem

    Where is that color coming from? I don't even see it in your code.
  24. If he is changing text on your static files, it sounds like he has access to your server and/or is running a script on your server that adds the script tag into files automatically. As mchl said, change your password. See if that stops it. If not you are going to have to clean out the files on your server.
  25. There is a good reason that doesn't work when you add a script tag - it's not javascript. It's CSS, which is an entirely different thing. That error you are getting has nothing to do with the code being shown. CSS doesn't throw up errors. It just either works, or doesn't.
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.