35 users online (0 members and 35 guests)  


  Results 1 to 12 of 12

Related

  1. Replies: 3
  2. inserting css into php pages?    Forum: CSS Forum
    Replies: 10
  3. form with pages    Forum: Website Scripts Forum
    Replies: 2
  1. #1
    cutecutty's Avatar
    New User

    Status
    Offline
    Join Date
    Sep 2003
    Posts
    10

    button that link to 2 different pages

    hi...is there a way to make a button that will link to 2 different pages?
    usually we can only set the a href into 1 page(example.htm) and target in 1 window(_self/_top/_parent/_blank) rite? but i want to make the button can open in 2 frames,that is in _self and also in another frame.
    pls experts...... HELP....
    THX

  2. #2
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    Hiya,

    the easiest way is to use javascript, like -

    Code:
    <a href="javascript:void(0);" onClick="window.location='thispahe.html';framedwindow.location='theother.html';">argh</a>
    where framedwindow is the name of your frame, eg the 'target'

    not sure if this example works right off, not checked it, but I answered this question fully about a year/year+half ago, so try searching the forums for some better examples.
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  3. #3
    cutecutty's Avatar
    New User

    Status
    Offline
    Join Date
    Sep 2003
    Posts
    10

    how to go back to previous page?

    hi..
    i found the way to make link to 2 different pages.but the problem is if i click "back button" in the browser,it goes back to the previous page,but only one page.
    my website is like this: inside 1 page have 2 floating frames (named resort and text).if i clicked button in frame resort,it will open a page both in resort and txt.but if i clicked back button in browser,only one of the frame will go back to previous page(either in resort or txt).
    so how to make the page will go back to the previous page which have the previous of resort and txt?
    anybody knows the answer,pls answer it..i need it asap

    thx.....

  4. #4
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    i dont think you will get that to work. The only answer is to not use frames.
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  5. #5
    cutecutty's Avatar
    New User

    Status
    Offline
    Join Date
    Sep 2003
    Posts
    10

    Unhappy is there any solution for it?

    hi quietdean,thx for your idea,i havent try your script yet.but from the script i used is almost the same ...so i think it will work also.
    but now the problem with using the script for loading 2 different page under 1 hyperlink is i can't go back to the frameset when i click the back button.
    i have searched through some other websites,they r suggesting using "replace" method.i havent try it yet,so dunno whether it'll work or not.but i'm not sure it''ll work.
    actually i'm using this method(link to 2 pages ),is to do the page that i have asked(the page that have 35 small pictures on the left and also the bigger version of the picture on the right),and i managed to solve the problem by using 2 frames in the left and right side.
    another way i can think of is to make the bar in scroll bar will stay at the bottom when the new page is loading.if i found the way,then i wont be needing to use the (link to 2 pages method) anymore.
    so do you have any ideas? thx alot 4 ur reply quietdean. i really appreaciate it :P
    cheers man

  6. #6
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    Your idea about a scrollbaR at the bottom sounds promising, but not sure what you mean. Fancy explaining a bit more? We might be able to do it.
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  7. #7
    cutecutty's Avatar
    New User

    Status
    Offline
    Join Date
    Sep 2003
    Posts
    10

    Question how to make the scroll bar stay at the bottom

    hi... actually i have already explained earlier in the previous thread subject("how to make the scroll bar stay at the bottom"),but then i shall explain it again here ;P
    the page i wanted to make is :
    inside one page have two sides (left and right).on the left there will be 35 small pictures (with a scroll bar).in all the 35 small pictures, only the first picture will be in color, the others are black and white ….and when the pictures is mouse over, it turns to have color. When one of the pictures is clicked, the bigger version of the picture will appear on the right side and on the right side will also have back and next button .this button is used to go to previous picture and the next picture.

    for example: of course the first time, in the left side of the page will be the 1st small picture (picture 1)in color, the rest is in black and white; and on the right side there is a big version of picture 1 with color. and also back and next button where only the next button is working. when the next button is clicked : (on the right side) will turn the picture 1(bigger version) into picture 2 ; (on the left side) the small picture 1 turn to black and white, and small picture 2 turns to color, and the rest is in black and white.
    When I click picture 35, picture 2 (on the right) will change to picture 35 and also picture 35 (on left) will change into color.
    Because the small pictures are using scroll bar,so only picture 1-30 can be seen,we’ll have to scroll down to see picture31-35.
    Actually I have managed to use different2 page ,but because it’s different2 page, after I clicked small picture 35,it will go to picture 35.html …so the scroll bar will go up again.so it will be weird.
    So do you know how to make the bar in scroll bar will be in the bottom when we go to different page?and what is your suggestion to handle this problem?
    And another problem is,how to just change the scroll bar in some part of the page,but it wont affect the main window scroll bar.
    i'm attaching the picture of the page i want to make.so it will be easier to understand my explanation.heheh coz i know my explaination isn't so easy to understand..sorry :P

    and also by the way,i have managed to make the back button in browser will load both frames,by using replace method.and now still finding to find the way to make the forward button will load both frames..

  8. #8
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    Ah. The picture made the difference

    You could use anchor tags to link to the bottom of the page, presumable. eg

    Code:
    <a name="pic35"><img blah blah></a>
    Then have your link load the anchor address? eg

    Code:
    href="pictures.html#pic35"
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  9. #9
    cutecutty's Avatar
    New User

    Status
    Offline
    Join Date
    Sep 2003
    Posts
    10

    Thumbs up

    wow...thx alot quietdean..hahaha....i've been searching through internet for so long,and yet the answer was so easy :P.....
    i straight away try ur method....n it works ...i lov it ...ur the best quiet dean :P.
    coz i'm new in web developing,so i've never used anchor b4.and thx to u,i learn new things now.... heheh i know it sounds funny 2 u....heheheh but i really2 appreciate what u've done...thx alot "AGAIN" HEHEHE...

  10. #10
    cutecutty's Avatar
    New User

    Status
    Offline
    Join Date
    Sep 2003
    Posts
    10

    Angry trouble ...

    hi... i found 2 problems after using the anchor:
    1. if the window is minimize then it will have a scroll bar in the window,so if i click pic35(small) and since i used anchor on pic 35(small),the whole page will go down,and that's not what it suppose to be.it suppose to be only the page inside the layer should go down.
    2.after i click pic35(small),it will make the scroll bar at the bottom rite?and it also link to resort35.htm.since i make anchor only on pic31-35, if i click pic 24 or others bside pic31-35, the scroll bar will back to up where in resort35.htm the scroll bar is at the bottom already,so it wont look nice .
    i dont think anchor can be used in doing this page. so what do u think?
    before i used anchor method,i used the link to 2 page method.and it work and i also managed to make the back button on the browser to go back to frameset by using the replace method.but i dunno how to make the forward button on the browser will go forward to the frameset,after i clicked the back button.
    could u help me on this pls.... :P
    thx again

  11. #11
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    your problems all arise from using frames. try redisigning so you dont have to rely on them.
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  12. #12
    cutecutty's Avatar
    New User

    Status
    Offline
    Join Date
    Sep 2003
    Posts
    10
    which is why i use different2 page(so i dont use any frames).but the problem of using that method is,if i click small pic31-35,the scroll bar goes to the top again.
    and i have mentioned it before,where u suggested to use anchor,and it works well but still causing troubles which is: when we click pic31-35 it will go to resort31-35.htm,if the window is minimized,the page will go down also.not only the scroll bar on the left.
    and also if i already in page resort31-35.htm(where the scroll bar is at the bottom),when i click the small pic1-31,the scroll bar is at the top,so it will look funny.
    so that comes to my conclusion,where i can use 2 frames(left and right) to avoid the scroll bar problem,but the forward button in the browser is the problem.i already manage to make the back button on the browser will open 2 frames together,but dunno how to make the forward button will open 2 frames together.
    do you have any suggestion?
    thx



Tags for this Thread