Jump to content

ShadowMage

Members
  • Posts

    3,476
  • Joined

  • Last visited

Everything posted by ShadowMage

  1. Now that you mention it, I do remember that. I'm just so used to putting it in, that I forget it isn't required. Anyway, misselka, if the suggestions aren't working, please update your test site with what you tried so we can see what's going on.
  2. Yeah, I totally forgot about using background images. That would be the best option, especially if you use sprites. EDIT: But then again, that only works if you want the arrow inside the li. The options I gave you would allow it to appear outside of it.
  3. You're also missing a semicolon in the height:100% for the html tag. I also notice that you have <style> tags in your external stylesheet. Remove those. There's also a comma instead of a semicolon on one of the rules in your very last ruleset (#column4).
  4. This is usually the next question asked after being shown how to assign a function by reference so I'll answer it before it's asked: If you want to pass parameters to a function you'll need to wrap the function call in what's called an anonymous function: document.getElementById(divID).onclick = function() { test(aParameter); } An anonymous function is basically a function without a name.
  5. Of course it's possible. Anything is possible if you try hard enough. There are two main ways it can be done: one with pure CSS and one with JavaScript. Google "CSS tooltips" or "JavaScript tooltips" (depending on which one you want to use) and you should find a good number of tutorials. The advantage to the CSS method is that it will work in all browsers under pretty much any circumstances, whereas the JavaScript method obviously will not work if JavaScript is disabled. The disadvantage to the CSS method is that it's going to produce more markup but that's not really that big of an issue because the effect is pretty minimal unless you're making thousands of tooltips.
  6. Per Webster: Blame:1: to find fault with : censure <the right to praise or blame a literary work>2a : to hold responsible <they blame me for everything> 2b : to place responsibility for <blames it on me> Criticize:1: to consider the merits and demerits of and judge accordingly : evaluate2: to find fault with : point out the faults of Hmm....interesting...
  7. Ok, thanks. Guess I'll do it that way then. I read about the regex search but it says it isn't binary safe, and I have no idea what charset this database uses (or the application that writes to it, I guess) so I opted out of the regex option. But now that you mention performance, it gives me a little more reason to stay away.
  8. I have a field that contains a tilde delimited string of rep codes. For example:Rep1~Rep2~Rep3~~~~ I am currently using LIKE to select a particular rep code: OrderHed.SalesRepList LIKE '%Rep1%' Problem is, with the above clause, codes like Rep12 are also selected. Is it possible to write a clause that will select only those with Rep1?I know that I can do something like this: OrderHed.SalesRepList LIKE 'Rep1~%' OROrderHed.SalesRepList LIKE '%~Rep1~%' OROrderHed.SalesRepList LIKE '%~Rep1' but that seems really long winded. There has to be something simpler. Or is this the only way?
  9. ShadowMage

    bullet issues

    In Activities.php! Sheesh, how many times to I have to say it?
  10. ShadowMage

    bullet issues

    By editing the stylesheet embedded in Activities.php... The stylesheet starts right after the opening <div id="mainnav"> tag (which, I might add is invalid since stylesheets must go in the head). Find that div and you'll find your stylesheet. Use your text editor's search feature if you need to.
  11. Ok, that's what I thought. The reason I'm asking is because the web host for our company website is migrating to a new server and they made some directory structure changes that broke the website. So I'm trying to figure out what the heck is going on and how to fix it (I didn't write the website so it's...difficult...to say the least). Anyway, with your confirmation, I just had an epiphany. I had thought that the above didn't make sense, because it didn't match up with the directory structure on the old server, but then I realized that the file path I posted was taken from the error message that was thrown out on the new server. So of course it wouldn't match the structure on the old one! Once I got the file structures straightened out and using the right one on the right server, everything started making sense. ^_^Thanks for the confirmation and the nudge in the right direction, Ingolme!
  12. Having some issues with require paths and I just want some clarification. I know how I think this should work, but it doesn't make any sense. How would the following path resolve:/usr/local/www/htdocs/majorsky/htdocs/../lib The path is invoked from:/usr/local/www/htdocs/majorsky/htdocs/webspace
  13. ShadowMage

    bullet issues

    The code affecting the list is not in either of your CSS files (custom.css or jquery.megamenu.css). It is not a conflict between your two CSS files. The code is in Activities.php. It is an embedded stylesheet, which has higher priority than external stylesheets, so its styles are being applied instead of (or in addition to) the ones in your external stylesheets.
  14. This is where it helps to have gone through the tutorials and understand HTML and CSS. The color gets added to the stylesheet just like the rest of your styles do. You need the selector for the elements you want to change the color of (in this case it's just h1) and then the properties you're changing (in this case, color: blue;) between the {}. To add the border to the body and keep the border on the form, yes, you create a new rule for the body, mimicking the one you have for the form except that the selector targets the body instead of the form.If you want the "blocks" in your form, you need to give borders to each td/th element in your table. Changing the font colors of the form is the same as changing it for the h1 (except using different selectors, obviously). To submit the form to a new page, just set the action attribute of the form to the URL of the new page. In order to really do anything with the data you submit, though, you'll need to use a server side language like PHP to process it.
  15. Well, I honestly didn't think using the margin with fixed positioning would work, but it does (at least in FF). At any rate, I think we've proven that CSS is, in fact, not broken. At least, not this part of it (yes, there are certain parts of CSS that are "broken" but these are slowly being "fixed").
  16. I think dsonesuk may be overthinking this a little bit (no offense, dsonesuk ) This one's easy:#fixed_right { position: fixed; /*width and height*/ right: 0px; top: 0px;} This will fix the element to the top right corner of the browser window. If the window is resized, it will remain in the top right corner. This one's not so easy. At least, not if you want to support older browsers. Any browser that supports CSS 3 is a simple fix with box-sizing:#fitted_box { box-sizing: border-box; height: 100%; width: 100%; border: 10px solid black;} I'm not even sure if it's possible to do for other browsers.Unless, by "border", you're actually referring to a margin. In which case, you could change the border color to transparent or use padding, but for the sake of older browsers it would be best to use something like what dsonesuk is suggesting. Make the element fixed position and set the top/left/bottom/right to 10px and it should work (I think).
  17. ShadowMage

    bullet issues

    By using Firebug to inspect the list, I can see that there is a rule in Activities.php affecting ul's. Firebug says the rule is on line 68, but I doubt it's actually on line 68 since Firebug can't see the PHP code, only the output from the code. Either way, you must have an embedded stylesheet on that page. Look for that embedded stylesheet and edit it and your problem should disappear.
  18. Ok, this is where the code you were originally given comes in. You have the following code adding the border:#myunique_signup_form{Border:5px double green} This, as you mentioned, adds the border to just the form element. You need to add the border to the body. So just change the selector to target the body.Also, your syntax is wrong for the property. Should be:border: 5px double green;(note the lowercase 'b' and the semicolon at the end) To change the color, set the color:color: blue;
  19. Unfortunately..... (Though I hear it's getting better with IE 9 & 10)
  20. I am almost positive it's been mentioned to him. I could be wrong, though, I suppose.... That's near impossible what with the search function being broken......I really wish the admins would get on that.
  21. ShadowMage

    bullet issues

    Or if you want them all to be square, you can add the following as a new rule in your CSS: ul { list-style-type: square;} Either way, list-style-type is what you want to be looking for to fix your bullets.
  22. This forum is for education. Education in web development, that is.
  23. Click the wrench icon next to the address bar, Tools -> Developer Tools Because it's been mentioned several times.......but you'd need to read in order to know that I suppose...
  24. Precisely what I thought. How long have you been doing this, Eduard? By now you should know that every major browser has their own developer tools. If you're using IE, press F12 to show the developer tools. FF has several extensions (like FireBug and DOMInspector) as well as it's own built-in tools.
  25. The function addEventListener can be used to add multiple event handlers. However, it isn't fully cross-browser (IE, as usual, doesn't follow the rules). So, the easier way is to just call your two functions within a wrapper function and asign the wrapper as the handler: function wrapperFunc() { busSliderFunction(); phoneMsgFunction();}element.onclick= wrapperFunc; Or if you want to use an anonymous function, you won't have to define wrapperFunc: element.onclick= function() { busSliderFunction(); phoneMsgFunction();}
×
×
  • Create New...