Jump to content

npsari

Members
  • Posts

    393
  • Joined

  • Last visited

Contact Methods

  • Website URL
    http://www.npsari.com

Profile Information

  • Gender
    Male
  • Location
    United Kingdom

npsari's Achievements

Advanced Member

Advanced Member (4/5)

0

Reputation

  1. Oh, cool, it worked, thank you
  2. Hi everyone, i have a problem, look at this small PHP code $currency_symbol = '£'; \\\ Thats £ print "Price: $currency_symbol5"; The item price is 5 pounds, but because the 5 is attached, the code thinks the string name is $currency_symbol5 It does not work, to solve this, i put a space between them, like this... $currency_symbol = '£'; \\\ Thats £ print "Price: $currency_symbol 5"; But it looks funny on my website, it looks like this £ 5 How to solve this, thank you in advance
  3. Okay, I've done it Thank you much guys <script type="text/javascript"> <!-- function delayer(){ document.getElementById("myDiv").style.display="block"; setTimeout("hide()", 5000); // 5 seconds } function hide() { document.getElementById("myDiv").style.display="none"; } //--> </script> <div id = "myDiv" style="display:none"><img id = "myImage" src = "/images/logo.png"></div><br> <body onload="setTimeout('delayer()', 8000)">
  4. okay, i've done the show but the hide i cant please help <script type="text/javascript"> <!-- function delayer(){ document.getElementById("myDiv").style.display="block"; } //--> </script> <div id = "myDiv" style="display:none"><img id = "myImage" src = "/images/logo.png"></div><br> <body onload="setTimeout('delayer()', 8000)">
  5. Thank you both I've done it like this, but it is not working: <script type="text/javascript"> <!-- function delayer(){ function show() { document.getElementById("myDiv").style.display="block"; setTimeout("hide()", 5000); // 5 seconds } function hide() { document.getElementById("myDiv").style.display="none"; } } <body onload="setTimeout('delayer()', 8000)"> //--> </script>
  6. Hello I have this code which shows an image for 5 seconds then it disapears However, instead of clicking a button, I want this to happen automatically 8 seconds after page load <input type = "button" value = "Show image for 5 seconds" onclick = "show()"><br><br> <div id = "myDiv" style="display:none"><img id = "myImage" src = "/images/logo.png"></div><br> <script type = "text/javascript"> function show() { document.getElementById("myDiv").style.display="block"; setTimeout("hide()", 5000); // 5 seconds } function hide() { document.getElementById("myDiv").style.display="none"; } </script> If there are any experts out there, please provide code
  7. ohhhh, ok ok, i get it, thank you for information By the way, what manual page? I thought you meant the link you are giving me where is this manual page you talking about?
  8. Thank you for the information, I thought the problem is solved :-\ I really loved this split function!!! I tried using parse_url() is giving me the whole thing v=ruJ1uFf9hy4&feature=g-vrec If you have some free time, why not share script, and I will do a favor back to you
  9. I never understood the PHP versions and packs, I use all PHP codes and they always work, never got an error message telling me this PHP code is too old. So you mean this script will not work in the future?
  10. Really? Why is it discouraged? It is amazing, the script i posted is doing the job, please explain!
  11. $a = "http://www.youtube.com/watch?v=ruJ1uFf9hy4&feature=g-vrec"; $a = split('[=&]', $a); echo $a[1];
  12. Thank you Jessica But your result is >>>>>>>>>>> =ruJ1uFf9hy4&feature=g-vrec I want this >>>>>>>>>>>>>> ruJ1uFf9hy4 Moderator, why not share the script, you sound like an expert
  13. Hello, I am trying to extract some letters from a Youtube URL I want to extract the letters between '=' and '&' Which are 'ruJ1uFf9hy4' The code I have does not do the whole job :-\ $string = "http://www.youtube.com/watch?v=ruJ1uFf9hy4&feature=g-vrec"; $result = substr($string, 0, strpos($string, "=")); echo "$result"; /// Will echo http://www.youtube.com/watch?v Please give code!
  14. Thank you both
  15. Hello. Can you tell how to obtain the Day from the Date My Date format is as follows: Y-m-d I created a code, but it gives me the year... $date = date("Y-m-d"); $get_day = strtok($date, "-"); print"$get_day"; Programming is not my skill
×
×
  • 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.