Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About babyboomer

  • Rank

Profile Information

  • Gender

Contact Methods

  • Yahoo
  1. Is it possible to use a formatting (escape) sequence in the Java printf statement to remove specific characters from the string argument? For example, if I have a string like, "[0, 1]", is there a formatting string I can use to remove the left and right bracket characters ([])? Is there a "regular expression" for the Java printf statement that will filter out those characters?
  2. Okay. I'm not sure I follow all of that, but the bottom line is that I did try the .html() method… var d = new Date(); $('#copyright').html('© ' + d.getFullYear() + ' John Doe'); … and it seems to be working! Thank you!
  3. I would like to call the jquery text() method with a string argument that includes the HTML character entity for the copyright symbol (©). I've tried numerous variations of the following theme: $('#copyright').text('© ' + date.getFullYear() + ' John Doe'); So far, nothing I've tried has produced the desired result. Specifically, the HTML "& copy;" entity is not getting translated into the copyright symbol. Is it possible to pass an HTML character entity in this way?
  4. When I decided I wanted to add a visitor counter to my website, I scoured the Internet for a ready-made solution. I don't yet have the expertise to write my own routine, so I was hoping to find something relatively simple to implement. I encountered numerous sites offering free counters. On most of them, the process was the same. They provided a mechanism for customizing the way the counter should look. After selecting the styling options and viewing a preview, you push a button to generate the corresponding HTML code. The code generated is an HTML <img> tag which is to be placed in your
  5. So, I found this site on the Internet. It's just one among many that offer the same service. I plugged the code into my HTML document, and it seemed to behave as advertised... However, I'm wondering about the wisdom of embedding a link to an unsecured URL.
  6. None of the above constitute my definition of a "hit." perhaps the word "visit" would be more appropriate. If I give someone a tour of every room in my home, that still constitutes a single visit. I guess that's what I'm looking for. Perhaps a simple solution would not be sufficient to meet my requirements.
  7. I'm looking for a simple hit counter that I can plug into and display on my website. Someone suggested a solution from Google, but that's really more than I'm looking for. I just need something that will display the number of visits to my site. Any suggestions would be greatly appreciated.
  8. According to my research, all indications are that the getElementByClassName method can accept multiple arguments. for example: var x = document.getElementsByClassName("class1 class2"); I haven't gotten this to work. I have been experimenting with it on CodePen. What am I missing?
  9. Thank you, dsonesuk! Wow! That was easy! I can't believe I missed that. I'm feeling kinda silly right now.
  10. Okay, here's my dilemma… I've published a website which runs an MP4 file. I've tested the site in numerous browsers, including Opera and Safari. The problem is that when using Firefox to access the site from a Linux system, the video doesn't run. I tried switching from MP4 to WEBM. That solved the problem with Firefox. Unfortunately, the trade-off was that the Microsoft browsers won't run the WEBM file. I guess one consolation might be that the percentage of people using Firefox to access my site from a Linux system is relatively small. But that's pure speculation on my part. I did f
  11. Thank you, Funce. Ideally I'd like to implement browser-specific styling. What little research I've done seems to indicate that browser detection is not an exact science. While waiting for a perfect solution, however, I'm willing to implement whatever is the current best practice. I looked at Polyfills, but didn't find anything applicable. Perhaps someone has authored a script that would do the job. A point in the right direction would be greatly appreciated.
  12. I've been using the following CSS rule… .inset-shadow { color: Transparent; background: #8C2633; text-shadow: rgba(255, 255, 255, 0.4) 2px 2px 2px, 0 0 0 rgba(0, 0, 0, 0.5); } … to produce the following result: The following is another example of this text effect… …which can be found in the following exercise on CodePen The problem is that the behavior of this construct is inconsistent. Specifically, the Microsoft browsers are having difficulty displaying the text when I use the "transparent" value for the CSS color property. Subsequent research woul
  13. Thank you, Ingolme! To answer your question, it is the Internet Explorer browser with which I'm having the problem. Surprisingly, I'm not having this problem with Microsoft Edge. I went to the font squirrel site to try converting the font (Comic Sans MS), only to discover that It has been "blacklisted."
  • Create New...