Results 1 to 9 of 9

Thread: Targetting a frame with

  1. #1
    Join Date
    Sep 2004
    Location
    Little Falls, Roodepoort, South Africa
    Posts
    421
    Thanks
    4
    Thanked 1 Time in 1 Post

    Default Targetting a frame with

    Hi Team

    I think I'm just being stupid.. however my mind has gone blank..


    With a mouse over I'm trying to get a change in the screen:

    <td height="94" width="74" style="cursor:hand; cursorointer" onmouseover="FP_goToURL(/*href*/'herman.htm')">
    <img border="0" src="images/pics/contact/Herm.jpg" width="69" height="86"></td>

    This works but does not p\traget the frame.. so I was thinking:

    <td height="94" width="74" style="cursor:hand; cursorointer" onmouseover="FP_goToURL(/*href*/'herman.htm' target='teampop')">
    <img border="0" src="images/pics/contact/Herm.jpg" width="69" height="86"></td>

    But this does not work... Mr Winter/ Mr Creative... please advise
    Very Best Rgds, Simonf :cool:
    __________________________________
    My Site | E-Mail Me

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Your mind does indeed appear to have gone blank. You're calling a function like this:
    function(target='teampop');
    That's an unquoted string ye got thar, for a start. Try 'herman.htm\' target=\'teampop'. If that doesn't work, try 'herman.htm" target="teampop'.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Sep 2004
    Location
    Little Falls, Roodepoort, South Africa
    Posts
    421
    Thanks
    4
    Thanked 1 Time in 1 Post

    Default

    Hi Twey

    Nope.....

    URL is if you want to take a look and help resolve...
    Very Best Rgds, Simonf :cool:
    __________________________________
    My Site | E-Mail Me

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Try...
    HTML Code:
    <a href="gwyn.htm" target="teampop" onmouseover="document.teampop.src='gwyn.htm';">
    By the way... do you have a reason for slicing all your images up into little slow-loading pieces? :-\
    Last edited by Twey; 08-10-2005 at 11:08 AM.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  5. #5
    Join Date
    Sep 2004
    Location
    Little Falls, Roodepoort, South Africa
    Posts
    421
    Thanks
    4
    Thanked 1 Time in 1 Post

    Default

    Yep... would you believe customer wanted it sliced.. beleives it to be faster!!!
    Very Best Rgds, Simonf :cool:
    __________________________________
    My Site | E-Mail Me

  6. #6
    Join Date
    Sep 2004
    Location
    Little Falls, Roodepoort, South Africa
    Posts
    421
    Thanks
    4
    Thanked 1 Time in 1 Post

    Default

    Hey Twey

    Still does not work........ thanks for you help and patients.... modified file on url
    Very Best Rgds, Simonf :cool:
    __________________________________
    My Site | E-Mail Me

  7. #7
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Tell them that every image has a header - twenty images means twenty headers, nineteen of them pointless.

    Try giving it an id and using document.getElementById('id').src='gwen.htm';
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  8. #8
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,358
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    If I were you, I'd remove the feature altogether. The main reason is that some of those 'biographies' need to be scrolled to view in full (add a scrollbar; enlarging the frame isn't good enough). However, to do that the user would need to move their mouse (most people don't navigate with the keyboard, after all), and unless the user is willing to purposefully avoid all of the other images, they will trigger a change. Very bad.

    If you must persist, then use the frames collection of the window object:

    Code:
    function loadFrame(link) {
      window.frames[link.target].src = link.href;
    }
    
    <a href="..." target="teampop" onmouseover="loadFrame(this);">...</a>
    Quote Originally Posted by simonf
    Yep... would you believe customer wanted it sliced.. beleives it to be faster!!!
    You're the one being used for your expertise, are you not? So tell them that in your opinion, as the expert, that they don't know what they're talking about (you'll want to use a little more tact than that ).

    Multiple images mean multiple requests. If persistent connections aren't used, that also means more connections, and more load on the server. Faster? Not a chance. It might seem faster as you can see parts of the image before the entire thing has downloaded, but you can get a similar effect with progressive encoding.

    Mike
    Last edited by mwinter; 08-10-2005 at 12:21 PM.

  9. #9
    Join Date
    Sep 2004
    Location
    Little Falls, Roodepoort, South Africa
    Posts
    421
    Thanks
    4
    Thanked 1 Time in 1 Post

    Default

    Point taken Mike.. Thanks as always..
    Very Best Rgds, Simonf :cool:
    __________________________________
    My Site | E-Mail Me

Bookmarks

Posting Permissions

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