| We hope you enjoy your visit. You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you're already a member please log in to your account to access all of our features: |
- Pages:
- 1
- 2
| Random Image HTML | |
|---|---|
| Tweet Topic Started: Jun 10 2005, 08:23 PM (2,529 Views) | |
| Captain Kam | Jun 10 2005, 08:23 PM Post #1 |
|
Custom member title
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Hey, I'm in need of the code that loads random images per view, like; Say you have five images that you put on a website, and want to load them at random. On one pageview, it could be image4. On another, it could be image1. Get what I'm saying? ^_^' So, does anybody know this bit of HTML? Edit: Ehh, I think I put this in the wrong forum. o_O' Did I? |
![]() |
|
| Seth | Jun 10 2005, 09:02 PM Post #2 |
|
I has a pony
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Nope, this is fine. http://www.alistapart.com/articles/randomizer/ |
![]() |
|
| Captain Kam | Jun 10 2005, 09:26 PM Post #3 |
|
Custom member title
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Thanks. :3 |
![]() |
|
| solinent | Jun 12 2005, 10:23 PM Post #4 |
![]()
Member
![]() ![]() ![]() ![]() ![]()
|
It would be a whole lot easier to do with javascript... <script language="javascript"> var num = Math.Rand() * 10; if (num == 1) { document.write("<img src='path/to/first/image.png' />"); } if (num == 2) { document.write("<img src='path/to/second/image.png' />"); } </script> That'll do two imgages, just add as you go along....it's so simple... |
![]() |
|
| Stefan | Jun 13 2005, 08:50 AM Post #5 |
![]()
Mew?
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
:ph34r:
But if your server supports it, PHP is a better choice ![]() Look! Semicolons! |
![]() |
|
| solinent | Jun 13 2005, 11:46 AM Post #6 |
![]()
Member
![]() ![]() ![]() ![]() ![]()
|
I use asp on my site for a random quote
|
![]() |
|
| Luke6006 | Jun 13 2005, 02:39 PM Post #7 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
I don't mean to bump this topic much, but I'm wondering how would this work? You wouldn't be able to use a .html for an image. |
![]() |
|
| Jory | Jun 18 2005, 07:02 AM Post #8 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
No, you just put the code Stefan posted in the html of the website. So something like:
:o *<span style='color:red'>Qj[/color] wonders if bringing a topic back up by giving an awnser there is bad :unsure: |
![]() |
|
| Luke6006 | Jun 18 2005, 08:01 AM Post #9 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
I wouldn't have thought so. Let me get this right, you just make a html document and put it as an image into the box? |
![]() |
|
| Jory | Jun 18 2005, 08:07 AM Post #10 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Just paste the code into the html document where you want the random img, yes. |
![]() |
|
| Luke6006 | Jun 18 2005, 08:10 AM Post #11 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
I don't think you're understand what I mean, , I mean I want something to run off my webserver which has no extensions installed to use as an image rotator but I can't put a .html file as an image. |
![]() |
|
| Jory | Jun 18 2005, 08:32 AM Post #12 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
You don't have to use a .html as an image. You just put that code where you want the image. I could even put it here (If I could use the [doHTML ] tag/code that is )So you can use this anywhere (almost anyway). |
![]() |
|
| Luke6006 | Jun 18 2005, 08:33 AM Post #13 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
How would I use it in my signature then? (not for here) What code would it be? edit: Sorry, it should just go in the img tags. :$ |
![]() |
|
| Jory | Jun 18 2005, 08:42 AM Post #14 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
If you can use html in your sig, just put the code right there in your sig. If you can't use html in your sig, you can't use it (As far as I know anyway) (You can't use a php as an image source on any IF board, can you?) And doesn't this fall under this verry sticky topic and the lines above all topics/topic index in this forum?? :unsure: |
![]() |
|
| Luke6006 | Jun 18 2005, 08:51 AM Post #15 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Yeah, but it's not really just for invisionfree it's for all the forums (even if they're not powered by invision). |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| Go to Next Page | |
| « Previous Topic · Technology Chat · Next Topic » |
- Pages:
- 1
- 2
| Track Topic · E-mail Topic |
4:55 AM Jul 11
|



![]](http://b1.ifrm.com/0/1/0/p601690/pipright.png)






for a random quote
, I mean I want something to run off my webserver which has no extensions installed to use as an image rotator but I can't put a .html file as an image.
)
4:55 AM Jul 11