www.webdeveloper.com

Search:

Type: Posts; User: empireapathy

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    1,173

    Thanks a lot! That's exactly what I was looking...

    Thanks a lot! That's exactly what I was looking for!
  2. Replies
    2
    Views
    1,173

    [RESOLVED] Noob-ish Question about URLs

    I'm trying to figure out a way (if possible) to have a url such as "example.com/xY25e" to go to my index.php and to allow me access to that ending "xY25e" code.

    What I'm doing is attempting to...
  3. Never mind, another 3 minutes of Googling got it...

    Never mind, another 3 minutes of Googling got it for me. They're called Bitwise operators for anyone interested, here's an article on them:...
  4. [RESOLVED] What are these JavaScript operators? "

    Ran across some code on Stack Overflow today that had me stumped. This is a few lines from the code.



    var enc1 = chr1 >> 2;
    var enc2 = ((chr1 & 3) << 4) | (chr2 >> 4);
    var enc3 = ((chr2 &...
  5. CSS and JavaScript events only targeting text - IE8

    I have two tables that I want to have a pointer cursor when you hover over the rows. The first table works as expected, when you hover over the text or any empty space in the row you have a pointer. ...
  6. I got it! I opened one of the (what I thought...

    I got it! I opened one of the (what I thought were) incomplete files in textpad and this is what was in there:


    <br />

    <font size='1'>
    <table class='xdebug-error' dir='ltr' border='1'...
  7. Thanks for the replies. No luck, though. I...

    Thanks for the replies. No luck, though. I tried taking all the spaces and any special characters out of the file name, I tried a relative link, I also tried another file, an mp4 and got the same...
  8. Try this. var refDomain =...

    Try this.




    var refDomain = document.referrer.match(/:\/\/(.[^/]+)/)[1];

    if (refDomain == "www.google.com" || refDomain == "www.digg.com"){
    ...
  9. Replies
    2
    Views
    1,264

    This is an interesting line: var fade =...

    This is an interesting line:
    var fade = document.getElementById("fade").style.visibility = "visible";

    I tried this in Chrome and fade equaled "visible". I do know that IE doesn't like it when...
  10. Replies
    1
    Views
    1,099

    Without any code to look at, all I can suggest is...

    Without any code to look at, all I can suggest is to ajax it.

    PHP runs server side, the only way you might get PHP to run client side is if the user had PHP installed on their machine.
  11. From the sound of it, you're saying: If a user...

    From the sound of it, you're saying:
    If a user is on google and they click my ad, I don't want them to ever see it again.

    If I'm understanding your question properly, the only place it's going to...
  12. [RESOLVED] readfile isn't worky properly on Wamp server

    I pretty much just copied and pasted this from PHP.net's readfile page.


    <?php
    $file = "C:/wamp/www/Last Night.avi";
    $info = pathinfo($file);
    if (file_exists($file)) {
    ...
  13. Looks like you're right about the encoding. ...

    Looks like you're right about the encoding. mb_substr_count still wouldn't work but when I saved one of the text files specifically as ANSI, not only did substr_count work but those weird characters...
  14. I've tried doing back to back tests with this: ...

    I've tried doing back to back tests with this:


    while(($sesLine = fgets($sesFile)) !== false){
    echo "SesLine: " . $sesLine . "<br />";
    echo "Substring count: " ....
  15. [RESOLVED] Issue with substr_count, strrpos and strripos

    I'm working on an application that will read hand histories from online poker.




    while(($sesLine = fgets($sesFile)) !== false){
    echo "SesLine: " . $sesLine . "<br />";
    ...
  16. Thread: >>?

    by empireapathy
    Replies
    2
    Views
    959

    Wow... you just opened a whole new world for...

    Wow... you just opened a whole new world for me...

    Thanks a lot!
  17. Thread: >>?

    by empireapathy
    Replies
    2
    Views
    959

    >>?

    I was checking out some more advanced code and I came across this line, I was wondering what the >> denote.


    (properties[i][2] >> 1)

    Thanks in advance!
  18. Replies
    2
    Views
    1,173

    Why would you put [] in their names? You...

    Why would you put [] in their names?

    You could make their names id's and use document.getElementById("someName[]"), then it'd just be a string.
  19. Replies
    2
    Views
    1,480

    Book Recommendations

    I recently have been falling in love with JavaScript. I'd like to take my understanding to the next level and get some good books on more advanced JavaScript concepts. Anyone have any...
  20. Replies
    5
    Views
    2,411

    You could create a function that is animated by...

    You could create a function that is animated by using the setInterval function.

    To tween you could put data inside Arrays that the interval function accesses, so you'd have an array for speed,...
  21. Replies
    3
    Views
    1,087

    Worked perfect! I tried that earlier and it...

    Worked perfect! I tried that earlier and it didn't work but that must have been due to other bugs. Thanks!
  22. Replies
    3
    Views
    1,087

    [RESOLVED] Anyone Good At Trigonometry?

    Here's my problem in a nutshell... I'm trying to get an angle based on the position of the mouse in relation to an element on the page, but I'm running into an issue with the Math.tan() function.
    ...
  23. Replies
    3
    Views
    1,323

    Did an alert: alert(parent.location.href); It...

    Did an alert:
    alert(parent.location.href);

    It came up "undefined".
  24. Replies
    3
    Views
    1,323

    Accessing the Parent Frame

    I'm trying to figure out why this code isn't working. I'm using an iframe and I have this code in the src file for that iframe.



    if (parent.location == "http://domain.com/store.html"){...
  25. Replies
    0
    Views
    601

    Twitter @account Message System

    I'm trying to figure out the logic behind how to set up a message system similar to Twitter's or YouTube's comment system where the account name is started with an @.

    So I'm trying to write a...
Results 1 to 25 of 42
Page 1 of 2 1 2
HTML5 Development Center



Recent Articles