TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 458
  • Total: 458

[Block] Random Rotating Thong

Started by jp, October 31, 2008, 11:34:33 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Crip

A Random , Rotating »» / Thong / Babe / Pet / Holiday / Hobby / Car / Boat / Event / , et-ceteras.... ««
--With this random image script you can add any format , .jpg .png .gif , just
use your imagination with what / where & How this extremely simple but useful script is used..


• Tempo Demo
  • Placement : scriptbox type
  • Where: Right/Left/Center/Frontpage/Upper/Lower-Blocks - /Articles
  • Image dimensions: Any ---- Example: 120x120 or 640x800 ....
  • Format : Any , .jpg .png .gif ----
  • Installation : Upload your images in a Images directory to your server, copy+paste teh below script into a (scriptbox) , Edit , Save , Activate , Enjoy :)
  • Included: 10demo Thongs, add your own , as many as desired ---

    ..the [Reload] button is for demo only, keep or remove it still works.

    <TABLE align="center">
    <TR>
       <TD align="center">
          <SCRIPT language="Javascript"><!--
       function image() { };
       image = new image();
       number = 0;
       // imageArray
       image[number++] = "<img src='http://www.yoursite.com/Images/1.jpg' border='0'>"
       image[number++] = "<img src='Images/2.jpg' border='0'>"
       image[number++] = "<img src='Images/3.jpg' border='0'>"
       image[number++] = "<img src='Images/4.jpg' border='0'>"
       image[number++] = "<img src='Images/5.jpg' border='0'>"
       image[number++] = "<img src='Images/6.jpg' border='0'>"
       image[number++] = "<img src='Images/7.jpg' border='0'>"
       image[number++] = "<img src='Images/8.jpg' border='0'>"
       image[number++] = "<img src='Images/9.jpg' border='0'>"
       image[number++] = "<img src='Images/10.jpg' border='0'>"
       increment = Math.floor(Math.random() * number);  document.write(image[increment]);
       //-->
       </SCRIPT>
       <P align="center">
          <FORM>
          <INPUT type="BUTTON" value="Reload" onClick ="location.reload()">
        </FORM>
       </P>
      </TD>
    </TR>
    </TABLE>



    SS -
I have become comfortably numb!

Cripzone | Crip's Free 2.0.2 Themes



Renegd98

I like ...  Better way to do it in my opinion...

Crip

I have become comfortably numb!

Cripzone | Crip's Free 2.0.2 Themes



mcardo99

I have a question. Could I just get a script that takes all .png, .jpg, gif or any other image within a folder and show it in the slide without having to add a line for a new image every time I get a new one? and also not have to change the name of the images to 1.jpg and so on?

In other words. I was looking for a script that will look into a specific folder and take any image and show it in the slide.

Is this possible?

thanks in advance.

IchBin

I'm sure there are a thousand scripts you could find on google that would do this. If you can't, let me know and I'll see if I can reinvent the wheel again.

JPDeni

This will pull the file names from a folder and put them in an array called $array. :)


    $current_dir = '/path/to/image/directory/';
    $dir = opendir($current_dir);

    while ($file = readdir($dir))
    {
      if ($file != '.' && $file != '..')
      {
        $array[] = $file;
      }
    }
    closedir($dir);


It doesn't check to see if the files are images. The best way to deal with it is to just put images in the directory.

I know this works because it's directly from my theme file on my site. :)

Polymath

Well I just came in to check out what the title said. haha

Crip

I have become comfortably numb!

Cripzone | Crip's Free 2.0.2 Themes



blizz-craft

Shes hot... I cant stop staring at her butt lol...

This website is proudly hosted on Crocweb Cloud Website Hosting.