Results 1 to 7 of 7

Thread: problem with 2 frame target...

  1. #1
    Join Date
    Jul 2001
    Location
    -lostworld-
    Posts
    102
    Rep Power
    223

    problem with 2 frame target...

    mmmm... biasanya dalam satu page(frameset), yg ada beberapa frame... kalau kita nak buat link,... kita hanya boleh target kan ia ke satu frame yg lain..

    macamana kalau kita nak buat link, supaya boleh menukarkan dua frame yg berbeza di dalam satu frameset yg sama....
    boleh ke....

  2. #2
    Join Date
    Jul 2001
    Location
    a state of mind
    Posts
    98
    Rep Power
    222
    yeah.. it is possible.. using javascript.

    use <a href> as usual.. giving the target frame name.. and also in addition use OnClick to load the 2nd page into 2nd frame (2 links with one click)

    another way you could do this without using the onclick event is to use OnLoad. use <a href> as usual.. loading the 1st page into the target frame.. use OnLoad (in the 1st page) to load the 2nd page in the 2nd target frame.
    geekrawk

    {wt} - angry middle finger
    http://geekrawk.wordpress.com

  3. #3
    Join Date
    Jul 2001
    Location
    -lostworld-
    Posts
    102
    Rep Power
    223
    ok thanks...

    i've tried with the onLoad command inserted in the <body> , but still not working.... maybe my command is wrong... can you please give me the correct one...

    ..havent try with the onClick yet...

  4. #4
    Join Date
    Jul 2001
    Location
    a state of mind
    Posts
    98
    Rep Power
    222
    this is the code i did in dw

    <script language="JavaScript">
    <!--
    function MM_openBrWindow(theURL,winName,features) { //v2.0
    window.open(theURL,winName,features);
    }
    //-->
    </script>
    </head>

    <body bgcolor="#FFFFFF" text="#000000" onLoad="MM_openBrWindow('http://wasted-talent.org','TopFrame','')">
    </body>
    </html>
    i used the default macromedia openBrWindow function and called it with the onLoad event, but i specified a frame/window name for the html page to load in.

    another "hand" coded way is to use onLoad=top[0].location="url" (will only work with framed pages). this command will load the url into the top frame (top as in position, not hierarchy)

    let me know if u have any more problems.
    geekrawk

    {wt} - angry middle finger
    http://geekrawk.wordpress.com

  5. #5
    Join Date
    Jul 2001
    Location
    -lostworld-
    Posts
    102
    Rep Power
    223
    thanks.... it works...
    really appreciate it...
    i'm using the onLoad=top[0].location="url"
    simple and easy...

    p/s : ...i've tried to load the page to other frame, such as left,right.main... by changing the top parameter in the command.., but failed to do so....

  6. #6
    Join Date
    May 2002
    Location
    Kuala Lumpur, Malaysia
    Posts
    36
    Rep Power
    0
    By putting both of those frame that you want to change to the main frame and you will be able to change both of the frame at once.

    E.g.
    mainFrame
    | by putting both of the frame in mainFrame
    two frame = (frame1,frame2)

    Then when you put the links.... just make it open in mainframe, and WOALAH, both of the frame will be change at once.

  7. #7
    Join Date
    Nov 2007
    Location
    Malaysia
    Posts
    14
    Rep Power
    0
    Guna javascript....

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Catalog Catches The Target Market
    By muqtada123 in forum Other Webmaster-related Services and Promotion
    Replies: 0
    Last Post: 13-10-2009, 05:38 AM
  2. Has anyone tried the google set geographic target tool ?
    By roseliabubakar in forum Search Engine Marketing
    Replies: 4
    Last Post: 15-06-2008, 01:54 AM
  3. Help on html frame
    By xara_fatima in forum Website Design
    Replies: 1
    Last Post: 11-07-2007, 11:24 AM
  4. Target Keywords, But Arent Listed
    By skylighto in forum Search Engine Marketing
    Replies: 2
    Last Post: 05-07-2007, 03:15 PM
  5. How to do inline frame?
    By elfreakz in forum Website Design
    Replies: 14
    Last Post: 09-11-2003, 11:37 PM

Posting Permissions

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

Search Engine Optimization by vBSEO 3.5.0 RC1 PL1

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112