Go to Post I can't help but notice during the building sequence, there were a whole lot of student hands working on that robot. Just sayin'. - Taylor [more]
Home
Go Back   Chief Delphi > Technical > IT / Communications > Website Design/Showcase
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 08-04-2010, 21:46
nitneylion452's Avatar
nitneylion452 nitneylion452 is offline
Registered User
AKA: Joe Lee
FRC #3167 (Environmental Tectonics Crusaders)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Philadelphia, PA
Posts: 596
nitneylion452 has much to be proud ofnitneylion452 has much to be proud ofnitneylion452 has much to be proud ofnitneylion452 has much to be proud ofnitneylion452 has much to be proud ofnitneylion452 has much to be proud ofnitneylion452 has much to be proud ofnitneylion452 has much to be proud of
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!
Attached Files
File Type: txt home.txt (1.3 KB, 38 views)
File Type: txt index.txt (280 Bytes, 27 views)

Last edited by nitneylion452 : 08-04-2010 at 21:49. Reason: Attaching Files
  #2   Spotlight this post!  
Unread 08-04-2010, 22:13
dk5sm5luigi's Avatar
dk5sm5luigi dk5sm5luigi is offline
Registered User
AKA: Nick Galotti
FRC #1735 (Green Reapers)
Team Role: Mentor
 
Join Date: Nov 2001
Rookie Year: 1997
Location: Worcester
Posts: 291
dk5sm5luigi has much to be proud ofdk5sm5luigi has much to be proud ofdk5sm5luigi has much to be proud ofdk5sm5luigi has much to be proud ofdk5sm5luigi has much to be proud ofdk5sm5luigi has much to be proud ofdk5sm5luigi has much to be proud ofdk5sm5luigi has much to be proud ofdk5sm5luigi has much to be proud ofdk5sm5luigi has much to be proud of
Send a message via AIM to dk5sm5luigi
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.
__________________
Team 1735 Green Reapers: 2005-Present
Team 190 Gompei: 2001-2005
Team 155 Technonuts: 1997-2001
http://www.first-a-holics.com/
http://www.findrobotparts.com/
  #3   Spotlight this post!  
Unread 08-04-2010, 22:53
synth3tk's Avatar
synth3tk synth3tk is offline
Volunteer / The Blue Alliance
AKA: David Thomas
no team
Team Role: Alumni
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Ohio
Posts: 2,005
synth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond repute
Re: HTML/Website Help

I can't reproduce it either.

What browser (and version) are you using?
  #4   Spotlight this post!  
Unread 08-04-2010, 23:14
PriyankP's Avatar
PriyankP PriyankP is offline
Registered User
FRC #0188 (Woburn Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Toronto, Canada
Posts: 87
PriyankP has much to be proud ofPriyankP has much to be proud ofPriyankP has much to be proud ofPriyankP has much to be proud ofPriyankP has much to be proud ofPriyankP has much to be proud ofPriyankP has much to be proud ofPriyankP has much to be proud ofPriyankP has much to be proud of
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.
__________________
Champs Schedule Highlighter App [CD Thread]

#### XYZ Regional Finalists
  #5   Spotlight this post!  
Unread 11-04-2010, 13:27
nitneylion452's Avatar
nitneylion452 nitneylion452 is offline
Registered User
AKA: Joe Lee
FRC #3167 (Environmental Tectonics Crusaders)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Philadelphia, PA
Posts: 596
nitneylion452 has much to be proud ofnitneylion452 has much to be proud ofnitneylion452 has much to be proud ofnitneylion452 has much to be proud ofnitneylion452 has much to be proud ofnitneylion452 has much to be proud ofnitneylion452 has much to be proud ofnitneylion452 has much to be proud of
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   Spotlight this post!  
Unread 11-04-2010, 14:03
synth3tk's Avatar
synth3tk synth3tk is offline
Volunteer / The Blue Alliance
AKA: David Thomas
no team
Team Role: Alumni
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Ohio
Posts: 2,005
synth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond repute
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   Spotlight this post!  
Unread 11-04-2010, 16:09
Dan Zollman's Avatar
Dan Zollman Dan Zollman is offline
7
FRC #1712 (Dawgma)
Team Role: Alumni
 
Join Date: May 2005
Rookie Year: 2005
Location: Ardmore, PA
Posts: 392
Dan Zollman has a reputation beyond reputeDan Zollman has a reputation beyond reputeDan Zollman has a reputation beyond reputeDan Zollman has a reputation beyond reputeDan Zollman has a reputation beyond reputeDan Zollman has a reputation beyond reputeDan Zollman has a reputation beyond reputeDan Zollman has a reputation beyond reputeDan Zollman has a reputation beyond reputeDan Zollman has a reputation beyond reputeDan Zollman has a reputation beyond repute
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.
__________________
Product design student at Rensselaer
Web designer/consultant
FIRST alum, Dawgma 1712

dan.zollman - at - gmail.com

Last edited by Dan Zollman : 11-04-2010 at 16:12.
  #8   Spotlight this post!  
