|
Prev: images as navigation buttons, when images resize,navigation menu moves around
Next: ASP Pages will not expire
From: andib311 on 7 May 2008 11:36 Hi I have several thumbnails on a page that when clicked trigger the swap image behaviour of another larger image elsewhere on the page. In addition to this swap, I'm also trying to get default text on the page to change along with the larger image appearing, using the Change Property behaviour. The coding is as it's shown below and I'm certain is how I had it typed when using an old MX version of the program, but in CS3 only the image swap takes place and the default text remains. The details for this are event = <A> onClick, element = SPAN, element ID = "commtext", my own property entered as "innerHTML" (that property is not in the default list for some reason?) and the new value = "Text will go here" The code for the thumbnail trigger is this: <td width="22" height="7"></td> <td width="50" rowspan="2" align="center" valign="middle"><a href="javascript:;" onClick="MM_swapImage('blank','','Images/Commission/com_01.jpg',1);MM_changeProp ('commtext','','innerHTML','<strong><em>Perfect Day 2008 - Image 01</strong></em>','SPAN')"><img src="Images/Commission/com_01_thumb.jpg" alt="Illustration 01" width="40" height="40" border="0"></a></td> And the code for the default text in span tags is this: <td colspan="2" valign="top"><font color="000000" size="2" face="Verdana, Arial, Helvetica, sans-serif"><span id="commtext">[I]Text Title[/I] Text will go here.</span></font></td> Apologise if the examples of my coding have not applied to this message correctly, the "attach code" function was playing up. Can anyone suggest what's wrong and what I need to do? Thanks!
From: Murray *ACE* on 7 May 2008 15:41
You don't want the change property behavior - you want the Set Text behavior. -- 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 ================== "andib311" <webforumsuser(a)macromedia.com> wrote in message news:fvsiap$gim$1(a)forums.macromedia.com... > Hi > I have several thumbnails on a page that when clicked trigger the swap > image > behaviour of another larger image elsewhere on the page. In addition to > this > swap, I'm also trying to get default text on the page to change along with > the > larger image appearing, using the Change Property behaviour. The coding is > as > it's shown below and I'm certain is how I had it typed when using an old > MX > version of the program, but in CS3 only the image swap takes place and the > default text remains. > The details for this are event = <A> onClick, element = SPAN, element ID = > "commtext", my own property entered as "innerHTML" (that property is not > in the > default list for some reason?) and the new value = "Text will go here" > > The code for the thumbnail trigger is this: > > <td width="22" height="7"></td> > <td width="50" rowspan="2" align="center" valign="middle"><a > href="javascript:;" > onClick="MM_swapImage('blank','','Images/Commission/com_01.jpg',1);MM_changeProp > ('commtext','','innerHTML','<strong><em>Perfect Day 2008 - Image > 01</strong></em>','SPAN')"><img src="Images/Commission/com_01_thumb.jpg" > alt="Illustration 01" width="40" height="40" border="0"></a></td> > > And the code for the default text in span tags is this: > > <td colspan="2" valign="top"><font color="000000" size="2" face="Verdana, > Arial, Helvetica, sans-serif"><span id="commtext">[I]Text Title[/I] > Text will go here.</span></font></td> > > Apologise if the examples of my coding have not applied to this message > correctly, the "attach code" function was playing up. > > Can anyone suggest what's wrong and what I need to do? Thanks! > > |