Jump to content

Chocolate570

Members
  • Posts

    1,550
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Chocolate570

  1. Ah, that is one of the most common mistakes in spambot protection...administrators don't think that the spambots read the URLs, but that they just look at the page as a user would. Not the best idea, and often, it overrides all of your spam protection.
  2. Well, it's back. :)Not that I ever missed it. I never really found a use for that site, personally (I use the term use relating to me, it may help other designers get ideas/learn CSS). This is the first time I've even visited in months
  3. I've always been curious--how much money do you think W3S gets from google ads? We must have quite an influx of visitors here..but since Google is reworking their whole darn system, I wonder...
  4. Yes, that is correct. I suggest you get FireFox and download the Firebug extension. It allows you to add breakpoints, which do exactly what you want.
  5. Ahh. I think I may just be stupid. :)Try this: <!--Beginfunction answer() {var emptyPocketsOne = document.calc.regex.valueparseemptyPocketsOne = emptyPocketsOne.match(/Empty Pockets: (\d+)/)var usedPocketsOne = document.calc.regex.valueparsusedPocketsOne = usedPocketsOne.match(/Used Pockets: (\d+)/)var labSpaceOne = document.calc.regex.valueparselabSpaceOne = labSpaceOne.match(/Drug Lab Size: (\d+)/)var junkiesOne = document.calc.regex.valueparsejunkiesOne = junkiesOne.match(/Working Junkies: (\d+)/)var JunkiesTwo = document.calc.regex.valueparseJunkiesTwo = JunkiesTwo.match(/Training Junkies: (\d+)/)var emptyPocketsTwo = document.calc.regex.valueparseemptyPocketsTwo = emptyPocketsTwo.match(/Empty Pockets: (\d+)/)var usedPocketsTwo = document.calc.regex.valueparsusedPocketsTwo = usedPocketsTwo.match(/Used Pockets: (\d+)/)var labSpaceTwo = document.calc.regex.valueparseelabSpaceTwo = labSpaceTwo.match(/Drug Lab Size: (\d+)/)var junkiesTwo = document.calc.regex.valueparsejunkiesTwo = junkiesTwo.match(/Working Junkies: (\d+)/)var JunkiesTwo = document.calc.regex.valueparseJunkiesTwo = JunkiesTwo.match(/Training Junkies: (\d+)/)var totalJunkies = (junkiesOne[1] + junkiesTwo[1])var resultOne = 0while (usedPocketsOne[1] > totalJunkies - labSpaceOne[1] * 17) { resultOne = resultOne + 1 usedPocketsOne[1] = usedPocketsOne[1] - totalJunkies + labSpaceOne[1] * 17 totalJunkies = totalJunkies + 1}var resultTwo = 0while (usedPocketsTwo[1] > totalJunkies - labSpaceTwo[1] * 17) { resultTwo = resultTwo + 1 usedPocketsTwo[1] = usedPocketsTwo[1] - totalJunkies + labSpaceTwo[1] * 17}var visitsOne = document.calc.regex.valueparsevisitsOne = visitsOne.match(/Dealer Visits Remaining: (\d)/)if (visitsOne[1] == 0) { resultOne = resultOne - 2 usedPocketsOne[1] = usedPocketsOne[1] + 1}var visitsTwo = document.calc.regex.valueparsevisitsTwo = visitsTwo.match(/Dealer Visits Remaining: (\d)/)if (visitsTwo[1] == 0) { resultTwo = resultTwo - 2 usedPocketsTwo[1] = usedPocketsTwo[1] + 1}document.getElementById('result').innerHTML ="<b>You can spend " + resultOne + " ( " + resultTwo + " ) " + "tokens" + "," + " You need to purchase " + (emptyPocketsOne[1] - usedPocketsOne[1]) + " ( " + (emptyPocketsTwo[1]- usedPocketsTwo[1]) + " ) " + " drugs" + ".</b>"}// End-->
  6. Oh, I apologize.Just take the data from the form that you're passing to the function and use the escape() function with it.For example, use this as your function:function answer() {var emptyPocketsOne = eval(escape(document.calc.regex.value))parseemptyPocketsOne = emptyPocketsOne.match(/Empty Pockets: (\d+)/)var usedPocketsOne = eval(escape(document.calc.regex.value))parsusedPocketsOne = usedPocketsOne.match(/Used Pockets: (\d+)/)var labSpaceOne = eval(escape(document.calc.regex.value))parselabSpaceOne = labSpaceOne.match(/Drug Lab Size: (\d+)/)var junkiesOne = eval(escape(document.calc.regex.value))parsejunkiesOne = junkiesOne.match(/Working Junkies: (\d+)/)var JunkiesTwo = eval(escape(document.calc.regex.value))parseJunkiesTwo = JunkiesTwo.match(/Training Junkies: (\d+)/)var emptyPocketsTwo = eval(escape(document.calc.regex.value))parseemptyPocketsTwo = emptyPocketsTwo.match(/Empty Pockets: (\d+)/)var usedPocketsTwo = eval(escape(document.calc.regex.value))parsusedPocketsTwo = usedPocketsTwo.match(/Used Pockets: (\d+)/)var labSpaceTwo = eval(escape(document.calc.regex.value))parseelabSpaceTwo = labSpaceTwo.match(/Drug Lab Size: (\d+)/)var junkiesTwo = eval(escape(document.calc.regex.value))parsejunkiesTwo = junkiesTwo.match(/Working Junkies: (\d+)/)var JunkiesTwo = eval(escape(document.calc.regex.value))parseJunkiesTwo = JunkiesTwo.match(/Training Junkies: (\d+)/)var totalJunkies = (junkiesOne[1] + junkiesTwo[1])var resultOne = 0while (usedPocketsOne[1] > totalJunkies - labSpaceOne[1] * 17) { resultOne = resultOne + 1 usedPocketsOne[1] = usedPocketsOne[1] - totalJunkies + labSpaceOne[1] * 17 totalJunkies = totalJunkies + 1}var resultTwo = 0while (usedPocketsTwo[1] > totalJunkies - labSpaceTwo[1] * 17) { resultTwo = resultTwo + 1 usedPocketsTwo[1] = usedPocketsTwo[1] - totalJunkies + labSpaceTwo[1] * 17}var visitsOne = eval(escape(document.calc.regex.value))parsevisitsOne = visitsOne.match(/Dealer Visits Remaining: (\d)/)if (visitsOne[1] == 0) { resultOne = resultOne - 2 usedPocketsOne[1] = usedPocketsOne[1] + 1}var visitsTwo = eval(escape(document.calc.regex.value))parsevisitsTwo = visitsTwo.match(/Dealer Visits Remaining: (\d)/)if (visitsTwo[1] == 0) { resultTwo = resultTwo - 2 usedPocketsTwo[1] = usedPocketsTwo[1] + 1}document.getElementById('result').innerHTML ="<b>You can spend " + resultOne + " ( " + resultTwo + " ) " + "tokens" + "," + " You need to purchase " + (emptyPocketsOne[1] - usedPocketsOne[1]) + " ( " + (emptyPocketsTwo[1]- usedPocketsTwo[1]) + " ) " + " drugs" + ".</b>"}// End-->
  7. Oh, I apologize.Just take the data from the form that you're passing to the function and use the escape() function with it.For example, use this as your function:function answer() {var emptyPocketsOne = eval(escape(document.calc.regex.value))parseemptyPocketsOne = emptyPocketsOne.match(/Empty Pockets: (\d+)/)var usedPocketsOne = eval(escape(document.calc.regex.value))parsusedPocketsOne = usedPocketsOne.match(/Used Pockets: (\d+)/)var labSpaceOne = eval(escape(document.calc.regex.value))parselabSpaceOne = labSpaceOne.match(/Drug Lab Size: (\d+)/)var junkiesOne = eval(escape(document.calc.regex.value))parsejunkiesOne = junkiesOne.match(/Working Junkies: (\d+)/)var JunkiesTwo = eval(escape(document.calc.regex.value))parseJunkiesTwo = JunkiesTwo.match(/Training Junkies: (\d+)/)var emptyPocketsTwo = eval(escape(document.calc.regex.value))parseemptyPocketsTwo = emptyPocketsTwo.match(/Empty Pockets: (\d+)/)var usedPocketsTwo = eval(escape(document.calc.regex.value))parsusedPocketsTwo = usedPocketsTwo.match(/Used Pockets: (\d+)/)var labSpaceTwo = eval(escape(document.calc.regex.value))parseelabSpaceTwo = labSpaceTwo.match(/Drug Lab Size: (\d+)/)var junkiesTwo = eval(escape(document.calc.regex.value))parsejunkiesTwo = junkiesTwo.match(/Working Junkies: (\d+)/)var JunkiesTwo = eval(escape(document.calc.regex.value))parseJunkiesTwo = JunkiesTwo.match(/Training Junkies: (\d+)/)var totalJunkies = (junkiesOne[1] + junkiesTwo[1])var resultOne = 0while (usedPocketsOne[1] > totalJunkies - labSpaceOne[1] * 17) { resultOne = resultOne + 1 usedPocketsOne[1] = usedPocketsOne[1] - totalJunkies + labSpaceOne[1] * 17 totalJunkies = totalJunkies + 1}var resultTwo = 0while (usedPocketsTwo[1] > totalJunkies - labSpaceTwo[1] * 17) { resultTwo = resultTwo + 1 usedPocketsTwo[1] = usedPocketsTwo[1] - totalJunkies + labSpaceTwo[1] * 17}var visitsOne = eval(escape(document.calc.regex.value))parsevisitsOne = visitsOne.match(/Dealer Visits Remaining: (\d)/)if (visitsOne[1] == 0) { resultOne = resultOne - 2 usedPocketsOne[1] = usedPocketsOne[1] + 1}var visitsTwo = eval(escape(document.calc.regex.value))parsevisitsTwo = visitsTwo.match(/Dealer Visits Remaining: (\d)/)if (visitsTwo[1] == 0) { resultTwo = resultTwo - 2 usedPocketsTwo[1] = usedPocketsTwo[1] + 1}document.getElementById('result').innerHTML ="<b>You can spend " + resultOne + " ( " + resultTwo + " ) " + "tokens" + "," + " You need to purchase " + (emptyPocketsOne[1] - usedPocketsOne[1]) + " ( " + (emptyPocketsTwo[1]- usedPocketsTwo[1]) + " ) " + " drugs" + ".</b>"}// End-->
  8. Hmmm...try escaping the data before parsing it with your script. See if the error disappears.
  9. http://w3schools.invisionzone.com/index.ph...ost&p=61141Try the "Find all posts by this member" option on yourself.
  10. No, because you could return false when the key is pressed and tell the browser not to open the sidebar.
  11. Well, you can use AJAX and a PHP screen scrape file on your server.Try reading this topic, starting with this post:http://w3schools.invisionzone.com/index.ph...ost&p=19658It'll help you with screen scrapes.
  12. Well, is that page on your server? Can you access it with AJAX? If so, it would be simple to fetch it with ajax, put the content of the body tag into a hidden div, loop through the links in that div, check if the hrefs of any of them contain product_id, then split it out and return it in an array.
  13. Options can't be styled with font tags. :)You have to use CSS, whether it's inline or not.If you need help with that, just post, but for your actual javascript code help:Put this into the head section of your page. It's not necessary to complete this with a function instead of inline code, but it makes things cleaner. <script type="text/javascript">function addFont(font) { document.getElementById("txt").value+="[font="+font+"]text[/font]";}</script> Now, use this as your select code instead.<select name="font" onchange="addFont(this.options[this.selectedIndex].value)"><option select>Font</option><option value="Times New Roman">Times New Roman</option><option value="Comic Sans MS">Comic Sans MS</option></select>As you can see, it's much smaller, but will still work the same way. If you want to add a new font, simply add one of these:<option value="font name">Font Name</option>
  14. A site in progress is always more fun to visit than a site that is complete. If I like a site and the owner has promised to update it with more features, I'd be more compelled to visit that site tomorrow to see if their div problem has been fixed, or if they've changed their pngs to gifs, or big things, such as if they've written another guide or redone their layout. But the site has to be interesting from the start to work, and if yours is already getting linked to, roll with it!
  15. I've been part of more than 20 forums for the last 3 years and I still don't know what IJHAC means. What the heck? O_O
  16. I have a firefox session that has been running for 23 hours with 34 tabs open and still has not had any bugs apparent yet. I love 2.0.
  17. Lol. I'm guessing they buy the images from the state/country the images are from, or the company whose satellite took the pictures.Unless you're right about google's satellite. Maybe they'll blow up yahoo's headquarters with a huge laser cannon?
  18. Try this instead: <HTML><HEAD><TITLE>Multiple Rollovers</TITLE><script LANGUAGE = "JavaScript"><!--if (document.images) {img1On = new Image();img1On.src = "1.jpg"; // Active Imagesimg2On = new Image();img20n.src = "2.jpg";img1Off = new Image();img1Off.src = "2.jpg"; // Inactive Imagesimg2Off = new Image();img20ff.src = "1.jpg";//img1ad = new Image();//img1ad.src = "1.jpg"; // Information Images//img2ad = new Image();//img2ad.src = "2.jpg";}// Function to 'activate' images.function imgOn(imgName) {if (document.images) {document.getElementById(imgName).src = eval(imgName + "on.src");//document["holder"].src = eval(imgName + "ad.src");}}// Function to 'deactivate' images.function imgOff(imgName) {if (document.images) {document.getElementById(imgName).src = eval(imgName + "off.src");//document["holder"].src = "1.jpg";}}// --></SCRIPT></HEAD><BODY BGCOLOR = "#FFFFFF"><!-- 1st Rollover --><a HREF="jukebox.html" onMouseOver = "imgOn('imgl')" onMouseOut = "imgOff('img1')"><IMG ID= "imgl" BORDER="0" HEIGHT="24" WIDTH="100" SRC="1.jpg"></A><!-- 2nd Rollover --><a HREF="videos.html" onMouseOver = "imgOn('img2')" onMouseOut = "imgOff('img2')"><IMG ID= "img2" BORDER="0" HEIGHT="24" WIDTH="100" SRC="2.jpg"></A></BODY></HTML> I replaced your names with IDs and changed the way you fetch the elements to document.getElementById(). It should now work.
  19. 1. Here are some python tutorials: http://www.awaretek.com/tutorials.html And here are some C++ tutorials: http://www.cs.wustl.edu/~schmidt/C++/ Just in case you want to start a google-maps-killer. :)2. You are correct--that is the word. But Google doesn't actually connect to the satellite. If you look on the bottom right of the maps screen, you'll see a copyright of the images. The images you're seeing aren't live, they have already been taken months, if not years ago.
  20. I could probably apply. If only I had a high school diploma. :)Your questions look pretty good. They should be an accurate assessment of the applier's prowess. :)Except for URL. I never bothered to learn what URL actually stands for. Who would have thought it's uniform resource locater? :/
  21. Can you explain what you mean "with the satellites"?I believe they have a huge repository of images and they just dip in and out of it with javascript and HTML. That's the reason why if you have a slow connection and you're using google maps, you have to wait for some images to load when you're moving the map around.
  22. Chocolate570

    AJAX

    You could check out ajaxian.com...it has loads of AJAX-powered applications.
  23. Congrats! It looks awesome. Especially that second testimonial...what handsome devil wrote that?
  24. Man, I really didn't feel like writing this post. I usually never do when Skemcin has visited a topic with his well-thought-out-god-like-really-really-long-amazing-post-of-doom. Just kidding.The problem with web design is there are two main choices. Do you want your website to benefit you or the people visiting? Think about it. If you use CSS hacks and so on the website loads much faster and looks the same in many browsers, which is a plus for your users. But what about you? Hours and hours of continuous testing in different browsers and OS'. Definitely no fun. Then there's the options to put a shoddily coded website together that works in one browser, but looks great in that browser. Anyone not using that browser probably wont visit your site ever again. Yet you're in love with it, because it requires you to put some straightforward markup into notepad and probably never test it as tables are predictable. Which do you choose? I usually choose to make it easier for my users, beause that is the reason I'm making the site. If I make a website like..a script database, no one would ever visit if you had to use netscape 7.34 build 8, because it would be inconvenient and wouldn't work in their browser of choice. My site would be a total failure just because I decided to make it easy for myself. But am I willing to spend all that time on it?It's choice and only that.
  25. Amazing. You did a really good job optimizing the site--the speed has improved by leaps and bounds. I love it.Maybe you should make your effects slightly slower (just slightly, not too slow). Right now, if you click on the map button or the send message button, it flashes in my face for about half a second and then goes away. Your portfolio gets a very hurried look.My only other complaint is your portfolio page. For your site images, I suggest making the base image black and white (or dimmed), and then making the rollover color. Or making it slightly greenish and dark to match your portfolio and again full color for hover. Currently, the bright setting that appears on hover is way too overpowering.Great job with everything else. =D
×
×
  • Create New...