Unread 11-04-2010, 21:28
artdutra04's Avatar
artdutra04 artdutra04 is offline
VEX Robotics Engineer
AKA: Arthur Dutra IV; NERD #18
FRC #0148 (Robowranglers)
Team Role: Engineer
 
Join Date: Mar 2005
Rookie Year: 2002
Location: Greenville, TX
Posts: 3,078
artdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond repute
Re: HTML/Website Help

Quote:
Originally Posted by nitneylion452 View Post
Is there a way to make code only run once? I know some java and I know that you can use if-else statements to skip code if something is or is not true. Is there something in HTML that allows me to say something like if the frame is being displayed, do not redisplay it?
The first rule of post-1990s web development is don't use frames. The second rule is don't use frames.*

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.
__________________
Art Dutra IV
Robotics Engineer, VEX Robotics, Inc., a subsidiary of Innovation First International (IFI)
Robowranglers Team 148 | GUS Robotics Team 228 (Alumni) | Rho Beta Epsilon (Alumni) | @arthurdutra

世上无难事,只怕有心人.
  #9   Spotlight this post!  
Unread 11-04-2010, 21:35
nitneylion452's Avatar
nitneylion452 nitneylion452 is offline
Registered User
AKA: Joe Lee
FRC #3167 (Environmental Tectonics Crusaders)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Philadelphia, PA
Posts: 596
nitneylion452 has much to be proud ofnitneylion452 has much to be proud ofnitneylion452 has much to be proud ofnitneylion452 has much to be proud ofnitneylion452 has much to be proud ofnitneylion452 has much to be proud ofnitneylion452 has much to be proud ofnitneylion452 has much to be proud of
Re: HTML/Website Help

Quote:
Originally Posted by artdutra04 View Post
The first rule of post-1990s web development is don't use frames. The second rule is don't use frames.*

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.
I used frames for one reason and one reason only: That's what was in the W3C schools tutorial. I got a similar effect on the site now by adding the images to the top before the nav bar and using aligning and page percentages. I think it looks better now than it did before.

Thanks everyone for your suggestions!
  #10   Spotlight this post!  
Unread 11-04-2010, 22:47
synth3tk's Avatar
synth3tk synth3tk is offline
Volunteer / The Blue Alliance
AKA: David Thomas
no team
Team Role: Alumni
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Ohio
Posts: 2,005
synth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond reputesynth3tk has a reputation beyond repute
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   Spotlight this post!  
Unread 12-04-2010, 10:35
Dan Zollman's Avatar
Dan Zollman Dan Zollman is offline
7
FRC #1712 (Dawgma)
Team Role: Alumni
 
Join Date: May 2005
Rookie Year: 2005
Location: Ardmore, PA
Posts: 392
Dan Zollman has a reputation beyond reputeDan Zollman has a reputation beyond reputeDan Zollman has a reputation beyond reputeDan Zollman has a reputation beyond reputeDan Zollman has a reputation beyond reputeDan Zollman has a reputation beyond reputeDan Zollman has a reputation beyond reputeDan Zollman has a reputation beyond reputeDan Zollman has a reputation beyond reputeDan Zollman has a reputation beyond reputeDan Zollman has a reputation beyond repute
Re: HTML/Website Help

Quote:
Originally Posted by nitneylion452 View Post
I used frames for one reason and one reason only: That's what was in the W3C schools tutorial. I got a similar effect on the site now by adding the images to the top before the nav bar and using aligning and page percentages. I think it looks better now than it did before.

Thanks everyone for your suggestions!
Yeah, frames aren't a great idea for layout, but they're worth learning since they're still used in many web apps (often invisibly). The key with what you were trying to do is to be precise with your links.
__________________
Product design student at Rensselaer
Web designer/consultant
FIRST alum, Dawgma 1712

dan.zollman - at - gmail.com
  #12   Spotlight this post!  
Unread 12-04-2010, 18:36
nitneylion452's Avatar
nitneylion452 nitneylion452 is offline
Registered User
AKA: Joe Lee
FRC #3167 (Environmental Tectonics Crusaders)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Philadelphia, PA
Posts: 596
nitneylion452 has much to be proud ofnitneylion452 has much to be proud ofnitneylion452 has much to be proud ofnitneylion452 has much to be proud ofnitneylion452 has much to be proud ofnitneylion452 has much to be proud ofnitneylion452 has much to be proud ofnitneylion452 has much to be proud of
Re: HTML/Website Help

Quote:
Originally Posted by synth3tk View Post
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.
I'm using webs.com to host and edit the site. The only files they allow when creating a page are .htm and .html files.
  #13   Spotlight this post!  
Unread 27-04-2010, 17:51
nitneylion452's Avatar
nitneylion452 nitneylion452 is offline
Registered User
AKA: Joe Lee
FRC #3167 (Environmental Tectonics Crusaders)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Philadelphia, PA
Posts: 596
nitneylion452 has much to be proud ofnitneylion452 has much to be proud ofnitneylion452 has much to be proud ofnitneylion452 has much to be proud ofnitneylion452 has much to be proud ofnitneylion452 has much to be proud ofnitneylion452 has much to be proud ofnitneylion452 has much to be proud of
Re: HTML/Website Help

