»
 

Go Back   ResellerRatings Store Ratings > ResellerRatings Forums > Tech Support

Reply
 
LinkBack Thread Tools Display Modes
Old 07-23-2003, 01:47 AM   #1 (permalink)
Registered User
 
Join Date: Mar 2003
Posts: 407
pinoy87 is on a distinguished road
floating border

I would like to make a sort of floating border for the top and bottom of a page in my site but I dont know how. If anyone has been on the klipsch site the part Im talking about is where they have links to home, shop, products, listening lounge, forum dealer locator, help center, newscenter and at the bottom where they have search, unauthorized dealer, terms and conditions. This is exactly what I would like to do.

Does anyone know how to do this?

If so, could you please tell me how step by step or point me to a tutorial.

Thanks.

pinoy87 is offline   Reply With Quote
Old 07-23-2003, 02:02 AM   #2 (permalink)
RicheemxX
Guest
 
Posts: n/a
thats not a floating border its an attached frameset using java basically its the same as attaching the background on your pages everything just appears to float. I'm not 100% but I think that the right code.



<head>
<title> </title>
<SCRIPT LANGUAGE="JavaScript">
<!--

var ar0 = "header.html";
var ar1 = "main.asp";
var ar2 = "footer.html";

var str = location.search;
var pos = str.indexOf("&");
if (pos != -1) {
var num = str.substring(pos + 1, str.length);
window["ar1"] = "http://www.anything.com?";
}

// -->
</SCRIPT>


</head>

<SCRIPT LANGUAGE="JavaScript">
<!--

document.write(
'<frameset rows="30,*,40" framespacing="0" border="0" frameborder="NO">',
'<frame src="', ar0, '" name="header" scrolling="NO" noresize>',
'<frame src="', ar1, '" name="main" noresize>',
'<frame src="', ar2, '" name="footer" noresize scrolling="NO">',
'</frameset>'
);

// -->
</SCRIPT>


<noframes>

<body tags can be whatever you want>
</body>

</noframes>
  Reply With Quote
Old 07-23-2003, 02:08 AM   #3 (permalink)
Registered User
 
Join Date: Mar 2003
Posts: 407
pinoy87 is on a distinguished road
so how would I go about adding this to a page?

Sorry but I dont know much about javascript.
pinoy87 is offline   Reply With Quote
Old 07-23-2003, 02:14 AM   #4 (permalink)
RicheemxX
Guest
 
Posts: n/a
sorry I won't be much help there as I'm in the same boat. I do not know the first thing about building with javascript. I just spotted the code and thats about it. But there may be easier ways to do it besides using all javascript I don't really know sorry.
  Reply With Quote
Old 07-23-2003, 02:24 AM   #5 (permalink)
Registered User
 
muno's Avatar
 
Join Date: Oct 2001
Location: Finland
Posts: 3,838
muno is on a distinguished road
Send a message via Yahoo to muno
All you need is this->

<frameset rows="30,*,40" framespacing="0" border="0" frameborder="NO">
<frame src=" <filename of top frame>" name="header" scrolling="NO" noresize>
<frame src="<file name of main frame>" name="main" noresize>
<frame src="<file name of bottom frame>" name="footer" noresize scrolling="NO">
</frameset>

made index.html and add that there, then make files with filenames you'll add to the <file name here> sections of index.htmls 'frame src's.
-M

//edit: You then refer to the frames with "target" inside links. Eg.
<a href="products.html" target="main">Products</a>
muno is offline   Reply With Quote
Old 07-23-2003, 02:38 AM   #6 (permalink)
RicheemxX
Guest
 
Posts: n/a
here's the page he's talking about maybe I'm missing something http://www.klipsch.com/
going to try and make is simple pelase correct me if i'm wrong your page will look like this basic layout should anyways. But this is just the style sheet. Actually using this on your site will be more worjk than just this

<html>
</head>

<SCRIPT LANGUAGE="JavaScript">

<frameset rows="30,*,40" framespacing="0" border="0" frameborder="NO">',
<frame src="', whatever your header doc will be basically the table with links, '" name="header" scrolling="NO" noresize>

<frame src="', what your page will be, '" name="main" noresize>

<frame src="', the table you see at the bottom of the page, '" name="footer" noresize scrolling="NO">
</frameset>

</SCRIPT>


<noframes>

<body tags these are going to be font tags or whatever didn't see a real reason for them??>
</body>

</noframes>
  Reply With Quote
Old 07-23-2003, 02:47 AM   #7 (permalink)
Registered User
 
muno's Avatar
 
Join Date: Oct 2001
Location: Finland
Posts: 3,838
muno is on a distinguished road
Send a message via Yahoo to muno
There's no real need for <script>
-M
muno is offline   Reply With Quote
Old 07-23-2003, 02:48 AM   #8 (permalink)
Registered User
 
Join Date: Mar 2003
Posts: 407
pinoy87 is on a distinguished road
okay im kinda getting it but how do i make the frames?

Do I make them in a separate page or as a pic and how would I have it work for different page sizes. I think if I have a set width in the frame and someone views it at a lower resolution would I have scroll bars there.
pinoy87 is offline   Reply With Quote
Old 07-23-2003, 03:41 AM   #9 (permalink)
Registered User
 
muno's Avatar
 
Join Date: Oct 2001
Location: Finland
Posts: 3,838
muno is on a distinguished road
Send a message via Yahoo to muno
As I said, you make index.html which contains the frame configuration.
Then you make other .html pages which are called from the index.html

Eg. top.html which contains the top stuff, bottom.html which contains the bottom stuff and main.html which contains stuff that is called from the links in top and bottom frames.
-M
muno is offline   Reply With Quote
Old 07-24-2003, 01:05 PM   #10 (permalink)
Registered User
 
Join Date: Mar 2003
Posts: 407
pinoy87 is on a distinguished road
Okay finally got it. Now the problem is on the top frame I put a javascript:window.close(); as a link on a pic to close the window. But is wont work when with all the other frames but works when I just open the top frame html file. How do I make the window close javascript work with the other frames?
pinoy87 is offline   Reply With Quote
Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Most Active Discussions

Recent Discussions

All times are GMT -6. The time now is 05:09 AM.