Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

show hide region behavior triggered by repeated recordset image

Participant ,
Jul 31, 2008 Jul 31, 2008
I have applied the show / hide behaviors to an image that repeats based on repeated region behavior.

The layer that is supposed to show onmouseover of the image, does not show.

Is there something different that needs to be done in my case of repeated region image other than the standard procedure?

I have tested the behavior on a page whose image does not repeat because the recordset count is only 1 but it still does not work.
TOPICS
Server side applications
827
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 31, 2008 Jul 31, 2008
Post a link to the page, please.

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================


"aonefun" <webforumsuser@macromedia.com> wrote in message
news:g6t2cj$hd8$1@forums.macromedia.com...
>I have applied the show / hide behaviors to an image that repeats based on
> repeated region behavior.
>
> The layer that is supposed to show onmouseover of the image, does not
> show.
>
> Is there something different that needs to be done in my case of repeated
> region image other than the standard procedure?
>
> I have tested the behavior on a page whose image does not repeat because
> the
> recordset count is only 1 but it still does not work.
>

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 31, 2008 Jul 31, 2008
aonefun wrote:
> Is there something different that needs to be done in my case of repeated
> region image other than the standard procedure?

Behaviors, such as show/hide, rely on each element having an ID. If you
use a repeat region, you have probably ended up with the same ID being
repeated many times, which is why it doesn't work. An ID *must* be
unique. It can be used only once on a page.

If you want to create unique IDs in a repeat region, you need to use
your server-side language to add a number to the end of each ID. How you
do it depends on which language you're using.

--
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jul 31, 2008 Jul 31, 2008
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Aug 01, 2008 Aug 01, 2008
Thank you David and Murray for your responses. David, I figured the repeating region creating duplicates of an ID may be the cause of the issue. This is why I have tested (on the page I've supplied the link to) on a recordset with a count of only one so the ID should not repeat. Nevertheless, it does not work.

David and Murray, can you please see my page code as linked to in previous post.

Thanks for all your assistance.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 01, 2008 Aug 01, 2008
aonefun wrote:
> Thank you David and Murray for your responses. David, I figured the repeating
> region creating duplicates of an ID may be the cause of the issue. This is why
> I have tested (on the page I've supplied the link to) on a recordset with a
> count of only one so the ID should not repeat. Nevertheless, it does not work.

You have two instances of Layer1 on the same page. That's why it doesn't
work.

--
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 12, 2010 Oct 12, 2010
LATEST

I am having a similar issue and have read this thread with interest. I am trying to divvy up one large image - painting, in this case - into several clickable areas. As you mouseover the areas, a stylized text graphic should come up for each one, but it does not work (clicking to different pages works fine: it is the onmouseover effect which is dead in any browser).

From what I gather here, I need to take the original painting graphic and divide it up into individual squares - each an individual graphic file - with each of these "tiles" having its own onmouseover and onmouseout behavior?

Thanks!

- Z

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines