Jump to content

mrbean

Members
  • Posts

    85
  • Joined

  • Last visited

Everything posted by mrbean

  1. I want to refer by an assigned name to it, not counting to finally find the image and say i want image[1323] or something like that, it wil cost alot of time.
  2. Thanks for your reply, but let me explain this again with some code examples and now more properly. var image = new Array(); var i = 0; while (i<5) { image[i] = new Image(); image[i].src = "test0"+i+".png"; i++; } // So now I have a list of images. // What if I want to choose the image with source: test01.png // but by reffering an assigned name. an example from mysql syntax: Select image.src from image where image.something = happysmiley. Like I have an list of images but one has something where I can refer to to find that specific image. Reffering by name of the image for example.
  3. Hello dutchcapitalist, welkom and welcome to phpfreaks.com. Not only you can master this language, also you can master html,css and js on this site. But if your task is to do only php you are more than welcome to master it here. Met vriendelijke groet, Kind regards, Ismail
  4. I have made an loop for images to make them an javascript image object. Just like image[1] image[2] They al have assigned .src attribute. But the thing is I don't know which image what is so I want to refer to the image name. I want to assign a name for every image in the loop. Just like I have a list of names ordered by numbers so the value of imgname[1] must be commented out in image[1] So i can refference by the comment. I hope you understand what I am trying to say. And sorry for my bad english.
  5. It will be an interactive site, so javascript is how I want to do it. Can you show me an example of how I could fix this problem? btw Soo, in css I want to... is Soo, in javascript(with jquery) I want to...
  6. hello, Let´s get straight to the point. I have a couple of div´s <div id="container"> <div id="page1"> <div id="page2"> <div id="page3"> <div id="page4"> <div id="page5"> <div id="page6"> If someone gets to page like 5 through my js code, I only want to show page5 and container. Soo, in css I want to select everything except container and page5. I can't manually type in the pages because, there will be adding daily more pages. note: if my english is not right or see some grammer errors, please correct me. kind regards, "mrbean"
  7. That also doesn't work if my string is: www.goog it matches www.goog isn't a complete url
  8. Hi, I have worked the whole day / all day to fix this but it still doesn't work I am trying to match only URL's What I did try to do is use this pattern: (((https|http):\/\/)|www\.|)[a-zA-Z1-9-]{0,9}(\.[a-zA-Z1-9-]{1,5}\.[a-zA-Z1-9-]{1,5}|\.[a-zA-Z1-9-]{1,5}) It must match these URL's: google.com www.google.com http://google.com https://google.com http://www.google.com https://www.google.com google.co.uk www.google.co.uk http://google.co.uk https://google.co.uk http://www.google.co.uk https://www.google.co.uk But it doesn't work Can someone please help me with this. Thank you in advance for your support.
×
×
  • 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.