|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools |
Rating:
|
Display Modes |
|
|
|
#1
|
||||
|
||||
|
HTML/Website Help
I am just learning how to use HTML to make a website, an this is what I have so far: http://www.team3167.webs.com
I have one problem, every time the home link is clicked, a new red bar with the FIRST logo appears. Does anyone have any ideas on why this is happening? I'll attach the code as soon as I save it to notepad. Thanks in advance for your help! Last edited by nitneylion452 : 08-04-2010 at 21:49. Reason: Attaching Files |
|
#2
|
||||
|
||||
|
Re: HTML/Website Help
Welcome to the world of HTML. I can't replicate the problem, but it is probably because you are using frames. Frames are an older technology in the web world and really shouldn't be used anymore. The new HTML5 standard doesn't even support them.
If you use DIVs and style them with stylesheets you should be able to get the same effect. Let us know if you have any questions. |
|
#3
|
|||||
|
|||||
|
Re: HTML/Website Help
I can't reproduce it either.
What browser (and version) are you using? |
|
#4
|
||||
|
||||
|
Re: HTML/Website Help
I couldn't reproduce the error with Firefox but this code might explain the red.
Code:
<frame noresize="noresize" style="background-color:red" src="http://www.iolani.honolulu.hi.us/robotics/newweb/allimg/home/first_logo_1.jpg" width="10%" height="100%""> <frame noresize="noresize" src="home.htm"> Try taking the "background-color:red" out and see if that solves the problem. |
|
#5
|
||||
|
||||
|
Re: HTML/Website Help
I had since originally posting edited the code, which fixed the error to the new bar would come up only after going to a different page, then clicking home. I just changed the code back to exactly how it was before, so you may be able to reproduce the problem now. I've used IE 6, IE 7, IE 8, Firefox 3.5.9, and Firefox 3.6.
|
|
#6
|
|||||
|
|||||
|
Re: HTML/Website Help
You might want to play around with this:
http://www.w3schools.com/tags/att_a_target.asp Also, this is how I see the site from Google Chrome (it's fine for other browsers): http://team964.com/misc/imgs/team3167.png |
|
#7
|
||||
|
||||
|
Re: HTML/Website Help
Those nav links open in the same frame, so the "Home" link is opening index.htm within that frame. But index.htm contains multiple frames, so you're opening a page with frames inside a frame.
I'd either look at the target attribute as synth3tk suggested, or just change the home link to "home.htm" instead of "index.htm". I'd also avoid using anything but another HTML page for the frame content (namely, in the top frame). Also, remember that using frames means users can't bookmark individual frames on the site. At the same time, you can't prevent people from going directly to one of the pages (e.g. http://www.team3167.webs.com/About_3167.htm) in which case they won't see the top frame at all. Last edited by Dan Zollman : 11-04-2010 at 16:12. |
|
#8
|
|||||
|
|||||
|
Re: HTML/Website Help
Quote:
Sorry if it sounds harsh, but using frames to build modern websites is like designing a car to run off of a steam engine. Yes, it'll work, but there's a very good reason why the production of steam-powered cars was abandoned (it's very inefficient). Frames will technically work to make websites, but they have so many problems and require so many awful "hacks" just to make them work somewhat decently, that the practice of using them to make websites has been officially abandoned. * Small amounts of iframes (they're different from frames) are acceptable when used sparingly. I've used small iframes to do Gmail-style AJAX file upload before. |
|
#9
|
||||
|
||||
|
Re: HTML/Website Help
Quote:
Thanks everyone for your suggestions! |
|
#10
|
|||||
|
|||||
|
Re: HTML/Website Help
If you really want to get advanced, you could do this with PHP (assuming you're using PHP instead of straight HTML).
Create a file named "header.php", then use a php include to pull that "header.php" in every page (you've got to put the code on each page). The benefit is obvious: make changes to header.php, and it changes on every page that calls it, across the site. Another benefit is that you won't run into pesky frame issues. But I don't know what you're using to edit/publish this site, so the above may not work for you. |
|
#11
|
||||
|
||||
|
Re: HTML/Website Help
Quote:
|
|
#12
|
||||
|
||||
|
Re: HTML/Website Help
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Website Help | Elvenage | Website Design/Showcase | 0 | 06-02-2009 16:45 |
| HTML Help Thread | Compnerd | Website Design/Showcase | 1 | 13-02-2007 18:33 |
| Website Help | Dan50 | IT / Communications | 3 | 25-01-2006 07:00 |
| Help with HTML | LBK Rules | CD Forum Support | 3 | 03-02-2003 12:38 |