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

[Block] Random Image Rotator [PHP]

Started by akulion, May 03, 2006, 02:09:08 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Techdomain

soreness of the finger from clicking refresh? would that be a side effect?

copter

lool so far so good it seems to work :)

asora

#22
work fine, thank !

i use an a href tag like this to open an imge file,

<a href="http://www.yoursite.com/image/rotate.php" target="_blank"><img src="http:///www.yoursite.com/image/rotate.php" alt="A Random Image" / height=100 width=120></a>

But i can't get the tham image...
If any one can helf to open an image file in iframe ?
thank.

I hope you can andertsand what i mean...
english is not my coffee cup.

akulion

I dont think that can be linked to show the same image

Why?

Because rotate.php is a file which randomly picks up an image from the directory and displays it....so on every reload of the script the image path is different, So linking to it like that wont work

Unfortunately I dont think its possible unless the PHP file itself was modified to nclude a function to add links to the images


asora

thank akulion, i think the mod like "image in a block" from enigma.

GM

I like this little script,works good and is simple to use for an average Joe. How hard would it be to have it randomly rotate without needing to reload or refresh the page?

akulion

im not too sure but i think with AJAX it can be done...but then again i dont know much about AJAX

Polymath

Well. I came here and in the search box I put 'random'  And from that I got this.

Thanks akulion. Its exactly what Im after

akulion


nosgr

which script i have to paste in the block manager to see it in a block?

All the contents of rotate.php?

This website is proudly hosted on Crocweb Cloud Website Hosting.