Rick, I don't mean to offend in any way, but you did say your
javascript was generated. Honestly I don't see how your javascript
does anything. Here's a simple example of how you can do a link with
an image. When you mouse over the image, it changes to the 02 version
of the image. When you mouse off, it goes back to 01.

When you mouse over the image and click on it, it will first change as
described above based on the onMouseOver javascript event. The <a
href> tag handles opening the link in a new window (based on
target="_blank").

The main difference in what I have here is that the onMouseOver and
onMouseOut event calls are in the <img> tag, not the <a href> tag.
Also the "this.id" part is case sensitive, so this.ID won't work.

<script type="text/javascript"><!--
function switchImage(imgID, imgSrc) {
        document.getElementById(imgID).src = imgSrc;
}
//--></script>

<a href="http://www.fl.living.net/idxfirm/3087550"; Target="_blank">
        <img id="PictureRollover36" height="21" width="170"
                src="./Florida_Properties_01.jpg" border="0" alt=""
                onMouseOver="switchImage(this.id,'./Florida_Properties_02.jpg')"
                onMouseOut="switchImage(this.id,'./Florida_Properties_01.jpg')" 
/>
</a>

Hope this helps.

Matt

11/3/06, Rick Faircloth <[EMAIL PROTECTED]> wrote:
> Rick Faircloth wrote:
> > Thanks for the reply, Matt...
> >
> > I've pasted in the entire script and the previous line
> > of code I sent that references it.
> >
> > How can I modify this code to include the
> > window.open function in the HTML?  "function onClick" or something?
> >
> > (As you can tell, I am *not* a JS coder...this was generated for me)
> >
> > Rick
> >
> > <script type="text/javascript"><!--
> > function onPictureRollover36A3380Over() {}
> > function onPictureRollover36A3380Out() {}
> > //--></script>
> >
> > <script type="text/javascript"><!--
> > graphic1PictureRollover36A3380 = new Image()
> > graphic1PictureRollover36A3380.src = './Florida_Properties_01.jpg';
> > graphic2PictureRollover36A3380 = new Image()
> > graphic2PictureRollover36A3380.src = './Florida_Properties_02.jpg';
> > function onPictureRollover36A3380Over() {
> > document.PictureRollover36A3380.src=graphic2PictureRollover36A3380.src;
> > }
> > function onPictureRollover36A3380Out() {
> > document.PictureRollover36A3380.src=graphic1PictureRollover36A3380.src;
> > }
> > //--></script>
> >
> > <a href="http://www.fl.living.net/idxfirm/3087550"; Target="_blank"
> > onMouseOver="onPictureRollover36A3260Over(this)"
> > onMouseOut="onPictureRollover36A3260Out(this)"><IMG ID="PictureRollover36"
> > HEIGHT="21" WIDTH="170" SRC="./Florida_Properties_01.jpg" BORDER="0"
> ALT=""
> > name=PictureRollover36A3260></a>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:259154
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to