Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't Get Text Swap to Work.

Status
Not open for further replies.

becoxksig

Technical User
Jul 25, 2007
3
US
I have a simple webpage where the site visitor will click on buttons. These buttons dictate which text is being displayed on the screen. For images I have been able to do this within the Actions window Actions>MouseClick ....etc.
However, I find it much more difficult to do this with Text. Adobe Help indicates that I want to do this with a text swap. The only problem is that the "New Text" that replaces the existing text is just a single line of text and I want to be able to replace a large paragraph of formatted text with another of the same.

Can you help me?

Brian
 
I think I forgot to mention I'm using Adobe GoLive Ver 8.0 on CS2 for Windows.
 
I've done this before and also had some troubles, but i did get it to work:
As you move the mouse around the circle the inner contents change. Usually it shows an image but one of them is text. Actually niether an image or text is shown. I'm using the text swap action the change the html that appears inside the middle table cell.

The main problem i found was with double quotes as the javascript would try to interpret them instead of pass them along. To get around this:

1. For html attributes use single quotes such as < img src 'pic.jpg' width='56'> or < p class='swaptext'>

2. To show a double in a line of text you must escape it with a slash like < p class='swaptext'">John said \"look out\".< /p>
 
oh darn. I appreciate the help and I will try your method, but unfortunately you're speaking HTML and I don't understand it (yet). I can certainly try though. I was hoping for a simple fix through GoLive. That would be ideal. And ideally I'd like to be able to do it without tables.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top