Jump to content

Anders Moen

Members
  • Posts

    866
  • Joined

  • Last visited

Everything posted by Anders Moen

  1. Not exactly what I was looking for Kristian.I meant to log in by typing in username and password, and the usernames and passwords should be in a database...
  2. Hehe, okay.Jeg er fra Norge jeg også, hvis du ikke har sett det
  3. Hmm....it's ****** up in Opera too.
  4. EHh... maybe it has something with this border-width: 3px; to do?I use border: 1px solid #color; and that works just fine
  5. I think I know what you've done wrong...when I looked at the last HTML code you posted, I saw you had closed one </style> too much. I'll set the whole code (that'll work) out here: <html><head><title>Dropdown menu</title><style type="text/css">.suckertreemenu ul{margin: 0;padding: 0;list-style-type: none;}/*Top level list items*/.suckertreemenu ul li{position: relative;display: inline;float: left;background-color: #F3F3F3; /*overall menu background color*/}/*Top level menu link items style*/.suckertreemenu ul li a{display: block;width: 90px; /*Width of top level menu link items*/padding: 1px 8px;border: 1px solid black;border-left-width: 0;text-decoration: none;color: navy;} /*1st sub level menu*/.suckertreemenu ul li ul{left: 0;position: absolute;top: 1em; /* no need to change, as true value set by script */display: block;visibility: hidden;}/*Sub level menu list items (undo style from Top level List Items)*/.suckertreemenu ul li ul li{display: list-item;float: none;}/*All subsequent sub menu levels offset after 1st level sub menu */.suckertreemenu ul li ul li ul{ left: 159px; /* no need to change, as true value set by script */top: 0;}/* Sub level menu links style */.suckertreemenu ul li ul li a{display: block;width: 160px; /*width of sub menu levels*/color: navy;text-decoration: none;padding: 1px 5px;border: 1px solid #ccc;}.suckertreemenu ul li a:hover{background-color: black;color: white;}/*Background image for top level menu list links */.suckertreemenu .mainfoldericon{background: #F3F3F3 url(media/arrow-down.gif) no-repeat center right;}/*Background image for subsequent level menu list links */.suckertreemenu .subfoldericon{background: #F3F3F3 url(media/arrow-right.gif) no-repeat center right;}* html p#iepara{ /*For a paragraph (if any) that immediately follows suckertree menu, add 1em top spacing between the two in IE*/padding-top: 1em;} /* Holly Hack for IE \*/* html .suckertreemenu ul li { float: left; height: 1%; }* html .suckertreemenu ul li a { height: 1%; }/* End */</style><script type="text/javascript">var menuids=["treemenu1"] //Enter id(s) of SuckerTree UL menus, separated by commasfunction buildsubmenus_horizontal(){for (var i=0; i<menuids.length; i++){ var ultags=document.getElementById(menuids[i]).getElementsByTagName("ul") for (var t=0; t<ultags.length; t++){ if (ultags[t].parentNode.parentNode.id==menuids[i]){ //if this is a first level submenu ultags[t].style.top=ultags[t].parentNode.offsetHeight+"px" //dynamically position first level submenus to be height of main menu item ultags[t].parentNode.getElementsByTagName("a")[0].className="mainfoldericon" } else{ //else if this is a sub level menu (ul) ultags[t].style.left=ultags[t-1].getElementsByTagName("a")[0].offsetWidth+"px" //position menu to the right of menu item that activated it ultags[t].parentNode.getElementsByTagName("a")[0].className="subfoldericon" } ultags[t].parentNode.onmouseover=function(){ this.getElementsByTagName("ul")[0].style.visibility="visible" } ultags[t].parentNode.onmouseout=function(){ this.getElementsByTagName("ul")[0].style.visibility="hidden" } } }}if (window.addEventListener)window.addEventListener("load", buildsubmenus_horizontal, false)else if (window.attachEvent)window.attachEvent("onload", buildsubmenus_horizontal)</script></head><body><p>Here comes the dropdown menu :)</p><br /><br /><div class="suckertreemenu"><ul id="treemenu1"><li><a href="#" style="border-left: 1px solid black">Item 1</a></li><li><a href="#">Item 2</a></li><li><a href="#">Folder 1</a> <ul> <li><a href="#">Sub Item 1.1</a></li> <li><a href="#">Sub Item 1.2</a></li> <li><a href="#">Sub Item 1.3</a></li> <li><a href="#">Sub Item 1.4</a></li> </ul></li><li><a href="#">Item 3</a></li><li><a href="#">Folder 2</a> <ul> <li><a href="#">Sub Item 2.1</a></li> <li><a href="#">Folder 2.1</a> <ul> <li><a href="#">Sub Item 2.1.1</a></li> <li><a href="#">Sub Item 2.1.2</a></li> <li><a href="#">Sub Item 2.1.3</a></li> <li><a href="#">Sub Item 2.1.4</a></li> </ul> </li></ul></a></li><li><a href="#">Item 4</a></li></ul><br style="clear: left;" /></div><p id="iepara">And here comes the rest of whatever's gonna be here :)</p></body></html> This should work
  6. No, what's the code you put in? I have the same problem...
  7. Yep, instead of for example; <b><i>text</b></i> you have to write <b><i>text</i></b> or <i><b>text</b></i>
  8. And if hotscripts doesn't have one, I have one. I'll post it later when I've made it
  9. No, because you're not gonna use tables, unless its tabular data, in other words td. (I think tabular is right, isn't it?)
  10. The first one: - it looks awefull - white font color on top of black background (it's annoying for my eyes) - the green borders in the background is "flashing" too much, it burns in my eyes - i don't know what more to say. i didn't even the check out the source for it, so...The second noe: - it looks better - still that white font color on top of black background - dont use tables, use div's instead - the menu shouldnt be in the middle as it is, just take on a <tr valign="top"> to make it go to the top if you didnt know itThat's about what I had to say about them
  11. Seriously! Do not use background-music! If they're not able to start the music themself, they'll leave your Web site.
  12. I'm not sure if I understood you right Kristian, but do you mean something like this:<a href="url" title="This text will come when you have the mouse over the link">text</a> ?
  13. Anders Moen

    PHP Tutorial

    Thank you people at W3Schools!I made my own CMS system thanks to your example codes under PHP
  14. Anyone got a PHP and MySQL login script? I want people to log on their account, and when they're logged in, they can for example edit personal information and stuff like that...if anyone got one, can you give it to me or something?I have one now, but it doesn't use cookies so it doesn't remember the user name so only at first when you've logged in, it says "Welcome user_name!" and if I then come back later, it only say Welcome !So...if anyone got one, I'd really like to have it (I have a MySQL db).
  15. If you have written a JavaScript code, you will get a message if it's wrong.And with PHP you will get a syntax error if it's wrong. Or else it's just wrong, but still nothing's wrong. Haha, I don't think there are any validators for PHP and JavaScript, if it is I wanna try them out to check my PHP codes.
  16. Ok, outdating was maybe not the word, lol, not my fault our English-teacher can't teach us English :)I mean that framesets is something that's going to be gone in not too long, because they ######. I could sit here all night long to make a list over the bad things, and do not reply with the message "It'll go faster to change design instead of doing it on all sides". Although that's true, you can do something similar with the GET tag in PHP. Like I do at my personal Web site (http://www.andersmoen.hotserv.dk) if you go there, and you'll see the url andersmoen.hotserv.dk/index.php?side=1 or maybe index.php?side=4 after what you're at, that's the best
  17. Anders Moen

    ASP.NET

    I don't think freewebs.com let you use ASP, or do they? 'Cause then I'm gonna try them out again, because I wanna learn ASP but I don't know about any free host that lets you use it. Anyone knows any?
  18. HTML <img src="your_image.jpg"> img { border: 0px; } to use img {border-style: none;} as I saw further up, is wrong, well, it might work, but I don't recommend it when you can do it simpler with using only border: 0px;
  19. If you want to make a form you should be able to use PHP which is the easiest way (Would I say). There you can use mail() function. Quiet simple. You can find examples of the mail() function here
  20. If you're gonna add on images up on a larger one, you could let the large one just be a background-image.For example: <div style="width: 600px; height: 400px; background-image: url(image.gif); background-repeat: no-repeat;">In here you just add on more div's with different heights and widths to make the images come where you want them. You might wanna use float: left; on the div's that'll come inside this "huge" div</div> If you know how to use div's I think this would be easier than making an image map.
  21. Anders Moen

    <p> tag

    Hmm, weird. Give us the code so it's easier to see what you've done wrong. It might be because you haven't closed another paragraph. Send us the code, so we can check.
  22. Anders Moen

    <p> tag

    Hmm, weird. Give us the code so it's easier to see what you've done wrong. It might be because you haven't closed another paragraph. Send us the code, so we can check.
  23. As people has said earlier, do it this way:HTML:<div id="center_image"><img src="yourimage.gif" alt=""></div>CSS:#center_image {width: 100%;// There are two options I would have used in this case. You choose yourself:// width: 100%; and text-align: center;// OR// margin: 0 auto; and text-align: center; (and not width: 100%;, but width: 300px; (just an example width instead of 100%))text-align: center;// And now you just add on the rest }
  24. Of course <span style="text-align: center;">text</span> won't work, because you don't have a width of the span tag.Instead you should use;<div style="width: 300px; text-align: center;"><span>all your content</span></div>Just change the width to what you want.And by the way, I've noticed the <span> element gets ######ed up in either IE, FF, Opera or something else.
  25. In other words, don't use frameset. It's outdating
×
×
  • Create New...