Jump to content

All Activity

This stream auto-updates     

  1. Past hour
  2. Construx

    Links behind DIV don't work on iOS

    This works on a desktop web browser. It doesn't work on iOS safari. I attached a copy of it as I have not posted it yet. link.html
  3. Today
  4. justsomeguy

    Pause ScrollTo / scrollbar effect

    That's fine, there are mousedown and mouseup events you can use. Again, with the basic tools like running a function every so often, or on each animation frame, you can make it behave however you'd like. You're wrong, you can either use those or requestAnimationFrame. In your case the mousedown event would start the animation, and the mouseup event stops it. Again, the animation itself would be handled with setTimeout/setInterval, or requestAnimationFrame.
  5. starwag

    Pause ScrollTo / scrollbar effect

    Sorry, I wasn't clear. I'll edit the original question. I really appreciate your quick response, though. What I was wanting was to pause the ScrollTo animation onmouseup. Example: when the button is onmousedown start animation towards the anchor at bottom of the div, and onmouseup pause the animation. Basically, I am trying to make a button to replace a scrollbar, so I'm trying to achieve the same behavior, where holding down on the button begins a smooth scroll that pauses when the button is released. The onmouseup should leave the div at the y location it was before it stopped, and the user should be able to start from this position to go the other y direction, if they so choose. I don't think setTimeout/setInterval would help for this, but maybe I'm wrong. I've tried to override the bottom anchor with current y-position coordinates, using Yoffset, but that did not work out so well, which is why I'm wondering if ScrollTo animation can be paused without setting a timer. Like I said, I'm assuming I can't, but I am still learning.
  6. plugnz14

    PHP_SELF refresh

    Here was the offending variable..... Thanks again for your help.
  7. plugnz14

    PHP_SELF refresh

    Justsomeguy, Thank you so much! That is awesome!
  8. hisoka

    knowing what is the hex number

    thank you very much
  9. justsomeguy

    Pause ScrollTo / scrollbar effect

    You can program whatever animation you'd like. I'm not sure if there are CSS rules to do that automatically, there might be with some of the CSS animation stuff, but otherwise the old-fashioned way is to have a Javascript function that runs periodically (every few milliseconds, or whatever you want the interval to be), and each time it runs it figures out what needs to be moved and moves it a little bit. There are a few ways to do that, again the old-fashioned way is to use setTimeout/setInterval, and the more modern way is to use animation frames.
  10. justsomeguy

    knowing what is the hex number

    Thanks, I like to keep it short, especially in the summer.
  11. I've been trying to create a two button system to allow viewers to scroll up and down through a list, much like they would be able to with a scrollbar. Onmousedown should implement a scrolling animation using the list's content. I was intending to use JavaScript ScrollTo, with anchors at the top and bottoms of the div, but wondered if there is any way to make this pause onmouseup before it reaches its anchor, and then reverse from its current position, so that I could accomplish this scrollbar effect. Basically, it should act just like a scrollbar, where releasing the down button will stop the animation at its current y-position and allow the user to redirect their scroll if they choose. I suspect this is not possible with ScrollTo, but does anyone know?
  12. Ingolme

    knowing what is the hex number

    Every meaningful sequence of symbols comes from a source that should have documentation that describes how to interpret the symbols in the sequence. If you have a meaningless sequence of symbols, no meaningful information can come from it.
  13. dsonesuk

    Block Size

    Considering block-size is experimental and only works for Firefox browsers, why even think of using it? Also you can't use div within table how you have shown, only outside the table or within a table td element, which also must be within a tr element to take the text 'example#'.
  14. justsomeguy

    PHP_SELF refresh

    It's trying to echo a variable called $anchor_bit in the URL, you should set that variable to "#blog". The anchor goes at the end of the URL, not before the querystring.
  15. justsomeguy

    hex to binary conversion understanding

    Leading zeros do not change the value of the number. If you have 789 things, is 0000000000789 a different number? No, it's not, the zeros do not change the number. The hex value would be 0010 0011 0101, those are the three bytes, but if you put those together then you don't need the leading zeros. Also, this only matters if you are treating this as an actual number. Maybe those 2 leading zeros are part of the binary data, which means you would not remove them. If you're going to convert it to a number though, then you don't need leading zeros.
  16. justsomeguy

    Block Size

    You're not applying the CSS class to the element. You use the class attribute to tell it which classes to use, you don't just write the CSS selector inside the HTML tag.
  17. justsomeguy

    knowing what is the hex number

    Well, think about that question. All you have is a sequence of hex digits, right? Is there any other information there? Is there anything other than the actual hex digits? Because if there's not additional information about how to split that up or which digits go with each other, then is there a way to get any other information at all about the hex digits? I mean, take hex out of the equation if you want to. Here, base-10 digits: 513857634343546894648435486743543634 Now, if I tell you that the above is 3 numbers that are concatenated, how do you know what those 3 are? Is there any information in the above series of numbers which is telling you how many numbers there are or where they are separated or anything? What about letters: nauehdncifoendkdusydngkshcufwnwiiaksdhgk Now, that's 3 passwords concatenated. Is there any information there to tell you how to separate those? Why do you think hex is magically different? Why do you think a series of arbitrary hex characters contains some additional information that you're not seeing that would tell you which characters are part of groups?
  18. justsomeguy

    periods with unicode characters in a decrypted message

    I'm not sitting there watching you, but when you are encrypting and decrypting data you are not dealing with "characters", you're dealing with binary data. If you open it in a text editor, the text editor will try to convert it to characters and show those, but it is not character data, it is binary data. You need to understand that, I've been trying to make the point that you are dealing with binary data, not text. If you copy and paste that binary data around you might be losing information depending on how you're copying it, because you're probably copying it from a program that is trying to display it as text. It is not text. It is binary data. Do not treat it like text. When you encrypt data, it does not change each character to a different character, it transforms the entire binary stream. It does not look at the data as a series of characters, it looks at the data as a series of bits. That is how you need to look at it. You keep looking at it like it's text. The encrypted data might not even be the same length as the original data. So, I'm not sure what the purpose of pasting this into a website to count the characters is, and there's no reason to try and paste it here. It's just binary data. The reason you are seeing different characters in different situations is, again, because you are treating it like it's text and it's not. Different programs might display binary data differently, especially if they're treating it like text. The only way to view binary data is in either binary or hex format, which are 2 different representations of the same data. With that text you pasted above, that contains Unicode characters. So, whatever you're using is treating it like Unicode text. Like I said, Unicode is a multi-byte character set. So, some programs might group the bytes into Unicode characters, and others might try to treat it as ASCII and show each byte as a character. That means they will have different lengths. Again, this is because you are treating the data like text when it is not. All of your confusion is due to the fact that you think you are looking at text. You are not. You are looking at a text editor trying to show you binary data, which it was not designed to do. Why would that ever happen? Why would encrypting or decrypting data result in characters that you should ignore? That seems like an awful quality in an encryption algorithm.
  19. dsonesuk

    hex to binary conversion understanding

    That is how numbers are formatted, leading 0s will always be removed, unless you convert to text string.
  20. hisoka

    hex to binary conversion understanding

    hello thanks but why it omitted the leading zeros
  21. dsonesuk

    JAVASCRIPT nodeList/nodeCollection

    Both work exactly the same if used correctly, with nodeValue you have to access the parent element text node first using childNode[0] then nodeValue (childNode[0].nodeValue), with .innerHTML its simple needs a reference to parent element in question to add or retrieve text within it.
  22. Iven

    JAVASCRIPT nodeList/nodeCollection

    Thats awesome thank you Also what is the difference between nodeValue and innerHTML?? And which one should I use to receive the text between element tags?
  23. dsonesuk

    JAVASCRIPT nodeList/nodeCollection

    Yes! spaces are Text nodes, if you want to be element specific only, use '.children' instead function a(index) { var d = elements[index]; alert("Children length: " + d.children.length); alert(d.children[1].nodeName); alert("childNodes length " + d.childNodes.length); alert(d.childNodes[1].nodeName); }
  24. Iven

    JAVASCRIPT nodeList/nodeCollection

    Thank you so much dsonesuk for bringing clarity and using such an simple example. That makes so much more sense. So I am correct in assuming that node doesn't always just mean elements? It can be spaces too?
  25. juan.rojas89

    Block Size

    I have been using the <block-size: XX%;> property to prevent a table from resizing on different screens but I can't seem to get it right, what could I use to solve this? this is an example of how I'm applying the code: HTML <div .div-central> <tr>example1</tr> <tr>example2</tr> <tr>example3</tr> </div> Css .div-central { block-size: 60%; }
  26. dsonesuk

    JAVASCRIPT nodeList/nodeCollection

    You can see this, using function a(index) { var d = elements[index].childNodes for (i = 0; i < d.length; i++) { alert(d[i].nodeName); } }
  27. dsonesuk

    JAVASCRIPT nodeList/nodeCollection

    The reason it does not give the result you expect, is because any line breaking or stacking of html is treated as a space, and these or any spaces present is treated as a text node
  1. Load more activity
×