Random Image Script

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Random Image Script

    i have this piece of code which selects images randomly from a folder. it works fine on a page ith nothing else on but when i try to add it to say for example a login page wer a logo shows all i get is the image and the rest of the stuff is wiped .

    tried putting it in various places of the various script but it keeps wiping out the page and only shows the image. .

    can anyone help me as to wer to put it
    Attached Files
    Wapchat4u


    Topsites4u

    #2
    Code:
    <? include ("pic.php"); ?>
    put that in the file u want want the radom pics ie ur welcome page
    then follow the next few steps

    <span style="font-size:12pt;line-height:100%">Visit My Website</span>
    Want something coded email me at sales@webnwaphost.com for a prices.




    Comment


      #3
      Code:
      <?
      $xfile = @file("pic.txt");
      $random_num = rand (0,count($xfile)-1);
      $udata = explode("::",$xfile[$random_num]);
      echo $udata[1]; //a random text line from the text file will be displayed
      ?>
      name this files as pic.php then follow next step than u should b dun

      <span style="font-size:12pt;line-height:100%">Visit My Website</span>
      Want something coded email me at sales@webnwaphost.com for a prices.




      Comment


        #4
        Code:
        ::  [img]logo.jpg[/img]
        ::  [img]flag.jpg[/img]
        ::  [img]england.jpg[/img]
        ::  [img]1.jpg[/img]
        ::  [img]2.jpg[/img]
        name this files as pic.txt, and replace the logo.jpg bit to were the pic u want is saved in if its in a folder remember / is for the folder, Note the :: must stay there or else it wont workand wala u should now have radom pics, any probs jus ask

        <span style="font-size:12pt;line-height:100%">Visit My Website</span>
        Want something coded email me at sales@webnwaphost.com for a prices.




        Comment


          #5
          i have this piece of code which selects images randomly from a folder. it works fine on a page ith nothing else on but when i try to add it to say for example a login page wer a logo shows all i get is the image and the rest of the stuff is wiped .

          tried putting it in various places of the various script but it keeps wiping out the page and only shows the image. .

          can anyone help me as to wer to put it[/b]
          http://www.2wap.org/forums/index.php?autom...ail&f_id=67
          http://ngeo.ro

          Comment


            #6
            ent that simular to myn jus slighly different coding ?
            Want something coded email me at sales@webnwaphost.com for a prices.




            Comment


              #7
              ent that simular to myn jus slighly different coding ?[/b]
              mr no all not lol

              Comment


                #8
                OH SHUT IT YA DIRTY SLAPPA
                Want something coded email me at sales@webnwaphost.com for a prices.




                Comment


                  #9
                  OH SHUT IT YA DIRTY SLAPPA[/b]
                  cheers mate.

                  same as random txt files spose.
                  Wapchat4u


                  Topsites4u

                  Comment


                    #10
                    yeh basically
                    Want something coded email me at sales@webnwaphost.com for a prices.




                    Comment


                      #11
                      yeh basically[/b]
                      who the hell u calling a slapper little boy?

                      Comment


                        #12
                        who the hell u calling a slapper little boy?[/b]
                        btw brumi dont u ever come bk on my site trying 2 put errors on there lol ha i court u out u didt think i would no who u was did ya little boy DONT PKAY YA GAMES WITH ME

                        Comment


                          #13
                          btw brumi dont u ever come bk on my site trying 2 put errors on there lol ha i court u out u didt think i would no who u was did ya little boy DONT PKAY YA GAMES WITH ME[/b]

                          you mind to NOT argue here? and sort your problems elsewhere..thank you
                          It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt.
                          ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ !
                          ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.
                          キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

                          Comment


                            #14
                            its her fella, and plz tel me what the hek ur going on about, plz leave if u ent got no inpu for help
                            Want something coded email me at sales@webnwaphost.com for a prices.




                            Comment


                              #15
                              ur makin this up as ur going along, proove its me, and please iv had enuf of u kumin n here thinkin nw it all, just leave u ent here to help other jus to cause more arguments
                              Want something coded email me at sales@webnwaphost.com for a prices.




                              Comment

                              Working...
                              X