Search results

  1. Porsche_maniak

    [JS] indexof prob

    Thanks litewarez i already solved it with <script type=text/javascript>function hide(){if (document.location.href.indexOf('?to=') >= 0){document.getElementById('vip').style.display='none';}}hide();</script> Btw the slide.js you gave is really interesting thanks !
  2. Porsche_maniak

    [JS] indexof prob

    Hi ! I have the following function : <script>function hide(){ var str=document.location.href; if(str.indexOf(\"?to=\")) {document.getElementById('vip').style.display='none';} }</script> I am trying to hide an object if in the url contains '?to=' . But this one is hiding it always. Any...
  3. Porsche_maniak

    HTML questions.

    I figure it out guys ! Tnx !
  4. Porsche_maniak

    Spell your name in Japanese

    And what about mine :D arirukuchimoaritakaru
  5. Porsche_maniak

    HTML questions.

    @Robin H thanks but it seems that you have take my example in other way. Actually they are usernames Fat_Joe|not needed content|not needed content|not needed content JessyJames|not needed content|not needed content|not needed content So i just wanted to take only the names.. I've used...
  6. Porsche_maniak

    HTML questions.

    Thx spy it worked ! I hope you have a php knowledge too because i face problem again. Lets say i have : 1|2|3|4|5|6|7|8|9 a|b|c|d|e|f|g|h|i How do i take the first value for each line. (1,a) I bet that the explode is in the game. I also have the following script but it is not...
  7. Porsche_maniak

    HTML questions.

    sniffdog i tried with css class but it is not helping.. And i forgot to mention other problem.When "enter" is pressed it submits the form instead of going to a new line :S
  8. Porsche_maniak

    HTML questions.

    Hi there ! My site has a stylesheet which is centering everything and looks okay. There are exceptions in centering which i manually fix and don't touch the css,but this time i have bigger problem. I have an input text fields.One is for subject,2nd for To,3rd is the Message. The Message...
  9. Porsche_maniak

    Count a function true/false

    tnx litewarez but the problem is that the stupid foreach function adds each value to separate array as i wrote above.So the function is useless if it is not in one array.
  10. Porsche_maniak

    Count a function true/false

    What i am trying to do is to count all duplicates in array and show them as number. Eg: array('fish','dog','pants','male','fish','fish','male') I need to echo 3 fishes and 2 males Note : I don't know the array content,neither the searching string.The function has to search for duplicates...
  11. Porsche_maniak

    Count a function true/false

    foreach($filenames as $count){ $filedup=basename($count,'.txt'); $filedup=array($filedup); print_r (array_count_values($filedup)); } But this gives Array ( [entry090914-020018] => 1 ) Array ( [entry091129-053238] => 1 ) Array ( [entry100716-184512] => 1 ) Array ( [entry100718-111228] =>...
  12. Porsche_maniak

    Preg Replace question

    t3od0r - worked nicely. Btw great site i will use it :)
  13. Porsche_maniak

    Preg Replace question

    It won't because how would you replace ']' with '>' as there are other tags finishing with ']' (for example [b]) in the same page..
  14. Porsche_maniak

    Preg Replace question

    I want to replace all [img=URL] with <img src=URL> Preg_replace should do it but i am not familiar how. Any suggestions? New question : Hi there ! Because i didn't wanted to make a new post i will just edit this one. How do i 'preg_match' starting from '=' and ending to '&'...
  15. Porsche_maniak

    PHP getimagesize is freaking slow !

    Hmm or maybe to store thumbnails from the remote images and if there is thumbnail show it first, on dblclick use getimagesize and expand the real image to its dimensions. But it will be hell long coding.
  16. Porsche_maniak

    PHP getimagesize is freaking slow !

    $img_size = @getimagesize( $str_url ); if ( $img_size !== false ) { $width = $img_size[0]; $height = $img_size[1]; where $str_url is the image url.. And thats in the beggining of the page. And i don't think that i can move it at the bottom so it will...
  17. Porsche_maniak

    PHP getimagesize is freaking slow !

    The images are not hosted on the local mashine. That's why getimagesize is so slow. There's the GD lib info : array(12) { ["GD Version"]=> string(27) "bundled (2.0.34 compatible)" ["FreeType Support"]=> bool(true) ["FreeType Linkage"]=> string(13) "with freetype" ["T1Lib Support"]=>...
  18. Porsche_maniak

    PHP getimagesize is freaking slow !

    Hi there ! I've realized that the getimagesize function adds min 10 sec to the loading of my site ! So it would be really cool if it is possible to replace it with much faster function (i've heard that the dimensions of the image are in the first bytes). Or atleast is there way to load...
Back
Top