Results 1 to 12 of 12
09-19-2003, 11:33 AM #1
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....
09-19-2003, 11:51 AM #2
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.
09-21-2003, 11:42 AM #3
how to go back to previous page?
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
09-21-2003, 12:47 PM #4
i dont think you will get that to work. The only answer is to not use frames.
09-22-2003, 12:44 PM #5
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
09-22-2003, 05:39 PM #6
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.
09-23-2003, 12:12 PM #7
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..
09-23-2003, 12:23 PM #8
Ah. The picture made the difference
You could use anchor tags to link to the bottom of the page, presumable. eg
<a name="pic35"><img blah blah></a>
09-23-2003, 12:44 PM #9
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...
09-28-2003, 11:50 AM #10
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
09-28-2003, 12:49 PM #11
your problems all arise from using frames. try redisigning so you dont have to rely on them.
09-29-2003, 09:52 AM #12
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?