Good randomizer code?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • StickyGreen
    .
    • Oct 2003
    • 13076

    #1

    Good randomizer code?

    All the randomizer codes I can find only do specific things like text or images. I need to randomize a whole block of html that includes a .flv movie and some text links. Is there a script that can randomize something like that?
    Refer Cam Girls and Take Home 10% of Everything They Make For Life
  • GreyWolf
    So Fucking Banned
    • Jun 2007
    • 2036

    #2
    Originally posted by StickyGreen
    All the randomizer codes I can find only do specific things like text or images. I need to randomize a whole block of html that includes a .flv movie and some text links. Is there a script that can randomize something like that?
    No problemo SG - You are talking about my fav subject - "web blocks"

    As an intro - try the simple script at this site - it's called Randex -
    http://www.teca-scripts.com/free/

    OK.. it's an easy example, (we have developed this concept a lot further and more complex to cover many things), but by using the base concept you can deliver up specific "web block" sizes to fit any page. Web blocks can contain "anything" - images, html, feeds, text links etc

    Comment

    • StickyGreen
      .
      • Oct 2003
      • 13076

      #3
      I goto free downloads but I can't get it to work. I put my name and email address and click download but it just refreshes...
      Refer Cam Girls and Take Home 10% of Everything They Make For Life

      Comment

      • SmokeyTheBear
        ►SouthOfHeaven
        • Jun 2004
        • 28609

        #4
        with php or javascript /ajax ?
        hatisblack at yahoo.com

        Comment

        • SmokeyTheBear
          ►SouthOfHeaven
          • Jun 2004
          • 28609

          #5
          a simple way would be just to place your html blocks into blank pages then call an iframe randomly with javascript

          like place your random html into seperate html pages
          random0.html

          thru

          random4.html

          Code:
          <script>
          var rn= Math.floor(Math.random()*5);
          document.write("<iframe width=800 height=100 src=random" + rn + ".html></iframe>");
          </script>
          hatisblack at yahoo.com

          Comment

          • StickyGreen
            .
            • Oct 2003
            • 13076

            #6
            Originally posted by SmokeyTheBear
            a simple way would be just to place your html blocks into blank pages then call an iframe randomly with javascript

            like place your random html into seperate html pages
            random0.html

            thru

            random4.html

            Code:
            <script>
            var rn= Math.floor(Math.random()*5);
            document.write("<iframe width=800 height=100 src=random" + rn + ".html></iframe>");
            </script>
            Cool... I'm gonna try that...
            Refer Cam Girls and Take Home 10% of Everything They Make For Life

            Comment

            • woj
              <&(©¿©)&>
              • Jul 2002
              • 47882

              #7
              or with php

              <?php include('file'.mt_rand(1,5).'.html';?>
              Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000
              Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager
              Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager

              Comment

              • StickyGreen
                .
                • Oct 2003
                • 13076

                #8
                Originally posted by SmokeyTheBear
                a simple way would be just to place your html blocks into blank pages then call an iframe randomly with javascript

                like place your random html into seperate html pages
                random0.html

                thru

                random4.html

                Code:
                <script>
                var rn= Math.floor(Math.random()*5);
                document.write("<iframe width=800 height=100 src=random" + rn + ".html></iframe>");
                </script>
                Thanks Smokey... works like a charm...
                Refer Cam Girls and Take Home 10% of Everything They Make For Life

                Comment

                • GreyWolf
                  So Fucking Banned
                  • Jun 2007
                  • 2036

                  #9
                  Originally posted by StickyGreen
                  I goto free downloads but I can't get it to work. I put my name and email address and click download but it just refreshes...
                  Damn.. sorry man. Webmasters!

                  If you still want this - just bump the thread. Got their version lying around someplace

                  Comment

                  Working...