Quick script question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gothweb
    Confirmed User
    • Jun 2002
    • 8849

    #1

    Quick script question

    What script would I need to use to make a random image load on an HTML page? The idea is to have, say, four options, and a random one of them is picked each time the page loads.

    Photos by Ian X.: Distinctive photos of goth babes.
    Blood Money:Your traffic, my sites, our money.
    MojoHost: Still the best.
  • jovigirl
    Confirmed User
    • Apr 2003
    • 1796

    #2
    Use java script if you dont have cgi enabled.
    If your server supports cgi just use src=random.cgi
    ICQ me if you need help to set it up
    ICQ :333-548-380

    Comment

    • Anothers
      Confirmed User
      • Nov 2001
      • 219

      #3
      java script its just what you need

      ha ha ha

      Comment

      • gothweb
        Confirmed User
        • Jun 2002
        • 8849

        #4
        I can use cgi or hahahahahahahahahaha.

        Photos by Ian X.: Distinctive photos of goth babes.
        Blood Money:Your traffic, my sites, our money.
        MojoHost: Still the best.

        Comment

        • Anothers
          Confirmed User
          • Nov 2001
          • 219

          #5
          so cgi or php (because some can have java script disabled)

          Comment

          • gothweb
            Confirmed User
            • Jun 2002
            • 8849

            #6
            I want to add something to an existing html page, so links don't have to change. I would be happy with a default image showing up for people who don't has j-s on.

            Photos by Ian X.: Distinctive photos of goth babes.
            Blood Money:Your traffic, my sites, our money.
            MojoHost: Still the best.

            Comment

            • Anothers
              Confirmed User
              • Nov 2001
              • 219

              #7
              send me an email
              anothers at interia.pl

              tell exactly what should be done

              if it can be in php

              Comment

              • jovigirl
                Confirmed User
                • Apr 2003
                • 1796

                #8
                why would you use php for such an easy thing?
                do you think it's worth to build up a sql database for a simple random image???
                or am I losing myself?
                I have a random cgi script that works perfectly both for random images or pages.
                ICQ :333-548-380

                Comment

                • Anothers
                  Confirmed User
                  • Nov 2001
                  • 219

                  #9
                  Originally posted by jovigirl
                  do you think it's worth to build up a sql database for a simple random image???or am I losing myself?
                  who said anything about database?

                  Comment

                  • gothweb
                    Confirmed User
                    • Jun 2002
                    • 8849

                    #10
                    Thanks to Anothers for a bunch of help with the script. It is up and working great now, so I can offer my affiliates random banners. I plan to add some other uses in the near future. Cool stuff.

                    Photos by Ian X.: Distinctive photos of goth babes.
                    Blood Money:Your traffic, my sites, our money.
                    MojoHost: Still the best.

                    Comment

                    • JDog
                      Confirmed User
                      • Feb 2003
                      • 7453

                      #11
                      Originally posted by Anothers
                      so cgi or php (because some can have java script disabled)
                      php, that's what i'd recommend
                      NSCash now powering ReelProfits.com
                      ALSO FEATURING: NSCash.com :: SoloDollars.com :: ReelProfits.com :: BiminiBucks.com :: VOD
                      PROGRAMS COMING SOON: Greedy Bucks :: Vengeance Cash
                      NOW OFFERING OVER 60 SITES
                      CONTACT :: JAMES SMITH :: CHIEF TECHNOLOGY OFFICER :: ICQ (711385133)

                      Comment

                      • Anothers
                        Confirmed User
                        • Nov 2001
                        • 219

                        #12
                        Originally posted by gothweb
                        Thanks to Anothers ...
                        no problem

                        Contact me (but next week please - im out of town this week)
                        if you want some help with other features.

                        hmm 5 posts in 1 thread - i must get this SWOIT sig

                        Comment

                        Working...