Page 1 of 1

Website help

Posted: Thu Nov 24, 2005 1:06 pm
by Unix
My band has a website that's pretty boring and unoriginal. So a friend of mine who's a Marine whipped up a little template for me and I would like to use it. The problem is he designed it on a Mac and when I try to view it in IE or Firefox it doesn't look right :( Since he's in Iraq and unable to work on fixing it, I was hoping someone here could point in the right direction. I have some HTML abilities, so if you talk slow and use small words I could probably understand :P

In the .zip file there's a picture called coldsuzy2.psd which is how the site is supposed to look for reference.

Here's the template.

Thanks in advance :)

Posted: Thu Nov 24, 2005 4:15 pm
by scottris
Well, for starters there's something strange about the file "news.html". Looks like it contains both Mac and Windows style line breaks? Don't know how that happened, but a copy/paste and resave fixed it.

The HTML looks pretty good. Frames are teh evil, but ignoring that... The scrolling is disabled on the main content frame! That's bad. Changed NO to YES in index.html. Also, there's a bunch of extra spaces in some of the alignment tags in news.html. I removed those as well, and it fixed the alignment issues.

With those minor fixes, it now looks good to me: Image

Looks good in Mozilla too. I don't have an IE immediately available to test, but the code looks correct, so it should work.

I'm re-zipping the files and uploading it here. I can dig deeper if it still doesn't work, but see of that doesn't solve the problem first.

It's a very nice design, btw!

Posted: Thu Nov 24, 2005 4:29 pm
by Unix
Thanks a ton! It looks great in Firefox, but IE is another story:

Image

The navigation links are there, but you have to scroll to see them. Weird. What's the evil thing about frames?

Posted: Thu Nov 24, 2005 4:50 pm
by scottris
Err.. Ok. I'll take another look at the code. Figures IE would find a way to screw it up. It has no respect for the web standards.

As for frames.. They're awkward when it comes to bookmarking pages, for one. Most browsers will only bookmark the frameset address, meaning anyone returning via a bookmark will always find themselves starting at the same page (whichever is defined in the frameset) instead of the page they were looking at when they bookmarked it. Furthermore, frames can make printing the proper pages difficult. Frames also make hyperlinks more complicated, because you have to keep track not only of the page url you're linking too, but also which frame you're targeting. It's a common mistake, for example, to link to another site without targeting the entire window, resulting in the new site being shown inside your frameset. Some browsers handle these issues better than others. But there is the potential for some confusion, especially among less-computer-savy web users (i.e. almost all of them :P).

None of these issues are insurmountable, though. If you're careful and use frames properly, they're really not too bad. I confess, I've used frames in some of my designs in the past. But I try to avoid them whenever possible. And it's almost always possible.

Posted: Thu Nov 24, 2005 4:58 pm
by scottris
Ok, the biggest issue mucking up your design in IE is that IE considers whitespace characters to have height. Many of the horizontal bars in that design are created with table cells containing a spacer image. Problem is, as IE sees it, those cells also contain a text character (spaces/newlines). To fix this, you must remove all the whitespace characters (spaces and newlines) from within the TD tags, such that this:

Code: Select all

		<td height="1" bgcolor="#666666">
			<img src="images/spacer.gif" height="1" width="1">
		</td>
becomes this:

Code: Select all

		<td height="1" bgcolor="#666666"><img src="images/spacer.gif" height="1" width="1"></td>
Yes, it's a PITA because it screws up the formatting of the code. But that's the way it's gotta be if you care about IE.

Posted: Thu Nov 24, 2005 5:01 pm
by Unix
thx, I'm on it.

Posted: Thu Nov 24, 2005 5:04 pm
by scottris
Also, in news.html, there are a number of <tr> tags that should be </tr> tags. These could confuse some browsers. Lines 85, 90, 95, 100, and 105 are wrong. (Those numbers are prior to removing the spaces and line breaks as I suggested previously.)

edit: this code block is what I'm looking at:
Image

Posted: Thu Nov 24, 2005 5:16 pm
by scottris
In nav.html:

This block

Code: Select all

<a href="news.html" ... target="mainframe">the pics</a>
Should either be surrounded by <p> or <div> tags, or incorporated into the Table. See, the <a> tags are inline elements, not block level. Technically according to the web specs (I think) text like this should never exist outside all block level elements. Alternately, I think you could fix the IE issues by simply putting a single <br> tag prior to the first <a>. I think that will fix it, but I don't think it will be "proper" html.

Posted: Thu Nov 24, 2005 7:12 pm
by Unix
Wow! That was really easy. Thanks a lot, Scott.

Now, I just have to get the content from the site and plug it in. :)

edit: Just a quick question that you might know. Under the part where it says "Test Text" I want to put a player that will stream music. Similiar to the musicmyspace player. I see that's it's flash, but would it be difficult to put a player there?

Posted: Thu Nov 24, 2005 7:19 pm
by Unix
http://musicplayer.sourceforge.net/

This one looks like it would work pretty cool. How do I stick on that page?

Posted: Thu Nov 24, 2005 7:48 pm
by scottris
It's not unlike including an image with an <img> tag. Yes, the tag(s) are more complicated, but the principle is similar. Just stick a block of code like this:

Code: Select all

<object classid="
... (edit: ack! too big) ...
</object>
in place of the Test Text.

I'm not sure if they intend you to use the swf file off their site, or upload it to your own but either way works, technically.

One problem however, the slim version looks most appropriate for your site, but it's 400 pixels wide. The bar on your site with the Test Text is only 300 pixels wide. It should be fairly trivial to modify the Flash movie to make it 300 pixels instead (they provide the FLA source file for download, nice of them) but it would require Flash to edit. I have Flash MX (Flash 6), but I'm not sure if that's new enough.

