It appears you have not yet registered with our community. To register please click here.

Origin XT RPG Network Home

*sigh* another Javascript question.


Mar 24 2005, 10:30 PM (Post #1)
Member Of The Year 2005
* * * * * * * * *
Posts: 10,363
Cash: -77,174 / 11,869,762
Group: Administrator
Joined: 2/28/03 10:58 AM
How do I make an image rotate by 90 degrees, 180 degrees, and 270 degrees.

Before you ask, no I cannot just do it using an image editor. I need something like

CODE
<img rotatedegree=90 src="j.jpg">


ie, it is for my website, where the design is explained here : click me


I can make the images rotate, but when they rotate they also need to change in terms of degrees ie the bottom two images need to be upside down, the side two need to be 90 and 270 degrees respectively. So, if I had the two at the bottom upside down initially, it would mean jack because as soon as I rotate the images they are in the wrong place - the side ones are now one on the top and one on the bottom, one of the top ones are on the side ... rar, yeah. So basically I need:

(imagine the images go)

CODE
+ - 1 - + - 2 - +
3 [...banner...] 4
+ - 5 - + - 6 - +


(then the code should be)

CODE
img 1 = normal
img 2 = normal
img 3 = rotated 270 degrees
img 4 = rotated 90 degrees
img 5 = rotated 180 degrees
img 6 = rotated 180 degrees




I hope you understood that, and can help ssmile.gif I will explain it furthur if you need me to.
Post Options

 
Mar 24 2005, 11:37 PM (Post #2)
Not Odd anymore
* * * * * * * * * *
Posts: 45,875
Cash: 1,915,578 / 1,817,041,051
Group: Administrator
Joined: 7/10/02 09:48 PM
You can't really do that using HTML...
Post Options

Mar 25 2005, 08:30 PM (Post #3)
Member Of The Year 2005
* * * * * * * * *
Posts: 10,363
Cash: -77,174 / 11,869,762
Group: Administrator
Joined: 2/28/03 10:58 AM
..... I know ........


..... that is why i need help from someone who knows javascript or something which will make it feasible ...... -!_!-! -_-!!!
Post Options

Mar 25 2005, 09:13 PM (Post #4)
Not Odd anymore
* * * * * * * * * *
Posts: 45,875
Cash: 1,915,578 / 1,817,041,051
Group: Administrator
Joined: 7/10/02 09:48 PM
Exchange the images then. Have separate images.

But I don't think it's a good idea. Sites relying too heavily on JS isn't very cross-browser compatible
Post Options

Mar 25 2005, 09:37 PM (Post #5)
Member Of The Year 2005
* * * * * * * * *
Posts: 10,363
Cash: -77,174 / 11,869,762
Group: Administrator
Joined: 2/28/03 10:58 AM
The entire point in this is so that people don't have to load too many images. Plus if I have to make it more images, it will mean messing with your code more, and having to create ... 24 images instead of 6. A major pain in the ass for me.

Is there no way you could just code something?
Post Options

Mar 25 2005, 10:22 PM (Post #6)
Not Odd anymore
* * * * * * * * * *
Posts: 45,875
Cash: 1,915,578 / 1,817,041,051
Group: Administrator
Joined: 7/10/02 09:48 PM
You need separate images. No JS code can "rotate" it.
Post Options

Mar 25 2005, 10:41 PM (Post #7)
Member Of The Year 2005
* * * * * * * * *
Posts: 10,363
Cash: -77,174 / 11,869,762
Group: Administrator
Joined: 2/28/03 10:58 AM
... how gay.

Can it not like, set the image parameters diferently? I have seen a lot of stuff with moving images and drag and drop images, Im sure something like that could be customised ... but if no-one can do it, I guess I will have to abandon the idea FROWN.GIF
Post Options

Mar 25 2005, 10:57 PM (Post #8)
Not Odd anymore
* * * * * * * * * *
Posts: 45,875
Cash: 1,915,578 / 1,817,041,051
Group: Administrator
Joined: 7/10/02 09:48 PM
That requires active X, but I have no knowledge in that field. Sorry
Post Options