...

View Full Version : Follow Link On Mouseover with Targeted Frame



smokyweb
02-18-2004, 03:19 PM
:confused:
I am using a Follow Link on Mouseover script (you mouseover a text link or image link and it will open said link without clicking), 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">

Garadon
02-18-2004, 03:38 PM
function loadfollow(which){
window.FRAMENAME.location.href=which.href;
}


<iframe name="FRAMENAME" src=""></iframe>

smokyweb
02-18-2004, 04:17 PM
Originally posted by Garadon
function loadfollow(which){
window.FRAMENAME.location.href=which.href;
}


<iframe name="FRAMENAME" src=""></iframe>

Thanks for your reply!!:) It seemed to have worked until I did the mouseover and rather than bring up the photo in the inline frame, it brought the old "This Page Cannot Be Displayed". I am not sure what I am doing wrong. I am including the complete script from the page. I hate to impose on your, but if you could look it over and advise me I would be ever so grateful! :o Thanks!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum