Closed Thread Icon

Topic awaiting preservation: rotate images script (Page 1 of 1) Pages that link to <a href="http://ozoneasylum.com/backlink?for=8565" title="Pages that link to Topic awaiting preservation: rotate images script (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: rotate images script <span class="small">(Page 1 of 1)</span>\

 
CRO8
Bipolar (III) Inmate

From: New York City
Insane since: Jul 2000

posted posted 03-09-2003 16:39

Javascript or dhtml . . each one can accomplish this task- any preferences I should know about which could be the deciding factor? I guess speed and browser compatability are the main concerns. . .

Thanks.
Chris

Koenie
Nervous Wreck (II) Inmate

From: Leiden, the Netherlands
Insane since: Dec 2002

posted posted 03-09-2003 19:59

DHTML is the combination of JavaScript, CSS and HTML. So this will not really be a decision between JavaScript and DHTML, because DHTML mainly IS JavaScript. If I did not understand this question, please tell me.

Koenie

CRO8
Bipolar (III) Inmate

From: New York City
Insane since: Jul 2000

posted posted 03-09-2003 20:25

yes- thanks.

Dracusis
Maniac (V) Inmate

From: Brisbane, Australia
Insane since: Apr 2001

posted posted 03-10-2003 05:05

What?

yes-thanks? - Is that an answer to Koeine's question?


In any event, you can't rotate an image using Javascript period. You can do it in IE PC using active X scripting but that's something completly different.

WarMage
Maniac (V) Mad Scientist

From: Rochester, New York, USA
Insane since: May 2000

posted posted 03-10-2003 05:10

I was wondering the same thing.


Me

Bugimus
Maniac (V) Mad Scientist

From: New California
Insane since: Mar 2000

posted posted 03-10-2003 05:55

You can simulate rotation in Javascript/dhtml by swapping in multiple images. I do that with that cursor chaser tute I did for the GN. CRO8, take a look at all the images I saved out to do that in the tute.

I also did a fun little page with a Babylon 5 ship here.

. . : slicePuzzle

Dracusis
Maniac (V) Inmate

From: Brisbane, Australia
Insane since: Apr 2001

posted posted 03-10-2003 06:12

Ay! I remember finding that B5 demo on your site a while back. That's way cool. Reminds me of those faithfull engineering school years I lost to playing starcraft. Heh.

Bugimus
Maniac (V) Mad Scientist

From: New California
Insane since: Mar 2000

posted posted 03-10-2003 06:18

Yes!!! I once considered doing some sort of StarCraftesque dhtml thingy but then I realized just how much work it would be and went on to other things But maybe I'll revisit that idea one of these days.

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 03-10-2003 06:51

Drac - I don't think Koenie asked a question =)

CRO8 may be talking about a script that rotates through multiple images, like max's random sig script, or something like that. He might not be talking about physical rotation.

Bugimus
Maniac (V) Mad Scientist

From: New California
Insane since: Mar 2000

posted posted 03-10-2003 07:31

Only CRO8 knows which it is. Both methods are quite well supported around here so I think we've got him covered.

CRO8
Bipolar (III) Inmate

From: New York City
Insane since: Jul 2000

posted posted 03-10-2003 19:00

ahhh. When I said "rotate" I did not mean physical rotation- but random image swapping- as Slime stated. Sorry I should have have been more clear!

Thanks.
CRO8

Dracusis
Maniac (V) Inmate

From: Brisbane, Australia
Insane since: Apr 2001

posted posted 03-10-2003 21:17

Assumptions are the mother of all screwups. My bad.

For a scrpt like that, it really depends on what your using it for. Javascript for client side stuff, but if you want to link to a random image from an external source (like a sig rotating script) then a PHP or CGI script of some kind would be the way to go.

Emperor
Maniac (V) Mad Scientist with Finglongers

From: Cell 53, East Wing
Insane since: Jul 2001

posted posted 03-10-2003 21:35

CRO8: I would imagine that you can do it but only in IE using their transformations/filters (I've not checked but something like matrix rings a bell) - which is what Dracusis meant when he refered to their Active-X stuff .

[edit: yep the Matrix filter looks like the right one:
http://msdn.microsoft.com/workshop/author/filter/reference/filters/matrix.asp

but have a look here:
www.scottandrew.com/dhtml/docs/rotator.html

which does give the illusion of an object rotating - which is what Slime was talking about. Seems like a lot of effort unless you used server-side scripting to create a rotated version of your image which was then fed to the DHTML!!]

However, it may be a task more suited to Flash or animated gifs.

[edit2: And bugs I still love that Minbari chaser!!]

[edit3: Now I've stopped playing with Bugs' cursor chaser I should get back to CRO8's actual questions - this is perfectly possible and it is how the random title graphic thingy works at the GN - all the images are held in an array and then a touch of randmoness allows us to grab the right graphic - have a peak at the script in action and if you have trouble reverse engineering the code for your needs let us know ]

___________________
Emps

FAQs: Emperor

« BackwardsOnwards »

Show Forum Drop Down Menu