Forum Moderators: open

Message Too Old, No Replies

Follow Link on Mouseover with Targeted Frame

Follow Link on Mouseover with Targeted Frame

         

smokyweb

2:53 pm on Feb 18, 2004 (gmt 0)

10+ Year Member



I am using a Follow Link on Mouseover script, but am unable to make it open in a specifically targeted frame (i.e. an inline frame). No matter what I do it will only open in a new window. The idea is to use this for thumbnails and have the larger pic open in an inline frame on the same page. If there is an easier simpler way to do this Im up for it. If I can just target the larger images to display in a specified table cell that would be great too. Please, any help is GREATLY appreciated. Below is the script I am using.

<script>
function loadfollow(which){
if (!window.win2¦¦win2.closed)
win2=window.open(which.href)
else
win2.location=which.href
}
</script>
<a onMouseover="loadfollow(this)" href ="pic.jpg">

tedster

5:52 am on Feb 19, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to the forum, smokeyweb.

I think things are getting difficult by wanting this functionality to work on mouseover.

Are you sure this is even what you're visitors would like? I can foresee all kinds of issues, like the need either to preload all the potential enlargements, or else make people wait for a download everytime they pass their mouse over an image -- which could get very strange very fast.

Why not just go with a straight link and use the target attribute to change the image that's loaded in an iframe? I think that a "click" approach is more user friendly than a "mouseover approach", and it's much simpler to code as well.

vrtlw

12:29 pm on Feb 19, 2004 (gmt 0)

10+ Year Member



How about a show/hide layers onMouseOver?

smokyweb

1:09 pm on Feb 19, 2004 (gmt 0)

10+ Year Member



Thanks for all your input and advice! I did finally solve the problem after spending Entirely too much time working on it. Tedster, I am in complete agreement with you on this, however, it is not my call to make as these were my clients wishes, against my advice. I appreciate each of you taking the time to help me in this matter. Hope I can return the favor! Thanks! :)