Edit: had to remove that big code block. Made the page much too wide. Anyway, I found this page with instructions and example code.

Posted: Thu Nov 24, 2005 8:18 pm
by Unix
Awesome. It actually seems easier than I thought. I have some version of flash, so I'll give it a shot, but I'll let you know if I can't make it happen.

Thanks again scott.

Posted: Thu Nov 24, 2005 9:14 pm
by Unix
http://coldsuzy.com/news.html

How do I get the text part to scroll instead of shooting down and making the page huge?

Posted: Thu Nov 24, 2005 9:40 pm
by scottris
2 ways; First the simplest, since it doesn't require a separate document:

Inside your <td> tag, surround all the text with a <div> tag. Set it's style properties like so:

Code: Select all

<div style="height: 300; overflow: auto">
Set 300 to whatever height you want.

This is easy and probably the way the W3 would prefer you do it. It also has the advantage of failing gracefully if it's unsupported by the browser. The page would just behave as it does now. You may find though that this method doesn't work on as many browsers as..

Method 2: The IFrame. Insert into your <td> an <iframe>. Put the text in a seperate html document, and point the iframe to that. This will work with older browsers, but it has all the disadvantages of frames.

Posted: Thu Nov 24, 2005 9:50 pm
by scottris
Although, in all honesty, I would choose to have the whole page scroll as it does now. Having a piece of the page scroll can be inconvenient, because you wind up having to scroll a page within a scrolling page if your browser isn't tall enough to fit the fixed height text field. This can get messy. It wouldn't be so bad if there was a way to make the scrollable text area size to the browser window height, but unfortunately, I don't know of a reliable cross-browser method to do that. I can sort of get the iframe to behaving like that in mozilla, but not konqueror. Then there's IE.. :/

I think the design works fine with the page as you have it now.

Posted: Thu Nov 24, 2005 9:56 pm
by scottris
Actually, a better solution, if you really want to scroll just that text area, would probably be to replace the table layout with a more complicated frameset layout. Using a frameset, you could get the page to scale to fit the browser windows height, and allow the text to scroll within that.

Well, I say better.. but that's debateable. It would make better use of the browser window space, and avoid scroll within scroll problems.. but it has all the disadvantages of frames. And.. it'll be a PITA to code, since it would require many more separate html documents. :|

edit: Here's the problem I'm trying to describe: Image

Posted: Thu Nov 24, 2005 9:59 pm
by Unix
I think what I'll do is just have a page with older news on it. I'll just have the last 4 or 5 updates on that part. Although I might run into this problem on other pages....

Posted: Fri Nov 25, 2005 9:57 am
by Unix
I see what you mean...hrm. I don't think I have the time to invest in creating all those pages :)

I do have another question though. The links on the nav.html aren't set up correctly. What I mean is when you have the site running and click from the news page to the band.html page it opens in another window and is missing the navigation bar. I figured out how to make it open on the instance of the browser, but it's really not how frames is supposed to work right?

http://www.coldsuzy.com/NewSite/index.html

see what I mean? the nav bar disappears when you go to the band page.

Posted: Fri Nov 25, 2005 11:54 am
by TheCope
ya'll be doing pixies covers.
;-0

Posted: Fri Nov 25, 2005 11:59 am
by Unix
Yeah, we used to play Where Is My Mind all the damn time. It's a good song, granted, but my guitarist had a hard on for the ★■◆●ing little riff in there. He's like, "this is the best riff ever, and it's so damn easy" :)

Posted: Fri Nov 25, 2005 12:22 pm
by Unix
NM, fixed.

Thx Dcrazy.

Posted: Sun Nov 27, 2005 1:06 pm
by Unix
Okay, one more problem.

I'm using a cool little flash mp3 player on the home page: http://www.coldsuzy.com

It has the ability to have multiple playlists, but I haven't been able to figure out how to do that.

Here's the player I'm using:

http://www.jeroenwijering.com/?item=Flash+Mp3+Player

And here's what it says in the readme about mulitiple playlists:
readme wrote:VARIABLE

there is one variable you can set in html: the location of the playlist. this is
handy if you want to use multiple playlists for the mp3player. suppose you have a
file called "alternate.xml", the code will be this:

<object type="application/x-shockwave-flash" data="mp3player.swf?playlist=alternate.xml"
width="280" height="280" wmode="transparent">
<param name="movie" value="mp3player.swf?playlist=alternate.xml" />
<param name="wmode" value="transparent" />
</object>

Posted: Sun Nov 27, 2005 2:01 pm
by scottris
From what I can see...

The player will load whatever playlist you define in the <object> tag. I wouldn't exactly call this "multiple playlists" myself. It's a single playlist, just defined by a variable in the HTML.

You can have multiple playlists by creating multiple HTML pages, each with a different list defined in the <object> tag.

Or, you can set up a script to select from a list of playlists and insert the chosen list in the <object> tag. This could be done with a client-side scripting languages like JavaScript or a server-side language like PHP, ASP, or Perl. I highly recommend the server-side approach, because it's browser-independent; It does depend however, on what your server supports. A PHP example is provided here.

Posted: Sun Nov 27, 2005 5:54 pm
by Unix
Okay, but can I make the playlists linkable so that someone browsing the site could choose on their own what list of songs to play?

For instance, "Demos" would play unfinished songs, "Live" would play, duh, live songs. Etc.

Posted: Sun Nov 27, 2005 6:52 pm
by scottris
Certainly. That's demonstrated in the PHP example I linked to above.

I'd recommend using PHP if your server supports it.

Posted: Sun Nov 27, 2005 8:50 pm
by Unix
We're good now :)