Ask a Question related to Macromedia Dynamic HTML, Design and Development.
-
MAGandD #1
How do you rotate pictures?
Our homepage has placeholders for 3 photos. We'd like to set it up so every
time the user goes to the site, the 3 photos are different every time.
Eventually, we'd have a total of 12-15 pictures, all the same height x width,
that could rotate in and out.
I've seen scripts where pictures change every 3 or 5 seconds, but we only want
to rotate the pictures everytime the user visits the site.
Thanks!
MAGandD Guest
-
RE-rotate
Hi, all I have a scene include only one cast member called "cube" and this cast member include model called "red", all my need to do is "when I... -
3d rotate
Is there a way or some software that will allow me to rotate an image forward, like it is on an axis that is paralell to the ground? I am trying... -
Rotate Tool Won't Rotate
I'm sure this is a simple thing, but I'm blind on it. I've got Freehand MX running on Panther. When I select an object, click the rotate tool and try... -
CCW Rotate and 180 rotate in PS CS are not working properly
I have installed the singel version of Photoshop CS on a G4 under Panther and a newly purchased G5 using Panther. When a bitmap file is created (i.e.... -
Column with pictures instead of 0s and 1s (boolean value representation in pictures)
Hi everybody, I have the following problem: I have a datagrid and a bound column to a data field which serves to indicate whether an item is... -
Murray *ACE* #2
Re: How do you rotate pictures?
Put this in the head of the document -
<script type="text/javascript">
<!--
function displayRandomImage(imageName,array){
document.images[imageName].src=array[new Date().getTime()%array.length];
}
urls=["images/cs1.jpg","images/cs2.jpg","images/cs3.jpg","images/cs4.jpg"]
// load this line with your image names and paths
//-->
</script>
and then put this in the body of the page -
<body onLoad="displayRandomImage('csmember',urls)">
<!-- csmember is the HTML NAME (not the filename) of the image receiving the
random changes -->
--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
[url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
[url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
[url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
[url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
==================
"MAGandD" <webforumsuser@macromedia.com> wrote in message
news:dv96fa$7c8$1@forums.macromedia.com...> Our homepage has placeholders for 3 photos. We'd like to set it up so
> every
> time the user goes to the site, the 3 photos are different every time.
> Eventually, we'd have a total of 12-15 pictures, all the same height x
> width,
> that could rotate in and out.
>
> I've seen scripts where pictures change every 3 or 5 seconds, but we only
> want
> to rotate the pictures everytime the user visits the site.
>
> Thanks!
>
Murray *ACE* Guest
-
MAGandD #3
Re: How do you rotate pictures?
Can you explain what the "...HTML NAME of the image receiving the random
changes" is? Do you mean the web page where all this is going on? So in my
case, instead of using 'csmember' I'd change it to 'index.htm'?
THANKS!! :-)
MAGandD Guest
-
Murray *ACE* #4
Re: How do you rotate pictures?
<img src="foo.gif" name="thisONE"....
--------------------------^^^^^^^^^^^^^^^^
--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
[url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
[url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
[url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
[url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
==================
"MAGandD" <webforumsuser@macromedia.com> wrote in message
news:dv9c20$f4l$1@forums.macromedia.com...> Can you explain what the "...HTML NAME of the image receiving the random
> changes" is? Do you mean the web page where all this is going on? So in my
> case, instead of using 'csmember' I'd change it to 'index.htm'?
>
> THANKS!! :-)
>
Murray *ACE* Guest
-
-
Murray *ACE* #6
Re: How do you rotate pictures?
<img src="foo.gif" name="thisONE"....
--------------------------^^^^^^^^^^^^^^^^
Can you see that?
--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
[url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
[url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
[url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
[url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
==================
"MAGandD" <webforumsuser@macromedia.com> wrote in message
news:dv9hq9$neb$1@forums.macromedia.com...>I didn't see your answer?
Murray *ACE* Guest
-
MAGandD #7
Re: How do you rotate pictures?
This is the only thing I see. Sorry.
<img src="foo.gif" name="thisONE"....
--------------------------^^^^^^^^^^^^^^^^
MAGandD Guest
-
Murray *ACE* #8
Re: How do you rotate pictures?
Yes, well, that's the answer to your question.
You said -
Can you explain what the "...HTML NAME of the image receiving the random
changes" is?
and I showed you what it is.
--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
[url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
[url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
[url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
[url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
==================
"MAGandD" <webforumsuser@macromedia.com> wrote in message
news:dv9jnu$qaq$1@forums.macromedia.com...> This is the only thing I see. Sorry.
>
> <img src="foo.gif" name="thisONE"....
> --------------------------^^^^^^^^^^^^^^^^
>
Murray *ACE* Guest
-
MAGandD #9
Re: How do you rotate pictures?
Sorry, I'm obviously missing something. Was I supposed to be seeing a graphic
of something or was that actually code (I only see text)? -- What is "foo.gif"
and what is "thisONE" referencing?
Or, how bout this. If my homepage is called "index.htm" and the images are
called "cs1.jpg", "cs2.jpg", "cs3.jpg", and "cs4.jpg", how would the script
look? I just want to make sure I have all the variables correct.
Thanks again!
MAGandD Guest
-
Murray *ACE* #10
Re: How do you rotate pictures?
The HTML name of the image is the value of the HTML attribute called "name".
That's what I was pointing to in my posts. In this case, the name of that
image would be "thisONE".
Geddit?
--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
[url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
[url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
[url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
[url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
==================
"MAGandD" <webforumsuser@macromedia.com> wrote in message
news:dv9m2d$65$1@forums.macromedia.com...> Sorry, I'm obviously missing something. Was I supposed to be seeing a
> graphic
> of something or was that actually code (I only see text)? -- What is
> "foo.gif"
> and what is "thisONE" referencing?
>
> Or, how bout this. If my homepage is called "index.htm" and the images are
> called "cs1.jpg", "cs2.jpg", "cs3.jpg", and "cs4.jpg", how would the
> script
> look? I just want to make sure I have all the variables correct.
>
> Thanks again!
>
Murray *ACE* Guest
-
MAGandD #11
Re: How do you rotate pictures?
Got it. But I still can't figure out how to adjust the code so it'll work with
3 placeholders. I tried just repeating the code and changing the ID Names to
"csmember2" and "csmember3", but it's still only working on the first
"csmember". How can I do that? THANKS!
MAGandD Guest
-
Murray *ACE* #12
Re: How do you rotate pictures?
Show me your page, please.
--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
[url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
[url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
[url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
[url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
==================
"MAGandD" <webforumsuser@macromedia.com> wrote in message
news:dvbqn1$st6$1@forums.macromedia.com...> Got it. But I still can't figure out how to adjust the code so it'll work
> with
> 3 placeholders. I tried just repeating the code and changing the ID Names
> to
> "csmember2" and "csmember3", but it's still only working on the first
> "csmember". How can I do that? THANKS!
>
Murray *ACE* Guest
-
MAGandD #13
Re: How do you rotate pictures?
This was just the test page to see if it'd work first:
[url]http://www.mikeantoniographics.com/testingground/phototest.htm[/url]
When you hit refresh, the first picture changes fine, but the other 2 don't.
Thanks for checking it out!
MAGandD Guest
-
Murray *ACE* #14
Re: How do you rotate pictures?
You had some problems there. Of course, my instructions were pretty terse,
too....
[url]http://www.murraytestsite.com/random-3.html[/url]
You can improve this by expanding the number of images being swapped, and by
using a blank image for the default (rather than an empty placeholder as I
have done).
--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
[url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
[url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
[url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
[url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
==================
"MAGandD" <webforumsuser@macromedia.com> wrote in message
news:dvbtoe$3pc$1@forums.macromedia.com...> This was just the test page to see if it'd work first:
>
> [url]http://www.mikeantoniographics.com/testingground/phototest.htm[/url]
>
> When you hit refresh, the first picture changes fine, but the other 2
> don't.
>
> Thanks for checking it out!
>
Murray *ACE* Guest
-
MAGandD #15
Re: How do you rotate pictures?
I got it to work fine on the test page
([url]http://www.mikeantoniographics.com/testingground/phototest3.htm[/url]), but when I
copy & pasted the script into the actual web page it doesn't work -- maybe
it's conflicting with some of the other javascript? Could you check out the
webpage again? ([url]http://www.mikeantoniographics.com/testingground/index2.htm[/url])
Thanks!
MAGandD Guest
-
Murray *ACE* #16
Re: How do you rotate pictures?
Change this -
a:hover {
text-decoration: none;
color: #CC0000;
}
</style>
</head>
to this -
a:hover {
text-decoration: none;
color: #CC0000;
}
-->
</style>
</head>
Otherwise, DW will think that the entire rest of the page is part of that
unterminated comment.
You also have added a second body tag to the page - that's not going to
work....
--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
[url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
[url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
[url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
[url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
==================
"MAGandD" <webforumsuser@macromedia.com> wrote in message
news:dvpqgi$ltd$1@forums.macromedia.com...>I got it to work fine on the test page
> ([url]http://www.mikeantoniographics.com/testingground/phototest3.htm[/url]), but
> when I
> copy & pasted the script into the actual web page it doesn't work --
> maybe
> it's conflicting with some of the other javascript? Could you check out
> the
> webpage again?
> ([url]http://www.mikeantoniographics.com/testingground/index2.htm[/url])
>
> Thanks!
>
Murray *ACE* Guest
-
-
Murray *ACE* #18
Re: How do you rotate pictures?
You're welcome.
--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
[url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
[url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
[url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
[url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
==================
"MAGandD" <webforumsuser@macromedia.com> wrote in message
news:e03mvk$87f$1@forums.macromedia.com...> THANKS!
Murray *ACE* Guest



Reply With Quote

