Jump to content

Chocolate570

Members
  • Content Count

    1,550
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Chocolate570

  1. Many people I know pronounce WYSIWYG as 'wissiwig'.
  2. In my mind (when I'm reading things) I pronounce it ess queue ell, but when I'm speaking, I pronounce it sequel.
  3. Remember though -- paypal takes a fee on your transaction so you get less than you bargained for.
  4. Okay guys, please, let's focus on the topic on hand.
  5. Hah! I usually do eat pizza while using the computer too. I know see that's a bad idea...:)Then there's always the chance that you'll spill beer on your rejuvenated idea. Where can we brainstorm?
  6. Oh man. They told me that the hair would stop coming. >_> Gosh.:)I do totally agree with you. It is much harder to maintain a code written out-of-the-air than one where you know how it works extensively because of your collection of bar napkins.
  7. Try adding an overflow-x:hidden; to the style of that element...I can't remember whether or not that works, unfortunately =[Otherwise, try an absolutely positioned element over the scroll bar. I believe IE allows you to overlap scrollbars with elements with high z-indices? (spelling?)
  8. Not for most of the people on this forum, I bet. :)Yeah, planning is crucial to a big application...but whenever I'm coding for coding's sake, I try to not plan anything and just go for it. It helps me because I'm not tied down by my own specifications. I just write what I want and whatever features come up are fine with me.
  9. Hey guys! :)I'm coding a layout for a friend and I need to know why it wont work.http://seekond.com/ZS/It's almost done, floating/widths/everything are in the right places cross-browser. This is the last problem (I hope!)In a big screen (1024x1280, 19" monitor) the site would look normal with the outer div (the borders and background of all the content, #wrapper in HTML & CSS) stretching to the bottom of the page. But resize the screen, and you'll notice that the back doesn't meet the bottom of the page, and goes higher and higher as you keep resizing. WHY!Also, the copyright is supposed to rest at the very bottom of the page, hugging the bottom of #wrapper. Why doesn't that work either =[Please help. CSS can be found here:http://seekond.com/ZS/style.css
  10. No, sorry. You'd need a custom confirm/prompt box made with HTML & JS.
  11. I remember seeing somewhere that someone just turned the content editing mode on of the textarea and it would tab in normally. Much shorter. Maybe it was jquery? Loading...http://interface.eyecon.ro/demos/ttabs.html#Yup. There ya go.And this is the source code for the page: <html><head><title>TTabs demo - Interface plugin for jQuery</title> <script type="text/javascript" src="/jquery/jquery.js"></script> <script type="text/javascript" src="/interface/interface.js"></script></head><body><textarea id="testArea" cols="50" rows="10"></textarea><a href="#" onClick="$('#testArea').EnableTabs()">enable tabs in textarea</a> <a href="#" onClick="$('#testArea').DisableTabs()">disable tabs in textarea</a></body></html> The interface plugin & jquery.
  12. 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.
  13. 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
  14. 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...
  15. 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.
  16. 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-->
  17. 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-->
  18. 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-->
  19. Hmmm...try escaping the data before parsing it with your script. See if the error disappears.
  20. http://w3schools.invisionzone.com/index.ph...ost&p=61141Try the "Find all posts by this member" option on yourself.
  21. No, because you could return false when the key is pressed and tell the browser not to open the sidebar.
  22. 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.
  23. 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.
  24. 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>
  25. 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!
×
×
  • Create New...