Ingolme

Moderator
  • Content count

    12,798
  • Joined

  • Last visited

  • Days Won

    299

Ingolme last won the day on March 27

Ingolme had the most liked content!

Community Reputation

762 Excellent

2 Followers

About Ingolme

  • Rank
    Foxy Mod

Previous Fields

  • Languages
    Javascript, PHP, MySQL

Contact Methods

  • Website URL
    http://www.thecodingfox.com/
  • ICQ
    0

Profile Information

  • Gender
    Female
  • Interests
    Web development, drawing, videogames, foxes.

Recent Profile Visitors

157,224 profile views
  1. April Fools' Day isn't until Saturday.
  2. The answers are in the CSS tutorial: https://www.w3schools.com/css/css_howto.asp
  3. You should go through the CSS tutorial first, everything should be answered there. There's no point just copying and pasting code, you need to understand what it does.
  4. If all you want to do is add space between the elements, you need CSS. You can add padding to the left of the link.
  5. It doesn't matter which element you use because you can use CSS to change the padding or margin of the element. If it's a link, use <a>. The element you use should describe the content. If any of the elements in the table on this page matches the meaning of your text, then use them. If nothing can properly describe your content then use <div> for block display and <span> for inline display. You should never choose an HTML element based on how it looks, but based on how well it describes the content. Use CSS to change how an element looks.
  6. I assume this is a horizontal menu. To center items in a horizontal menu, remove float, set their display to inline-block and then set the text-align of the parent to "center".
  7. There are three aspects to take into account in a web page: Content: HTML Presentation: CSS Behavior: Javascript The same way we want to separate content from presentation, we also want to separate content from behavior. Javascript should only be inside <script> elements, CSS should only be in <style> or <link> elements and HTML should not be polluted with attributes concerning behavior and presentation. You wouldn't use align and bgcolor attributes, so why would you use onclick attributes? In your original code, otherTongue is restricted to the local scope of the function it was declared in, it's not accessible from outside. That's why the onchange event attribute can't find it, the event attribute is looking for a global function.
  8. animation-play-state doesn't refer to GIF files, it refers to CSS 3 animated properties. There is no way to stop an animated GIF from playing. If you want full control over animated images, you'll need a spritesheet and a Javascript code that animates the images. You can use <canvas> or set the background image of a fixed size box. With Javascript you can detect whether the window has been focused or blurred using the "focus" and "blur" event listeners on the window.
  9. That's because otherTongue is local to the scope of the function that runs after the document has finished loading, aside from the fact that it doesn't even exist until after the HTML has finished rendering. Either declare the function outside of $(document).ready() or assign the event handler using Javascript. I would discourage the use of HTML attributes for events, here's some self-contained Javascript that will work without having to download the entire jQuery library before running: window.addEventListener("DOMContentLoaded", assignEvents); function assignEvents() { document.getElementById("other").style.display = "none"; document.getElementById("tongue").addEventListener("click", otherTongue); } function otherTongue(e) { if(e.currentTarget.value == "other_tongue") { document.getElementById("other").display = ""; } }
  10. What CSS code did you use?
  11. There doesn't seem to be an option to remove those numbers, so you'll have to hide them with CSS, at least they're not links. The CSS for this kind of pager is easier: .pager-current { display: none; }
  12. If you're using Drupal 7 and Views UI then the pager options are in the middle column when editing views. You have the following options for pagers: Display a specified number of items Display all items Paged output, full pager Paged output, mini pager The mini pager option has only previous, next, first and last buttons.
  13. I've worked with Drupal before and it does have different pagination options, at least for the views.
  14. If you can afford to ignore Internet Explorer 10 and below, the :not() selector will do the job. .pagination > li:not(.prev):not(.next):not(.pager-first):not(.pager-last) { display: none; } If you want to support more browsers, you would first hide all the list items, then show the ones you need: .pagination > li { display: none; } .pagination > .prev, .pagination > .next, .pagination > .pager-first, .pagination > .pager-last { display: inline-block; /* Or whatever display they're supposed to have */ } But the best solution would actually be to prevent these links from appearing in the HTML in the first place, and the reason for that is that search engine robots may think you're trying to show different content to search engines than to the user. How are these links being generated?
  15. My code was using ob_get_clean() which deletes the buffer and returns its contents. It doesn't matter what code you use to send the mail, the string that you want to use is in the variable, you can do what you want with it: print it, store it in a database, send it in an e-mail...