Jump to content

peter11

Members
  • Posts

    42
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

peter11's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. @rebel Well try it. I'm using a color not an image. Yes i though it should be instant too. http://xosite.co.uk/testdrupal/ If you hover you mouse over them and change it takes a long time. No where near as fast as i think it should. See what i mean ? BTW im using FF not tested on IE yet.
  2. This is fixed however it just seems really slow to me. If you drag the mouse across it takes ages to load up the image. Is this normal if doing it in this way? BTW i have changed it from an image to color: code but no difference.
  3. @squiblo Thanks i fixed like this .menu a:hover { background-image:url(../images/menu_hover.jpg); margin-left:-7px; margin-right:-7px;padding-bottom:10px; padding-top:8px; padding-left:7px; padding-right:7px; text-decoration:none; font-size:16px;}
  4. The menu is in a php array so i cant have there own boxes. Well i could be easier not too. and if i set a padding to the php array then it would only pad the left and the right of the string. As i understand it. Any other suggestions?
  5. Hey, Im working on this site: http://xosite.co.uk/testdrupal/ If you hover over the menu you will notice that it moves to the right. I know this is due to the padding element however i don't know the way to give a box around it without using padding. Code for the CSS of the links: .menu {font-family:Verdana, Geneva, sans-serif; font-style:normal; color:white;} .menu a:link {color:white; text-decoration:none; font-size:16px} .menu a:visited {color:white; text-decoration:none; font-size:16px;} .menu a:hover { background-image:url(../images/menu_hover.jpg); padding-bottom:10px; padding-top:8px; padding-left:7px; padding-right:7px; text-decoration:none; font-size:16px;} .menu a:active {color:red; text-decoration:none; font-size:16px;} CSS code for the nav section #navigation { background-image:url(../images/nav_bar.jpg); background-repeat:repeat-x; float: left; margin-left: 0; margin-right: -100%; padding: 0; padding-top:9px; padding-left:20px; word-spacing:30px; width: 816px; height: 40px;} I hope you can see the kinda thing i am aiming for here. Please advice how you would do it. thanks
  6. how can i show the highest number in the string?
  7. Why is this not correct? <?php $newphrase = 1234567; echo (max($newphrase)); ?>
  8. Fixed, It was to do with the order, Needed the != statements first as the == statements change the points and make the != statements not match.
  9. <?php if($points==0 && $answer=="me"){ setcookie("points", "1", time()+3600); $points ++; echo "CORRECT"; } if($points==1 && $answer=="reading"){ setcookie("points", "2", time()+3600); $points ++; echo "CORRECT"; } if($points==2 && $answer=="q2"){ setcookie("points", "3", time()+3600); $points ++; echo "CORRECT"; } if($points==0 && $answer !="me"){ echo "Incorrect - Please try again"; } if($points==1 && $answer !="reading"){ echo "Incorrect - Please try again"; } if($points==2 && $answer !="q2"){ echo "Incorrect - Please try again"; } ?> If you enter it incorrectly it says incorrect however if you enter "me" correctly it says correct and incorrect if you enter "reading" correctly it says correct and incorrect however if you enter "q2" correctly it just says correct. Anyone know why this is?
  10. I have tried it like this, <?php if($points==0 && $answer=="me"){ setcookie("points", "1", time()+3600); $points ++; echo "CORRECT"; } if($points == 0 && $answer !="me"){ echo "Incorrect - Please try again"; } ?> however when i enter "me" it runs both of these saying CORRECTIncorrect - Please tr again how can it be True and False? Whats wrong with this statement. [/code]
  11. i need to say if a variable equals anything but "q2" then echo false however im unsure on how to wright this elseif line. Please help if($points == 2 && $answer == "q2") { echo "Correct"; } elseif($points == 2 && $answer == ??????????){ echo "Try again"; }
  12. hi all, Is this line right? Im trying to say if the cookie has not been created create it and set as default value = 0 however i dont think this is right: $points = $_COOKIE["points"] ? $_COOKIE['points']:0; thanks,
  13. I have tried using $facebook->api_client->stream_publish($message); AND Facebook.streamPublish(message,attachment,action_links); Both work fine however have the same problem. I am pulling up a random file also tried with a random switch and i want to post that random switch or file. This does work however it posts the wrong one. I.e If the switch was "whats your name" and you answered it and clicked publish it would then load the page again and maybe ask you "whats your age" it would have posted the whats you name answer you gave with whats your age. Does anyone know a way around this? Im out of ideas please help
  14. I have re-done the code but put this in switches. Again it is doing the same. Posting the next question it asks you and not the one you answered Therefor it is a problem with <?php $facebook->api_client->stream_publish($part1 . $_POST['q1'] . $part2).($target_id); ?> It needs to run this with the $part1 and $part2 as the one it asks you and not the next one when you click submit. In the code submit is below this line of code. The form look like the following: <?php echo "<form method='post' action='http://apps.facebook.com/missingwords/'>"; echo ($part1)."<input type='text' size='4' name='q1' />".($part2); echo "<p><input class='submitbox' type='submit' value='Answer and Publish'></form>"; ?> Anyone have any idea how to do this? HELPPPP
  15. I havent got anything in the code for that
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.