Jump to content

benjaminmorgan

Member
  • Posts

    226
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by benjaminmorgan

  1. Grr, Another problem. :bash: Now I can't hide the hit button when someone busts. If they keep hitting hit it makes them lose 10 points until the button is unclickable. I have tried to hide the hit buttons in the code but none seem to work. Apart from that the adding and busting is working right. Also if you click the deal button after you bust and there is still a hit button showing 2 of them will show up after you click deal. The 2 buttons call a different function.

  2. When I add this it doesn't work still. It should update it with the new yosco variable after the hit button is correct. The function is being called because the card is dislaying.

    	
    yosco = num1 + num2 + number3;
    yougot.innerHTML = "Your cards equal: " + yosco;
    

     

    Well now it appears to be working, guess I had to clear my cache. Thanks Ben. Happy Independence Day.

  3. You might be able to do something to that effect if you put them all position: relative and have them be in one spot by adding left: amountpx; then add the z-index of the hovered one to be higher than the others. By the picture expanding do you mean stretching or showing more of the picture? If it is just expanding you could have divs floated and change the background image and then change the hover in CSS. Sorry if I am being confusing.

  4. My site is at http://blackjack.web44.net/blackjack and I am trying to make it where the numbers add together correctly but I can't get the numbers to add when I click the hit button it doesn't add the 3,4, or 5 number to the current score which is assigned in the variable yosco in deal function. I am trying to make it where it adds number 3 in the 1st hit function and if they hit again it adds all of the numbers plus number 4 then the same with 5.

  5. %22 just means a quote mark " it is adding that because like Andrea said the quotes are formatted from another editor and once you retype them it should be fixed. Don't use editors that have rich text format. A good editor is notepad++ that has great syntax highlighting if you are on windows.

     

    %20 would be a space.

  6. Oh, i meant like with a form. After the form is processed i want to be able to leave a message on the page without having to make it a php file and add php code to the page that the form is on.

     

    Right now I am having to add the PHP code and make the form a php page. then I am using if($_GET['complete'] == true) { blah blah blah } but It is just in the middle of my content. I want to be able to do something like you could in javascript without having to rely on javascript.

  7. PROBLEM IS FIXED!

     

    It needed this line of code. Please someone tell me why.

     

     
    nav > li:first-child {}
    

     

    I uploaded it to the website if you want to test it. Link in signature.

  8. When I add it to the site it does the same thing. The guy that created it checked the css/html and it matched up. http://krymsonproductions.com/ is the site it is working with. You can check the site again to see it with the site.

     

    Also if you hit Ctrl + or Ctrl - to resize the page it goes to where its supposed to be. (weird)

  9. I have a problem with this menu http://cdtestdesign.tk/ its code is sortof like http://css.dzone.com/articles/pure-css3-lavalamp-menu . The problem is not the hover state. Its when i go to a new page with the class current and it should move the transition to there. You can go to the page and view source so I don't have to paste code here.

     

    NOTE: It only has a problem in Google Chrome and Safari.

×
×
  • Create New...