|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Frames question.
Hey. Trying to get a horrizontal frames working. I want two windows. 1'st window i want 150 pixels wide. and the the 2st one to be under it. (150 pixel one is ontop.) My problem is. I want the frames to link to anther page, and not a HTML file. HOw do i do this? THanks.
|
|
#2
|
|||
|
|||
|
It would look something like this.... but i cant get the link to work.
PHP Code:
Right? |
|
#3
|
|||
|
|||
|
cant you just swap the .html line w/ a website????
![]() |
|
#4
|
||||
|
||||
|
well, it's been a while since I've touched a frames site so if I miss something I guess I miss it..
![]() For one, you need to name your frames. Give the top one a name and the bottom one a different name. this will be used later on so that when you click on a link that link will target which ever frame you tell it to. By targetting I mean, when a link is clicked the page will open in the frame targeted. So the page will open in the top or bottom frame. If you don't target the frame, chances are the webpage will open in a new window. Secondly, you should move the noframes tags from inside the frameset tags so that instead the noframes tags are outside the framset tags. So you should have this: Code:
<frameset>...</frameset> <noframes>...</noframes> Now, if you want to link to another page but not html, what exactly can you link to? There isn't much a browser will render alone if you don't use html. It can render text files, images and possibly other types of files. But pretty much every page will be made up of html. So I don't quite understand what you are asking for here? Could you elaborate..?
__________________
Alberta Custom Website Designs Websites for small businesses Support Forums and Freeware Tools Weekly Web News, PC News, HardWare News etc.. |
|
#5
|
|||
|
|||
|
Okay, What i want to do is have the top page part of my site w/ links. And in the bottom part of one of the pages will link to anther persons webpage. Which allows the user to return to my site when they are done.
|
|
#6
|
|||
|
|||
|
This is gonna be on the bottom.
http://bis-net.net/nwmls/search.cfm?orgID=127 |
|
#7
|
||||
|
||||
|
ok, well simply all you need to do to open another persons webpage in your frames is to target the url to your bottom frame. Just like any other url.
So for instance, if you named your frames like I suggested previously, maybe you called the top frame TOP and the bottom BOTTOM. So, what you do now is when the link is clicked on in the top frame add this to each link. target="bottom" for ex: <a href="http://bis-net.net/nwmls/search.cfm?orgID=127" tager="bottom">Link 1</a> now there are some unwritten rules. One of them is that you don't open another persons website in your frames unless you get permission. It's a long ugly debate about why you shouldn't but if you want to there's not much stopping you. Of course, any website can break out of frames using javascript.. so there is a small pitfall. Anyway, if I understood your requirements correctly, the link example above is what you want to do with each link that will open another persons website in your frame. Remembering that you MUST name your bottom frame atlest, and each link should target the bottom frame by using the name given. Incase I didn't mention it, you can give a frame a name like this: <frameset> <frame name="MyBottomFrame"> simple yes ![]() Hope that helps. |
|
#8
|
|||
|
|||
|
I've spent a little bit trying to find a site that uses frames... and frankly i cant find any. lol.
And about the unwriten rule thing.... The only way to create that MLS/IDX search thing is to request it from them. So im covered there, its ment to be posted on the realtors website. and anther thing.... The top nav bar will only be used to return to the main website. Once the user clicks the top nav button will it still use frames or will it open in a new window? The only page i want to have frames is that IDX site. Its hard to explain..... im at school ATM. Once I get home ill show you what i mean. |
|
#9
|
|||
|
|||
|
Sorry for the wait, but here it is. I just copyied and pasted the top part and the site and combined it in photoshop. I still cant figure out how to get it to work. :/
http://www.tricityhomesandrealty.com/sample.jpg |
|
#10
|
||||
|
||||
|
alright, this is what I think you want to do.
Two frames, a top and bottom one. One for navigation, one for displaying the website/webpage You want to open webpages in the bottom frame, and always have the menu in the top frame so that you can always return to your website. Here's the code you posted, but modified: Code:
<html>
<head>
<title>FrameShop Output</title>
</head>
<frameset rows="150,1000" border="0">
<frame src="your_website_main_frame_1.html"
scrolling="no" noresize name="frmtop">
<frame src="your_website_main_frame_2.html" scrolling="auto"
name="frmbottom">
</frameset>
<noframes>
Add some text here so that if frames are not supported your visitors will at least get a link to the main website, or a message why they cannot see the website.
</noframes>
</html>
Now, I am going to make a mockup version of the defualt webpage you will have for the top frame. In particualr I want you to notice the anchors(link tags) I use. This is the navigation code. Code:
Top Frame Src page: <html><title>....</title> <head></head> <body> <a href="homepage.html" target="frmbottom">Home page link</a> <a href="contactme.html" target="frmbottom">Contact us link</a> <a href="friend.html" target="frmbottom">Friends webpage link</a> </body> </html> So now you can open your homepage, contact us page and your friends webpage all in the bottom frame. Simply by using the target="bottom" command in each link. The key here is using the target="" command in each link. This will tell the browser to load each webpage into the frame that you specify. I am specifying the bottom frame by targeting it using the frames name. Which in this example is called "frmbottom". Does that make sense? |
|
#11
|
|||
|
|||
|
What's been said here is right...pay attention to naming your frames and using the target part for your links.
Lets say you have 2 frames...one is named "main" and one is named "nav". When making a link in the nav frame that you want to open in the main frame you put in something like this in the link tag <target="main"> I haven't messed with frames for a while so I'm a little rusty, but hopefully you get the idea. With frames, naming frames and targetting are key. |
|
#12
|
|||
|
|||
|
Idx/mls
If you have the IDX connection set-up you shouldn't have to build out this page in frames. You should be able to integrate the content directly into the main site without the disconnect of having to use frames. Do you have your own IDX connection set-up already? Many times this is a much cleaner way to display the data and the content is actually indexed on the client site for better SEO. If you're framing another IDX/MLS driven page in this site, you may want to consider a different option for cleaner integration. Let me know if I can help with the IDX feed, we work with many MLS's throughout the US!
Chad www.idxbroker.com Quote:
|
![]() |
| Viewing: Dev Shed Forums > Web Design > Web Design Help > Frames question. |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|