Jump to content

Chocolate570

Members
  • Posts

    1,550
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by Chocolate570

  1. Haha, that's funny. When I went there, there were no images uploaded. But hey, you give the public a place to upload whatever images they want, don't be surprised at what they choose..I didn't look at the script too much, but I noticed on the download page that you misspelled "guarantee", and you also have an image generation script creating the link for the email address. I was assuming that was to prevent spam bots from harvesting the address, but in that link you have the email address in plain text twice. So, you might want to rethink your approach there..
    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. Mine? :blink: Where in the world would you get that idea? :blink: Of course they're not mine. Nor do I think they're Invisionzone's. Notice here in this post how I continually refer to "they" and "them" making money? I guess the decision whether to have the ads or not lies with the administrator(s). Of course, I can see why the ads are there, to create revenue for keeping the forum up. Servercosts and what-not, you know... :)Would you really? Don't be too eager to put your life on the line... :ph34r: :)
    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. Hello :) ,When a JS file is running and we put an alert in between using alert("hi"); then the whole code that we have written stops working and the alert is displayed. Only once after we have pressed the OK button then only the the rest of the code is executed. While the alert box is being displayed no code is being executed right :) ?Now I want to know how I can stop the execution of the code in the same way but without the alert box being popped up every now and then :blink: ??
    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. :) Sorry, i'm really new to this... escape the data before parsing?? :)
    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. :) Sorry, i'm really new to this... escape the data before parsing?? :)
    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. Thanks for you're help, that's what i'm trying to do. I do not have access to the server, its a 3rd party site, can I still return the html file to a variable? The page is public and only depends on the user having a cookie to remember their account details.
    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. :)
  9. Yeah I know, I'm looking for that string within the html file. It's not part of the html code but will be enclose in the <a></a> tags on the page.It's for a dashboard widget I'm trying to develop that will look to a DVD rental website and tell me what DVDs I have on rent or being delivered.Here's a snippet of the html<a href="/product/detail.html?product_id=xxxx" title="West Wing, The - Complete Season 1 - Disc 4">West Wing, The - Complete Season 1... Disc 4</a>Once I'm able to return the product_id=xxxx I can find the get the url of the DVD image to present in the widget.It's getting a bit tricky though so it will probably hit the rubbish bin in a few more weeks :)
    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. :)
  10. 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>:)

  11. 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! :)

  12. Maybe a question about how to troubleshoot if a site is showing up using HTTP but not using HTTPS.Or maybe how a single web server with a single IP can host several different sites or domains. I guess the answer is just "host header", but it's good to know.Maybe ask them to give you some examples of web services.Ask them what the pros and cons of using Ajax are versus a normal server-side application.What is DHCP used for?What is Network Address Translation?What is a Domain Controller?Order from slowest to fastest:T1DSLCable56KDS-3What happens when you type a URL into a web browser and hit Go?What do these mean:ROFLLOLOMGWTFIJHAConly the important stuff
    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
  13. 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? :)

  14. 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. :)

  15. Ah ok. I actually don't know one of them! :) Mhh, using a translator online I've "Satallite". Here an image: http://chezlorry.ca/alphabet/dessins/Satellite.GIF :) However, specifically, I mean *connecting* to the Satellite. Mh, it's sincerely incredible!
    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. :blink:
  16. Here is a position that I am part of the team that interviews candidates:I am going to administer a 5 to 10 minute quiz. Any suggestions for questions to ask would be interesting to hear.Here is an example of one of the questions I am asking (of an beginnger skill level)Identify these abbreviations:cssjsasphtmlxhtmldhtmlcfmxmlxslphpsqlurlsslhttpftpipdnsdsnI have a few intermediate and advanced questions too but I thought I'd pole this community to see I've overlooked something or if there are some questions simply better that those I came up with.The person filling this position is going to be dealing with not necessarily complex problems, but with a collection of integrated sites that is used by the less than savy internet user. So the questions I am asking are a combination of seeing just how technical the person is as well as seeing how they approach a problem.An example of the latter:A member calls and says they type mydomain.com into the internet and the site doesn't come up, but it used to all the time. You asked them to go to google.com to verify their internet connection and even by doing a search. You ask them to type myotherdomain.com in the browser and try from their and everything checks out fine. What could be done (short of going to the person's office) to get them to see mydomain.com? (this is an advanced skill level)Thanks in advance.P.S. If anyone wants to know the answer to the second one, send me a PM.
    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? :/
  17. Hi, I've a stupid (maybe) question about Google Maps: http://maps.google.com/. My question is the follow. Wich language Google Team use with the Satellite(s)?I'm curious. brig.gif
    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.
  18. Yes marketing...my least favorite part :). I have already got and finished my first contract (generated by the site) through getacoder.com and I have one at scriptlance that is looking promising. Before I go to far though I have to clarify somethings at work...I am meeting with my boss to clear up some of the fuzzy lines in my contract regarding freelancing. I am sure we can find some middle ground as our company only deals with CMS work.
    Congrats! It looks awesome. Especially that second testimonial...what handsome devil wrote that? :):)
  19. 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. :)

  20. 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...