PoD Redesign Contest
Moderator: Moderators
-
bicostp
- Moderator
- Posts: 10491
- Joined: Mon Mar 07, 2005 5:47 pm
- Steam ID: bicostp
- Location: Spamalot
- Contact:
Okay folks the new shiny version is up! It's not on PoD yet, but at least it's a functional demo page.
http://bicostp.portablesofdoom.org/sandbox/shinypod
I know it kinda glitches in IE 6. Not much I can do about that unless someone else knows how to rewrite the css so it works right and looks the same. (And of course the logo gets a light blue box because IE6 is too dumb to render png transparency properly... Grrr...)
How's this? If you like it I'll start working on the different color CSS files.
http://bicostp.portablesofdoom.org/sandbox/shinypod
I know it kinda glitches in IE 6. Not much I can do about that unless someone else knows how to rewrite the css so it works right and looks the same. (And of course the logo gets a light blue box because IE6 is too dumb to render png transparency properly... Grrr...)
How's this? If you like it I'll start working on the different color CSS files.
Twitter
http://www.pcwgaming.com" onclick="window.open(this.href);return false;
If you want a Dropbox account, please use my referral link
http://www.pcwgaming.com" onclick="window.open(this.href);return false;
If you want a Dropbox account, please use my referral link
-
bicostp
- Moderator
- Posts: 10491
- Joined: Mon Mar 07, 2005 5:47 pm
- Steam ID: bicostp
- Location: Spamalot
- Contact:
Well it apparently renders properly in IE7, and since Microsoft stuffed it down the throat of everyone who runs Automatic Updates there should be less of a problem.
The problem with JPEGs on images like the logo is that in order to get a decent looking picture you have to jack up the quality, which makes the file big. I could do what you suggested using PNGs instead, but that would suck up more bandwidth. (As though that's a problem since nobody ever looks things up on PoD anyways...
)
How about a script that loads a GIF version of the logo instead of the PNG if you're viewing the page with IE 6? You'd lose the nice transparency effect but it would look better.
The problem with JPEGs on images like the logo is that in order to get a decent looking picture you have to jack up the quality, which makes the file big. I could do what you suggested using PNGs instead, but that would suck up more bandwidth. (As though that's a problem since nobody ever looks things up on PoD anyways...
How about a script that loads a GIF version of the logo instead of the PNG if you're viewing the page with IE 6? You'd lose the nice transparency effect but it would look better.
Twitter
http://www.pcwgaming.com" onclick="window.open(this.href);return false;
If you want a Dropbox account, please use my referral link
http://www.pcwgaming.com" onclick="window.open(this.href);return false;
If you want a Dropbox account, please use my referral link
-
gannon
- Moderator
- Posts: 6974
- Joined: Sun Apr 04, 2004 4:48 pm
- Location: Near that one big lake
- Contact:
Aren't there transparancy fixes for IE using css/javascript (.htc files or something..)
Edit: yeah, http://webfx.eae.net/dhtml/pngbehavior/pngbehavior.html
Edit: yeah, http://webfx.eae.net/dhtml/pngbehavior/pngbehavior.html
-
bicostp
- Moderator
- Posts: 10491
- Joined: Mon Mar 07, 2005 5:47 pm
- Steam ID: bicostp
- Location: Spamalot
- Contact:
Fixed one issue with the script... still having a problem though.
Hmm... I'm trying to use Javascript to choose between using the filter and directly calling the .png file, but this script isn't working.
This should run the image through the filter on IE, or use the image directly under any other browser. So far it loads the .png in Firefox, but IE gives me a broken image box the size of the logo. What's wrong?
( /me is unfamiliar with Javascript)
EDIT: Stomped a pretty major bug that caused the navigation bar to spaz out in IE:

Now at least that part renders the same in both browsers.
Hmm... I'm trying to use Javascript to choose between using the filter and directly calling the .png file, but this script isn't working.
Code: Select all
<script type="text/javascript">
var logo2;
var browser=navigator.appName;
if ((browser=="Microsoft Internet Explorer"))
{var logo2 = '<img class=logo src="dummy.gif" style="width: 317px; height: 118px; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'\homedata\images\logo.png\', sizingMethod=\'scale\')" />'}
else
{var logo2 = '<img class="logo" src="homedata/images/logo.png">'}
document.write( logo2 );
</script>( /me is unfamiliar with Javascript)
EDIT: Stomped a pretty major bug that caused the navigation bar to spaz out in IE:

Now at least that part renders the same in both browsers.
Twitter
http://www.pcwgaming.com" onclick="window.open(this.href);return false;
If you want a Dropbox account, please use my referral link
http://www.pcwgaming.com" onclick="window.open(this.href);return false;
If you want a Dropbox account, please use my referral link
-
bicostp
- Moderator
- Posts: 10491
- Joined: Mon Mar 07, 2005 5:47 pm
- Steam ID: bicostp
- Location: Spamalot
- Contact:
Come on, at least one of you must know Javascript! 
There's a syntax error in there somewhere... where is it? (I just BS-ed some code together, honestly I have no knowledge of JS.) This is the last step in getting the logo to look right on IE.
There's a syntax error in there somewhere... where is it? (I just BS-ed some code together, honestly I have no knowledge of JS.) This is the last step in getting the logo to look right on IE.
Twitter
http://www.pcwgaming.com" onclick="window.open(this.href);return false;
If you want a Dropbox account, please use my referral link
http://www.pcwgaming.com" onclick="window.open(this.href);return false;
If you want a Dropbox account, please use my referral link
-
gannon
- Moderator
- Posts: 6974
- Joined: Sun Apr 04, 2004 4:48 pm
- Location: Near that one big lake
- Contact:
Why use JS to load the filter when you can just use css?
Code: Select all
img { behavior: url("filter.htc"); }-
bicostp
- Moderator
- Posts: 10491
- Joined: Mon Mar 07, 2005 5:47 pm
- Steam ID: bicostp
- Location: Spamalot
- Contact:
Because Firefox doesn't like it when you use that filter (All it renders is the empty GIF that the script fills.)
Turns out I had the wrong slashes in the part of the script that calls the PNG.
("\" as opposed to "/". Small mistakes make a big difference.) I also got rid of the extraneous "logo2" variable and had the if/else loop call document.write directly.
Here's the final code:
I updated the sandbox page to the latest version. It shouldn't make IE spaz out anymore.
http://bicostp.portablesofdoom.org/sandbox/shinypod/
For some reason it doesn't work on the server.
It works on my local machine...

Turns out I had the wrong slashes in the part of the script that calls the PNG.
Here's the final code:
Code: Select all
<script type="text/javascript">
var browser=navigator.appName;
if ((browser=="Microsoft Internet Explorer"))
document.write("<img class=logo src=\"dummy.gif\" style=\"width: 317px; height: 118px; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/homedata/images/logo.png', sizingMethod='scale')\">")
else
document.write('<img class="logo" src="homedata/images/logo.png">')
</script>http://bicostp.portablesofdoom.org/sandbox/shinypod/
For some reason it doesn't work on the server.

Twitter
http://www.pcwgaming.com" onclick="window.open(this.href);return false;
If you want a Dropbox account, please use my referral link
http://www.pcwgaming.com" onclick="window.open(this.href);return false;
If you want a Dropbox account, please use my referral link
-
SpongeBuell
- Senior Member
- Posts: 5190
- Joined: Wed Apr 07, 2004 10:52 am
- Location: Colorado
- Contact:
-
bicostp
- Moderator
- Posts: 10491
- Joined: Mon Mar 07, 2005 5:47 pm
- Steam ID: bicostp
- Location: Spamalot
- Contact:
Twitter
http://www.pcwgaming.com" onclick="window.open(this.href);return false;
If you want a Dropbox account, please use my referral link
http://www.pcwgaming.com" onclick="window.open(this.href);return false;
If you want a Dropbox account, please use my referral link
-
Unidentified Assilant
- Senior Member
- Posts: 2531
- Joined: Thu Oct 21, 2004 12:26 pm
- Location: Yea I like machine head
-
Mageslayer
- Posts: 226
- Joined: Tue Aug 29, 2006 8:54 am
Quoting the previous poster's sig really doesn't strike me as original... That said, the more compatible your site is the more people will look at it. It's that simple.
"What kind of a monster are you?"I once wrote:My head may be in the clouds, but the view up here is breathtaking.
"The kind that killed your family."
-
Unidentified Assilant
- Senior Member
- Posts: 2531
- Joined: Thu Oct 21, 2004 12:26 pm
- Location: Yea I like machine head