I'm back with a new problem and figured that it would be best to just continue this thread, rather than start a new one.

I made the website and have the basic layout set up as far as a header, body, and footer. The website looks exactly how I want it to look in Mozilla Firefox, but in Internet Explorer 6,7, and 8, it looks terrible. If you use IE, take a look at what I mean http://www.team3167.webs.com If you could, can anyone look at the HTML and give a possible explanation as to why it appear as it does? (For people using browsers other than IE or Mozilla Firefox, it would be greatly appreciated if you could tell me what the website appears like by possibly including a picture.)

Thank you in advance for your help!
Attached Thumbnails
Click image for larger version

Name:	IE Website appearance.jpg
Views:	20
Size:	121.0 KB
ID:	9065  Click image for larger version

Name:	IE Website bottom.jpg
Views:	15
Size:	128.7 KB
ID:	9066  Click image for larger version

Name:	Firefox Webside good.jpg
Views:	18
Size:	138.2 KB
ID:	9067  Click image for larger version

Name:	Firefox Website bottom.jpg
Views:	19
Size:	145.3 KB
ID:	9068  

Last edited by nitneylion452 : 27-04-2010 at 18:01. Reason: Adding Images
  #14   Spotlight this post!  
Unread 27-04-2010, 18:50
1986titans's Avatar
1986titans 1986titans is offline
1986: It's a team #, not a year.
AKA: Paul Shackelford
FRC #1986 (Team Titanium)
Team Role: Alumni
 
Join Date: Feb 2009
Rookie Year: 2009
Location: Manhattan, KS / LSMO
Posts: 228
1986titans has a brilliant future1986titans has a brilliant future1986titans has a brilliant future1986titans has a brilliant future1986titans has a brilliant future1986titans has a brilliant future1986titans has a brilliant future1986titans has a brilliant future1986titans has a brilliant future1986titans has a brilliant future1986titans has a brilliant future
Re: HTML/Website Help

It looks like that in Firefox too, at least on Ubuntu.

This seems to be the culprit:
Code:
<img src="http://www.iolani.honolulu.hi.us/robotics/newweb/allimg/home/first_logo_1.jpg" height="90%" width="90%" align="center">
That would mean that it's taking up 90% of the page vertically and horizontally. Use pixel values ("100px" etc.) instead as it wouldn't change with window size/screen resolution.
__________________
Paul Shackelford - http://www.archkc.com/
Kansas State University - Electrical Engineering '15
Team Titanium - Lee's Summit West HS - FRC 1986 - Student [2009-2011] - Captain [2011] - College Mentor [2012]


Last edited by 1986titans : 27-04-2010 at 19:12. Reason: Fixing code, I was in a hurry the first time through.
  #15   Spotlight this post!  
Unread 27-04-2010, 21:15
gloomy_lion's Avatar
gloomy_lion gloomy_lion is offline
Registered User
FRC #2199 (Robo-Lions)
Team Role: Webmaster
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Maryland
Posts: 10
gloomy_lion is an unknown quantity at this point
Re: HTML/Website Help

I recommend getting your HTML valid before going on. Firefox can be pretty forgiving when it comes to misplacing tags and not closing elements, but IE requires you to be really careful with your coding.

http://validator.w3.org/

Personally, I think the problem is being caused by the following code:
Code:
</head>
<div id="container">
<a href="http://www.usfirst.org" target="_blank"> <img src="http://www.iolani.honolulu.hi.us/robotics/newweb/allimg/home/first_logo_1.jpg" border="0" width="10%" height="10%"></a>
<a href="http://www.comcast.com" target="_blank"> <img src="http://gothampr.files.wordpress.com/2009/12/comcast_logo.jpg" border="0" width="15%" height="10%" align="right" image-align="top"></a>
<a href="http://www.etcusa.com" target="_blank" > <img src="http://etcusa.com/img/logo.gif" border="0" width="20%" height="10%" align="right"></a>
<style type="text/css">
<!--

#navbar ul {
    margin: 0;
    padding: 5px;
    list-style-type: none;
    text-align: center;
    background-color: #000;
    }

#navbar ul li {  
    display: inline;
    }

#navbar ul li a {
    text-decoration: none;
    padding: .2em 1em;
    color: #fff;
    background-color: #000;
    }

#navbar ul li a:hover {
    color: #000;
    background-color: #fff;
    }

-->
</style>
</head>
<div id="body">
<body>
You enclose your links and your styles between two </head> tags. Get rid of the first </head> tag, and hopefully you'll be on the right track. You also include a <div> element outside of the <body> tags, which is probably also why IE is giving you grief. Just be careful to keep your code valid and your troubles with cross-browser compatibility should be somewhat lessened .
__________________
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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


All times are GMT -5. The time now is 08:33.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi