Hyperlink swaped images

R

Ron King

Hi,
I'm using DHTML in FP 2003 to swap images on mouse click. I would also
like a form to appear in a new window on the mouse click as well, but can't
seem to get both to work at the same time. Any ideas or suggestions on
getting this to work?

Thanks in advance,
Ron King
 
M

Murray

Select the trigger for the image swap (it'll either be a link or an image),
and apply the Open Browser Window behavior to it, browsing to and selecting
your form page. The result will be that you have two javascript calls
ganged up in the event handler in the page's code, e.g.,

<a href="javascript:;"
onClick="swapimagebehavior;openbrowserwindowbehavior">Click me</a>
 
R

Ron King

Hi Murray,
Thank you for your response. Here is the code I now have, and it still
isn't working.

<a
href="Javascript:clickSwapImg(document['fpAnimswapImgFP1']);openbrowserwindo
w('http://d-dog.com')">
<img border="0" src="unlit_candle1.gif" width="78" height="48"
id="fpAnimswapImgFP1" name="fpAnimswapImgFP1"
dynamicanimation="fpAnimswapImgFP1" lowsrc="candle1.gif"></a>

Is my syntax wrong, or am I doing something wrong.

Thanks,
Ron King
 
M

Murray

Try this -

<a
href="javascript:SwapImg(document['fpAnimswapImgFP1']);openbrowserwindow('http://d-dog.com')">

But you are using a different FP than I am....

--
Murray

Ron King said:
Hi Murray,
Thank you for your response. Here is the code I now have, and it still
isn't working.

<a
href="Javascript:clickSwapImg(document['fpAnimswapImgFP1']);openbrowserwindo
w('http://d-dog.com')">
<img border="0" src="unlit_candle1.gif" width="78" height="48"
id="fpAnimswapImgFP1" name="fpAnimswapImgFP1"
dynamicanimation="fpAnimswapImgFP1" lowsrc="candle1.gif"></a>

Is my syntax wrong, or am I doing something wrong.

Thanks,
Ron King
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top