Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Feb 2003
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Follow Link On Mouseover with Targeted Frame


    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">
    Thanks in Advance!

    Smokyweb :)

  • #2
    Regular Coder
    Join Date
    Jul 2002
    Posts
    698
    Thanks
    0
    Thanked 0 Times in 0 Posts
    function loadfollow(which){
    window.FRAMENAME.location.href=which.href;
    }


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

  • #3
    New to the CF scene
    Join Date
    Feb 2003
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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! Thanks!
    Attached Files Attached Files
    Thanks in Advance!

    Smokyweb :)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •